diff options
Diffstat (limited to 'res/layout/theme_view.xml')
-rw-r--r-- | res/layout/theme_view.xml | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/res/layout/theme_view.xml b/res/layout/theme_view.xml new file mode 100644 index 00000000..356d1070 --- /dev/null +++ b/res/layout/theme_view.xml @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 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. +--> + +<com.cyanogenmod.filemanager.ui.preferences.ThemeView + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="1dp" + android:layout_height="match_parent"> + + <TextView + android:id="@+id/theme_name" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:gravity="center" + android:ellipsize="end" + android:singleLine="true" + android:textAppearance="@style/primary_text_appearance" /> + + <TextView + android:id="@+id/theme_author" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/theme_name" + android:gravity="center" + android:ellipsize="end" + android:singleLine="true" + android:textAppearance="@style/primary_text_appearance_nohighlight" /> + + <TextView + android:id="@+id/theme_desc" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:gravity="center" + android:ellipsize="end" + android:singleLine="false" + android:maxLines="2" + android:textAppearance="@style/secondary_text_appearance" /> + + <ImageView + android:id="@+id/theme_preview" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_above="@id/theme_desc" + android:layout_below="@id/theme_author" + android:padding="@dimen/extra_large_margin" + android:layout_gravity="center" + android:scaleType="centerInside" + android:contentDescription="@null" /> + +</com.cyanogenmod.filemanager.ui.preferences.ThemeView> |