diff options
author | Chris Warrington <cmw@google.com> | 2016-10-18 12:29:21 +0100 |
---|---|---|
committer | Chris Warrington <cmw@google.com> | 2016-10-18 12:34:18 +0100 |
commit | e3780081075c01aa1dff6d1f373cb43192b33e68 (patch) | |
tree | fb734615933a39f3d009210dc0d1457160479b35 /libs/editor/WordPressEditor/src/main/res/layout/dialog_image_options.xml | |
parent | 7e05eb7e57827eddc885570bc00aed8a50320dbf (diff) | |
parent | 025b8b226c8d8edba2b309ca878572f40512eca7 (diff) | |
download | gradle-perf-android-medium-mirror-goog-studio-master-dev.tar.gz |
Merge remote-tracking branch 'origin/upstream-master' into masterHEADstudio-3.4.0studio-3.2.1studio-3.1.2studio-3.0studio-2.3gradle_3.4.0gradle_3.1.2gradle_3.0.0gradle_2.3.0studio-master-devmirror-goog-studio-master-devmastermain
Change-Id: I63f5e16d09297c48432192761b840310935eb903
Diffstat (limited to 'libs/editor/WordPressEditor/src/main/res/layout/dialog_image_options.xml')
-rw-r--r-- | libs/editor/WordPressEditor/src/main/res/layout/dialog_image_options.xml | 154 |
1 files changed, 154 insertions, 0 deletions
diff --git a/libs/editor/WordPressEditor/src/main/res/layout/dialog_image_options.xml b/libs/editor/WordPressEditor/src/main/res/layout/dialog_image_options.xml new file mode 100644 index 000000000..087bb1ba7 --- /dev/null +++ b/libs/editor/WordPressEditor/src/main/res/layout/dialog_image_options.xml @@ -0,0 +1,154 @@ +<?xml version="1.0" encoding="utf-8"?> +<ScrollView xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:background="@android:color/white"> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginRight="@dimen/image_settings_dialog_extra_margin" + android:layout_marginLeft="@dimen/image_settings_dialog_extra_margin" + android:orientation="vertical" + android:padding="@dimen/image_settings_dialog_padding"> + + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_marginBottom="@dimen/image_settings_dialog_thumbnail_container_margin_bottom"> + + <ImageView + android:id="@+id/image_thumbnail" + android:contentDescription="@string/image_thumbnail" + android:layout_width="@dimen/image_settings_dialog_thumbnail_size" + android:layout_height="@dimen/image_settings_dialog_thumbnail_size" + android:layout_marginLeft="@dimen/image_settings_dialog_thumbnail_left_margin" + android:layout_marginRight="@dimen/image_settings_dialog_thumbnail_right_margin"/> + + <TextView + android:id="@+id/image_filename" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginLeft="@dimen/image_settings_dialog_filename_margin_left" + android:layout_gravity="center_vertical"/> + </LinearLayout> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/title" + style="@style/ImageOptionsDialogLabel"/> + + <EditText + android:id="@+id/image_title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="textCapSentences" + android:singleLine="true" + style="@style/ImageOptionsDialogInput"/> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/image_caption" + style="@style/ImageOptionsDialogLabel"/> + + <EditText + android:id="@+id/image_caption" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="textCapSentences" + android:singleLine="true" + style="@style/ImageOptionsDialogInput"/> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/image_alt_text" + style="@style/ImageOptionsDialogLabel"/> + + <EditText + android:id="@+id/image_alt_text" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="textCapSentences" + android:singleLine="true" + style="@style/ImageOptionsDialogInput"/> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/image_alignment" + style="@style/ImageOptionsDialogLabel"/> + + <Spinner + android:id="@+id/alignment_spinner" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:entries="@array/alignment_array" + android:layout_marginStart="@dimen/image_settings_dialog_input_field_start_margin" + android:layout_marginLeft="@dimen/image_settings_dialog_input_field_start_margin" + android:prompt="@string/image_alignment" + style="@style/ImageOptionsDialogInput"/> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/image_link_to" + style="@style/ImageOptionsDialogLabel"/> + + <EditText + android:id="@+id/image_link_to" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="textNoSuggestions" + android:singleLine="true" + style="@style/ImageOptionsDialogInput"/> + + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/image_width" + style="@style/ImageOptionsDialogLabel"/> + + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal"> + + <ImageView + android:id="@+id/image_icon" + android:layout_width="wrap_content" + android:layout_height="match_parent" + app:srcCompat="@drawable/media_icon_32dp"/> + + <SeekBar + android:id="@+id/image_width_seekbar" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_toRightOf="@+id/image_icon"/> + </RelativeLayout> + + <EditText + android:id="@+id/image_width_text" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="" + android:imeOptions="actionDone" + android:singleLine="true" + android:inputType="number" + style="@style/ImageOptionsDialogInput"/> + + <CheckBox + android:id="@+id/featuredImage" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:text="@string/featured" + android:layout_marginStart="@dimen/image_settings_dialog_input_field_start_margin" + android:layout_marginLeft="@dimen/image_settings_dialog_input_field_start_margin" + android:visibility="gone"/> + </LinearLayout> +</ScrollView> |