diff options
author | Santiago Etchebehere <santie@google.com> | 2019-05-10 10:21:09 -0700 |
---|---|---|
committer | Santiago Etchebehere <santie@google.com> | 2019-05-13 13:32:12 -0700 |
commit | 7ff4c59f02d928f79d0b510ef661feea510b635c (patch) | |
tree | e7ac50e1e6a6fe8b53eaed4720e2f6ed6577da2c /res/layout-land | |
parent | 21342b68619ae1efc6935fd6d063922e81aad658 (diff) | |
download | ThemePicker-7ff4c59f02d928f79d0b510ef661feea510b635c.tar.gz |
Multiple custom themes 3/n
Add a name step to custom theme editor.
Preview cover image is still not hooked, but the code has
been refactored to allow reuse of cover card binding.
Bug: 132257073
Change-Id: I0c3a7ccd1f73c89c45447994f98fe80b3723f040
Diffstat (limited to 'res/layout-land')
-rw-r--r-- | res/layout-land/fragment_custom_theme_name.xml | 80 |
1 files changed, 80 insertions, 0 deletions
diff --git a/res/layout-land/fragment_custom_theme_name.xml b/res/layout-land/fragment_custom_theme_name.xml new file mode 100644 index 00000000..0f190a89 --- /dev/null +++ b/res/layout-land/fragment_custom_theme_name.xml @@ -0,0 +1,80 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + Copyright (C) 2019 The Android Open Source Project + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +--> +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:background="?android:colorPrimary"> + <include layout="@layout/section_header"/> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="horizontal"> + <FrameLayout + android:id="@+id/component_preview_container" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:background="@color/secondary_color"> + <include + android:id="@+id/component_preview_content" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_marginHorizontal="@dimen/preview_page_horizontal_margin" + android:layout_marginTop="@dimen/preview_page_top_margin" + android:layout_marginBottom="@dimen/component_preview_page_bottom_margin" + layout="@layout/theme_preview_card"/> + </FrameLayout> + <LinearLayout + android:id="@+id/options_section" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="1" + android:paddingTop="10dp" + android:paddingBottom="@dimen/custom_theme_nav_height" + android:paddingVertical="10dp" + android:clipToPadding="false" + android:orientation="vertical"> + + <TextView + android:id="@+id/component_options_title" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:layout_margin="10dp" + android:textAlignment="center" + android:textAppearance="@style/HeaderTextAppearance"/> + + <FrameLayout + android:layout_width="match_parent" + android:layout_height="@dimen/options_container_height" + android:layout_gravity="center"> + + <EditText + style="@style/CustomThemeNameEditText" + android:id="@+id/custom_theme_name" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:minWidth="300dp"/> + </FrameLayout> + + </LinearLayout> + </LinearLayout> +</LinearLayout> |