diff options
author | d34d <clark@cyngn.com> | 2016-08-29 15:41:02 -0700 |
---|---|---|
committer | d34d <clark@cyngn.com> | 2016-08-31 09:44:52 -0700 |
commit | 550e88b1e62228124f22b2d70ce3bf45fe9a1314 (patch) | |
tree | 91efd4126034e8b91c463da8bd02a00cf7ff9751 /res/layout/activity_main.xml | |
parent | bcd90a38b28f7c57bce8057d855e4c276aab2776 (diff) | |
download | packages_apps_ThemeChooser-550e88b1e62228124f22b2d70ce3bf45fe9a1314.tar.gz packages_apps_ThemeChooser-550e88b1e62228124f22b2d70ce3bf45fe9a1314.tar.bz2 packages_apps_ThemeChooser-550e88b1e62228124f22b2d70ce3bf45fe9a1314.zip |
Fall cleaning
* Change package name to org.cyanogenmod.theme.chooser2
to avoid theme collisions with old OSS chooser
* Change parent theme to Theme.Material.Light
* Change minSdkVersion to 21 since we are going material
* Add selectors for bottom action buttons (app themer, shop themes)
* Add selector, using app themer color, for app themer list view
* Add selector for actions in theme cards
* Bring back OSS app icon
* Reduce log spam in ThemedTypefaceHelper
* Localize "new" tag using a TextView instead of an image
* Other random stuff
Change-Id: I73ef0b9c9370284e29ee00add87273cf54c83e0e
Diffstat (limited to 'res/layout/activity_main.xml')
-rw-r--r-- | res/layout/activity_main.xml | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/res/layout/activity_main.xml b/res/layout/activity_main.xml index 01a91a6..552bed3 100644 --- a/res/layout/activity_main.xml +++ b/res/layout/activity_main.xml @@ -29,7 +29,7 @@ android:layout_height="match_parent" android:orientation="vertical" android:layout_gravity="center_vertical"> - <org.cyanogenmod.theme.chooser.PagerContainer + <org.cyanogenmod.theme.chooser2.PagerContainer android:id="@+id/pager_container" android:layout_width="match_parent" android:layout_height="wrap_content" @@ -38,14 +38,22 @@ <android.support.v4.view.ThemeViewPager android:id="@+id/viewpager" android:layout_width="@dimen/theme_fragment_width" - android:layout_height="match_parent" + android:layout_height="wrap_content" android:layout_gravity="center_horizontal" android:overScrollMode="never"/> - </org.cyanogenmod.theme.chooser.PagerContainer> + </org.cyanogenmod.theme.chooser2.PagerContainer> </LinearLayout> - <include layout="@layout/component_selector"/> - <include layout="@layout/save_apply_button"/> - <include layout="@layout/bottom_actions"/> + <!-- wrap the below layouts for fitting to the system windows --> + <FrameLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:fitsSystemWindows="true"> + + <include layout="@layout/component_selector"/> + <include layout="@layout/save_apply_button"/> + <include layout="@layout/bottom_actions"/> + + </FrameLayout> </FrameLayout> |