diff options
author | Clark Scheff <clark@cyngn.com> | 2014-07-29 12:15:56 -0700 |
---|---|---|
committer | Clark Scheff <clark@cyngn.com> | 2014-07-29 13:36:38 -0700 |
commit | 89df9342c934e750c11d1402f4b5c51b34defdec (patch) | |
tree | a132efce032474022c0bac3772e96268e5a089e7 /res/layout/activity_main.xml | |
parent | e71e42f7304f5e6ba563a48de4ce1e70c94776ef (diff) | |
download | packages_apps_ThemeChooser-89df9342c934e750c11d1402f4b5c51b34defdec.tar.gz packages_apps_ThemeChooser-89df9342c934e750c11d1402f4b5c51b34defdec.tar.bz2 packages_apps_ThemeChooser-89df9342c934e750c11d1402f4b5c51b34defdec.zip |
Remove v1 code and resources and refactor v2 chooser.
Change-Id: Ic617365b3d26944e11c592b1508b4170ddb2871e
Diffstat (limited to 'res/layout/activity_main.xml')
-rw-r--r-- | res/layout/activity_main.xml | 46 |
1 files changed, 27 insertions, 19 deletions
diff --git a/res/layout/activity_main.xml b/res/layout/activity_main.xml index ed80e0d..3f4bebf 100644 --- a/res/layout/activity_main.xml +++ b/res/layout/activity_main.xml @@ -1,21 +1,29 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- - * Copyright (C) 2014 The CyanogenMod 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. ---> -<FrameLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:id="@+id/content" + +<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" - android:layout_height="match_parent"/> + android:layout_height="match_parent" + android:background="@drawable/bg_grid"> + <LinearLayout + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical" + android:layout_gravity="center_vertical"> + <com.cyngn.theme.chooser.PagerContainer + android:id="@+id/pager_container" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical"> + <android.support.v4.view.ThemeViewPager + android:id="@+id/viewpager" + android:layout_width="@dimen/theme_fragment_width" + android:layout_height="match_parent" + android:layout_gravity="center_horizontal" + android:overScrollMode="never"/> + </com.cyngn.theme.chooser.PagerContainer> + </LinearLayout> + + <include layout="@layout/component_selector"/> + <include layout="@layout/save_apply_button_2"/> + +</FrameLayout> |