| Index: demos/src/main/res/layout/activity_custom_ui.xml
|
| diff --git a/demos/src/main/res/layout/activity_custom_ui.xml b/demos/src/main/res/layout/activity_custom_ui.xml
|
| index 4513424d44922a31112e88ec1eb7327845f1edba..b3795b936eead40889feab98b0e2254ce6bc45b3 100644
|
| --- a/demos/src/main/res/layout/activity_custom_ui.xml
|
| +++ b/demos/src/main/res/layout/activity_custom_ui.xml
|
| @@ -13,154 +13,219 @@
|
| See the License for the specific language governing permissions and
|
| limitations under the License.
|
| -->
|
| -<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
| +<ScrollView
|
| + xmlns:android="http://schemas.android.com/apk/res/android"
|
| xmlns:app="http://schemas.android.com/apk/res-auto"
|
| xmlns:tools="http://schemas.android.com/tools"
|
| android:layout_width="match_parent"
|
| - android:layout_height="match_parent"
|
| - android:paddingLeft="@dimen/activity_horizontal_margin"
|
| - android:paddingRight="@dimen/activity_horizontal_margin"
|
| - android:paddingTop="@dimen/activity_vertical_margin"
|
| - android:paddingBottom="@dimen/activity_vertical_margin"
|
| - android:orientation="vertical"
|
| - tools:context=".CustomUIActivity">
|
| -
|
| - <TextView
|
| - android:layout_width="match_parent"
|
| - android:textSize="@dimen/abc_text_size_medium_material"
|
| - android:layout_height="wrap_content"
|
| - android:text="@string/label_url" />
|
| -
|
| - <EditText
|
| - android:id="@+id/url"
|
| - android:text="@string/default_test_url"
|
| - android:layout_width="match_parent"
|
| - android:layout_height="wrap_content"
|
| - android:inputType="textUri" />
|
| -
|
| + android:layout_height="match_parent">
|
| <LinearLayout
|
| android:layout_width="match_parent"
|
| android:layout_height="wrap_content"
|
| - android:paddingTop="@dimen/view_vertical_margin"
|
| - android:orientation="vertical">
|
| + android:paddingLeft="@dimen/activity_horizontal_margin"
|
| + android:paddingRight="@dimen/activity_horizontal_margin"
|
| + android:paddingTop="@dimen/activity_vertical_margin"
|
| + android:paddingBottom="@dimen/activity_vertical_margin"
|
| + android:orientation="vertical"
|
| + tools:context=".CustomUIActivity">
|
|
|
| <TextView
|
| - android:layout_width="wrap_content"
|
| - android:layout_height="wrap_content"
|
| + android:layout_width="match_parent"
|
| android:textSize="@dimen/abc_text_size_medium_material"
|
| - android:text="@string/label_toobar_color"/>
|
| + android:layout_height="wrap_content"
|
| + android:text="@string/label_url" />
|
|
|
| <EditText
|
| - android:id="@+id/custom_toolbar_color"
|
| + android:id="@+id/url"
|
| + android:text="@string/default_test_url"
|
| android:layout_width="match_parent"
|
| android:layout_height="wrap_content"
|
| - android:singleLine="true"
|
| - android:hint="@string/default_toolbar_color"
|
| - android:text="@string/default_toolbar_color"/>
|
| + android:inputType="textUri" />
|
|
|
| - </LinearLayout>
|
| + <LinearLayout
|
| + android:layout_width="match_parent"
|
| + android:layout_height="wrap_content"
|
| + android:paddingTop="@dimen/view_vertical_margin"
|
| + android:orientation="vertical">
|
| +
|
| + <TextView
|
| + android:layout_width="wrap_content"
|
| + android:layout_height="wrap_content"
|
| + android:textSize="@dimen/abc_text_size_medium_material"
|
| + android:text="@string/label_toobar_color"/>
|
| +
|
| + <EditText
|
| + android:id="@+id/custom_toolbar_color"
|
| + android:layout_width="match_parent"
|
| + android:layout_height="wrap_content"
|
| + android:singleLine="true"
|
| + android:hint="@string/default_toolbar_color"
|
| + android:text="@string/default_toolbar_color"/>
|
| +
|
| + </LinearLayout>
|
| +
|
| + <LinearLayout
|
| + android:layout_width="match_parent"
|
| + android:layout_height="wrap_content"
|
| + android:paddingTop="@dimen/view_vertical_margin"
|
| + android:orientation="vertical">
|
| +
|
| + <TextView
|
| + android:layout_width="wrap_content"
|
| + android:layout_height="wrap_content"
|
| + android:textSize="@dimen/abc_text_size_medium_material"
|
| + android:text="@string/label_toobar_secondary_color"/>
|
| +
|
| + <EditText
|
| + android:id="@+id/custom_toolbar_secondary_color"
|
| + android:layout_width="match_parent"
|
| + android:layout_height="wrap_content"
|
| + android:singleLine="true"
|
| + android:hint="@string/default_toolbar_color"
|
| + android:text="@string/default_toolbar_color"/>
|
| +
|
| + </LinearLayout>
|
| +
|
| + <LinearLayout
|
| + android:layout_width="match_parent"
|
| + android:paddingTop="@dimen/view_vertical_margin"
|
| + android:orientation="horizontal"
|
| + android:layout_height="wrap_content">
|
|
|
| - <LinearLayout
|
| - android:layout_width="match_parent"
|
| - android:paddingTop="@dimen/view_vertical_margin"
|
| - android:orientation="horizontal"
|
| - android:layout_height="wrap_content">
|
| + <TextView
|
| + android:layout_width="0dp"
|
| + android:layout_height="wrap_content"
|
| + android:layout_weight="1"
|
| + android:textSize="@dimen/abc_text_size_medium_material"
|
| + android:text="@string/label_add_action_button"/>
|
|
|
| - <TextView
|
| - android:layout_width="0dp"
|
| - android:layout_height="wrap_content"
|
| - android:layout_weight="1"
|
| - android:textSize="@dimen/abc_text_size_medium_material"
|
| - android:text="@string/label_add_action_button"/>
|
| + <CheckBox
|
| + android:id="@+id/custom_show_action_button"
|
| + android:layout_width="wrap_content"
|
| + android:layout_height="wrap_content" />
|
|
|
| - <CheckBox
|
| - android:id="@+id/custom_show_action_button"
|
| - android:layout_width="wrap_content"
|
| - android:layout_height="wrap_content" />
|
| + </LinearLayout>
|
|
|
| - </LinearLayout>
|
| + <LinearLayout
|
| + android:layout_width="match_parent"
|
| + android:paddingTop="@dimen/view_vertical_margin"
|
| + android:layout_height="wrap_content">
|
|
|
| - <LinearLayout
|
| - android:layout_width="match_parent"
|
| - android:paddingTop="@dimen/view_vertical_margin"
|
| - android:layout_height="wrap_content">
|
| + <TextView
|
| + android:layout_width="0dp"
|
| + android:layout_height="wrap_content"
|
| + android:layout_weight="1"
|
| + android:textSize="@dimen/abc_text_size_medium_material"
|
| + android:text="@string/label_add_menus"/>
|
|
|
| - <TextView
|
| - android:layout_width="0dp"
|
| - android:layout_height="wrap_content"
|
| - android:layout_weight="1"
|
| - android:textSize="@dimen/abc_text_size_medium_material"
|
| - android:text="@string/label_add_menus"/>
|
| + <CheckBox
|
| + android:id="@+id/custom_add_menus"
|
| + android:layout_width="wrap_content"
|
| + android:layout_height="wrap_content" />
|
|
|
| - <CheckBox
|
| - android:id="@+id/custom_add_menus"
|
| - android:layout_width="wrap_content"
|
| - android:layout_height="wrap_content" />
|
| + </LinearLayout>
|
|
|
| - </LinearLayout>
|
| + <LinearLayout
|
| + android:layout_width="match_parent"
|
| + android:paddingTop="@dimen/view_vertical_margin"
|
| + android:layout_height="wrap_content">
|
|
|
| - <LinearLayout
|
| - android:layout_width="match_parent"
|
| - android:paddingTop="@dimen/view_vertical_margin"
|
| - android:layout_height="wrap_content">
|
| + <TextView
|
| + android:layout_width="0dp"
|
| + android:layout_height="wrap_content"
|
| + android:layout_weight="1"
|
| + android:textSize="@dimen/abc_text_size_medium_material"
|
| + android:text="@string/label_add_default_share"/>
|
|
|
| - <TextView
|
| - android:layout_width="0dp"
|
| - android:layout_height="wrap_content"
|
| - android:layout_weight="1"
|
| - android:textSize="@dimen/abc_text_size_medium_material"
|
| - android:text="@string/label_show_title"/>
|
| + <CheckBox
|
| + android:id="@+id/add_default_share"
|
| + android:layout_width="wrap_content"
|
| + android:layout_height="wrap_content" />
|
|
|
| - <CheckBox
|
| - android:id="@+id/show_title"
|
| - android:layout_width="wrap_content"
|
| - android:layout_height="wrap_content" />
|
| + </LinearLayout>
|
|
|
| - </LinearLayout>
|
| + <LinearLayout
|
| + android:layout_width="match_parent"
|
| + android:paddingTop="@dimen/view_vertical_margin"
|
| + android:layout_height="wrap_content">
|
|
|
| - <LinearLayout
|
| - android:layout_width="match_parent"
|
| - android:paddingTop="@dimen/view_vertical_margin"
|
| - android:layout_height="wrap_content">
|
| + <TextView
|
| + android:layout_width="0dp"
|
| + android:layout_height="wrap_content"
|
| + android:layout_weight="1"
|
| + android:textSize="@dimen/abc_text_size_medium_material"
|
| + android:text="@string/label_add_toolbar_item"/>
|
|
|
| - <TextView
|
| - android:layout_width="0dp"
|
| - android:layout_height="wrap_content"
|
| - android:layout_weight="1"
|
| - android:textSize="@dimen/abc_text_size_medium_material"
|
| - android:text="@string/label_custom_back_button"/>
|
| + <CheckBox
|
| + android:id="@+id/add_toolbar_item"
|
| + android:layout_width="wrap_content"
|
| + android:layout_height="wrap_content" />
|
|
|
| - <CheckBox
|
| - android:id="@+id/custom_back_button"
|
| - android:layout_width="wrap_content"
|
| - android:layout_height="wrap_content" />
|
| + </LinearLayout>
|
|
|
| - </LinearLayout>
|
| + <LinearLayout
|
| + android:layout_width="match_parent"
|
| + android:paddingTop="@dimen/view_vertical_margin"
|
| + android:layout_height="wrap_content">
|
|
|
| - <LinearLayout
|
| - android:layout_width="match_parent"
|
| - android:paddingTop="@dimen/view_vertical_margin"
|
| - android:layout_height="wrap_content">
|
| + <TextView
|
| + android:layout_width="0dp"
|
| + android:layout_height="wrap_content"
|
| + android:layout_weight="1"
|
| + android:textSize="@dimen/abc_text_size_medium_material"
|
| + android:text="@string/label_show_title"/>
|
|
|
| - <TextView
|
| - android:layout_width="0dp"
|
| - android:layout_height="wrap_content"
|
| - android:layout_weight="1"
|
| - android:textSize="@dimen/abc_text_size_medium_material"
|
| - android:text="@string/label_auto_hide_appbar"/>
|
| + <CheckBox
|
| + android:id="@+id/show_title"
|
| + android:layout_width="wrap_content"
|
| + android:layout_height="wrap_content" />
|
|
|
| - <CheckBox
|
| - android:id="@+id/auto_hide_checkbox"
|
| - android:layout_width="wrap_content"
|
| - android:layout_height="wrap_content" />
|
| + </LinearLayout>
|
|
|
| - </LinearLayout>
|
| + <LinearLayout
|
| + android:layout_width="match_parent"
|
| + android:paddingTop="@dimen/view_vertical_margin"
|
| + android:layout_height="wrap_content">
|
|
|
| - <Button
|
| - android:id="@+id/start_custom_tab"
|
| - android:layout_gravity="center_horizontal"
|
| - android:layout_width="wrap_content"
|
| - android:layout_height="wrap_content"
|
| - android:text="@string/label_start_custom_tab" />
|
| + <TextView
|
| + android:layout_width="0dp"
|
| + android:layout_height="wrap_content"
|
| + android:layout_weight="1"
|
| + android:textSize="@dimen/abc_text_size_medium_material"
|
| + android:text="@string/label_custom_back_button"/>
|
| +
|
| + <CheckBox
|
| + android:id="@+id/custom_back_button"
|
| + android:layout_width="wrap_content"
|
| + android:layout_height="wrap_content" />
|
| +
|
| + </LinearLayout>
|
| +
|
| + <LinearLayout
|
| + android:layout_width="match_parent"
|
| + android:paddingTop="@dimen/view_vertical_margin"
|
| + android:layout_height="wrap_content">
|
| +
|
| + <TextView
|
| + android:layout_width="0dp"
|
| + android:layout_height="wrap_content"
|
| + android:layout_weight="1"
|
| + android:textSize="@dimen/abc_text_size_medium_material"
|
| + android:text="@string/label_auto_hide_appbar"/>
|
| +
|
| + <CheckBox
|
| + android:id="@+id/auto_hide_checkbox"
|
| + android:layout_width="wrap_content"
|
| + android:layout_height="wrap_content" />
|
| +
|
| + </LinearLayout>
|
| +
|
| + <Button
|
| + android:id="@+id/start_custom_tab"
|
| + android:layout_gravity="center_horizontal"
|
| + android:layout_width="wrap_content"
|
| + android:layout_height="wrap_content"
|
| + android:text="@string/label_start_custom_tab" />
|
|
|
| -</LinearLayout>
|
| + </LinearLayout>
|
| +</ScrollView>
|
|
|