diff options
Diffstat (limited to 'WordPress/src/main/res/layout/edit_post_settings_fragment.xml')
-rw-r--r-- | WordPress/src/main/res/layout/edit_post_settings_fragment.xml | 154 |
1 files changed, 154 insertions, 0 deletions
diff --git a/WordPress/src/main/res/layout/edit_post_settings_fragment.xml b/WordPress/src/main/res/layout/edit_post_settings_fragment.xml new file mode 100644 index 000000000..ef7cffbdb --- /dev/null +++ b/WordPress/src/main/res/layout/edit_post_settings_fragment.xml @@ -0,0 +1,154 @@ +<?xml version="1.0" encoding="utf-8"?> +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/settings_fragment_root" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@color/white"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingTop="@dimen/margin_medium" + android:paddingBottom="@dimen/margin_medium" + android:paddingLeft="@dimen/margin_extra_large" + android:paddingRight="@dimen/margin_extra_large" + android:orientation="vertical"> + + <org.wordpress.android.widgets.WPTextView + android:id="@+id/statusLabel" + style="@style/WordPressSubHeader" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/status" /> + + <Spinner + android:id="@+id/status" + android:paddingTop="@dimen/margin_small" + android:paddingBottom="@dimen/margin_small" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + <org.wordpress.android.widgets.WPTextView + android:id="@+id/pubDateLabel" + style="@style/WordPressSubHeader" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/publish_date" /> + + <org.wordpress.android.widgets.WPTextView + android:id="@+id/pubDate" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingTop="@dimen/margin_small" + android:paddingBottom="@dimen/margin_small" + android:layout_marginLeft="@dimen/margin_medium" + android:background="@drawable/selectable_background_wordpress" + android:text="@string/immediately" + android:textColor="@color/grey_dark" + android:textSize="@dimen/text_sz_large" /> + + <org.wordpress.android.widgets.WPTextView + android:id="@+id/postFormatLabel" + style="@style/WordPressSubHeader" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/post_format" /> + + <Spinner + android:id="@+id/postFormat" + android:paddingTop="@dimen/margin_small" + android:paddingBottom="@dimen/margin_small" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:prompt="@string/post_format" /> + + <LinearLayout + android:id="@+id/sectionTags" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="vertical"> + + <org.wordpress.android.widgets.WPTextView + android:id="@+id/categoryLabel" + style="@style/WordPressSubHeader" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginBottom="4dp" + android:text="@string/categories" /> + + <org.wordpress.android.widgets.FlowLayout + android:id="@+id/sectionCategories" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:layout_width="match_parent" + android:layout_height="wrap_content" /> + + <org.wordpress.android.widgets.SuggestionAutoCompleteText + android:id="@+id/tags" + android:layout_width="match_parent" + android:layout_marginTop="@dimen/margin_small" + android:layout_marginLeft="@dimen/margin_small" + android:layout_marginRight="@dimen/margin_small" + android:layout_height="wrap_content" + android:textSize="@dimen/text_sz_large" + android:hint="@string/tags_separate_with_commas" + android:inputType="textAutoCorrect" /> + </LinearLayout> + + <org.wordpress.android.widgets.WPEditText + android:id="@+id/postExcerpt" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="@dimen/margin_extra_large" + android:layout_marginLeft="@dimen/margin_small" + android:layout_marginRight="@dimen/margin_small" + android:textSize="@dimen/text_sz_large" + android:gravity="top" + android:hint="@string/post_excerpt" + android:inputType="textMultiLine|textCapSentences|textAutoCorrect" + android:minLines="1" /> + + <org.wordpress.android.widgets.WPEditText + android:id="@+id/post_password" + android:layout_marginTop="@dimen/margin_extra_large" + android:layout_marginLeft="@dimen/margin_small" + android:layout_marginRight="@dimen/margin_small" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:textSize="@dimen/text_sz_large" + android:hint="@string/post_password" + android:maxLength="@integer/max_length_password" + android:inputType="textPassword" /> + + <org.wordpress.android.widgets.WPTextView + android:id="@+id/featuredImageLabel" + style="@style/WordPressSubHeader" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/editor_post_settings_featured_image" /> + + <Button + android:id="@+id/addFeaturedImage" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/editor_post_settings_set_featured_image"/> + + <com.android.volley.toolbox.NetworkImageView + android:id="@+id/featuredImage" + android:paddingTop="@dimen/margin_small" + android:paddingBottom="@dimen/margin_small" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:scaleType="fitStart" + android:minHeight="@dimen/post_settings_featured_image_height_min" + android:maxHeight="@dimen/post_settings_featured_image_height_max" + android:visibility="gone"/> + + <ViewStub + android:id="@+id/stub_post_location_settings" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout="@layout/post_location_settings" /> + + </LinearLayout> +</ScrollView> |