aboutsummaryrefslogtreecommitdiffstats
path: root/res/layout
diff options
context:
space:
mode:
authorjruesga <jorge@ruesga.com>2013-07-01 02:42:54 +0200
committerjruesga <jorge@ruesga.com>2013-07-01 02:42:54 +0200
commitf29d68d929061ccbb982019c5020be721bbef862 (patch)
tree24ce41fb0dd7f942ca9dbe956fe93fe836da66c2 /res/layout
downloadandroid_packages_wallpapers_PhotoPhase-f29d68d929061ccbb982019c5020be721bbef862.tar.gz
android_packages_wallpapers_PhotoPhase-f29d68d929061ccbb982019c5020be721bbef862.tar.bz2
android_packages_wallpapers_PhotoPhase-f29d68d929061ccbb982019c5020be721bbef862.zip
Initial commit
Signed-off-by: jruesga <jorge@ruesga.com>
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/album.xml33
-rw-r--r--res/layout/album_info.xml79
-rw-r--r--res/layout/album_pictures.xml80
-rw-r--r--res/layout/choose_picture_fragment.xml32
-rw-r--r--res/layout/color_picker_pref_item.xml30
-rw-r--r--res/layout/picture_item.xml30
-rw-r--r--res/layout/preference_widget_seekbar.xml85
-rw-r--r--res/layout/preference_widget_seekbar_progress.xml27
8 files changed, 396 insertions, 0 deletions
diff --git a/res/layout/album.xml b/res/layout/album.xml
new file mode 100644
index 0000000..94c87eb
--- /dev/null
+++ b/res/layout/album.xml
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 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.
+-->
+
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="@dimen/small_margin"
+ android:orientation="vertical">
+
+ <include android:id="@+id/album_info"
+ layout="@layout/album_info"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentLeft="true" />
+
+ <include android:id="@+id/album_pictures"
+ layout="@layout/album_pictures"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentLeft="true" />
+
+</RelativeLayout>
diff --git a/res/layout/album_info.xml b/res/layout/album_info.xml
new file mode 100644
index 0000000..3c4cc70
--- /dev/null
+++ b/res/layout/album_info.xml
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 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.
+-->
+
+<org.cyanogenmod.wallpapers.photophase.widgets.AlbumInfo
+ xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ style="@style/PhotoPhase.Album">
+
+ <ImageView android:id="@+id/album_thumbnail"
+ android:layout_width="@dimen/album_size"
+ android:layout_height="@dimen/album_size"
+ android:scaleType="fitXY"
+ android:layout_marginRight="@dimen/album_margin"
+ android:contentDescription="@null"
+ style="@style/PhotoPhase.Album.Thumbnail" />
+
+ <TextView android:id="@+id/album_selected_items"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignRight="@id/album_thumbnail"
+ android:layout_alignBottom="@id/album_thumbnail"
+ style="PhotoPhase.Notification" />
+
+ <LinearLayout
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_toRightOf="@id/album_thumbnail"
+ android:layout_alignTop="@id/album_thumbnail"
+ android:layout_alignBottom="@id/album_thumbnail"
+ android:orientation="vertical"
+ style="@style/PhotoPhase.Album.Info">
+
+ <TextView android:id="@+id/album_name"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:paddingBottom="@dimen/album_info_margin"
+ android:gravity="bottom"
+ android:ellipsize="end"
+ android:singleLine="true"
+ style="@style/PhotoPhase.TextAppearance.Primary" />
+
+ <TextView android:id="@+id/album_items"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:paddingTop="@dimen/album_info_margin"
+ android:gravity="top"
+ android:ellipsize="end"
+ android:singleLine="true"
+ style="@style/PhotoPhase.TextAppearance.Secondary" />
+
+ </LinearLayout>
+
+ <ImageView android:id="@+id/overflow"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentRight="true"
+ android:layout_alignParentBottom="true"
+ android:layout_gravity="top"
+ android:padding="@dimen/small_padding"
+ android:contentDescription="@null"
+ style="@style/PhotoPhase.Album.MenuBar.Overflow" />
+
+</org.cyanogenmod.wallpapers.photophase.widgets.AlbumInfo>
diff --git a/res/layout/album_pictures.xml b/res/layout/album_pictures.xml
new file mode 100644
index 0000000..71a1a49
--- /dev/null
+++ b/res/layout/album_pictures.xml
@@ -0,0 +1,80 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 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.
+-->
+
+<org.cyanogenmod.wallpapers.photophase.widgets.AlbumPictures xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="@drawable/card"
+ style="@style/PhotoPhase.Album">
+
+ <TextView android:id="@+id/album_pictures_title"
+ android:layout_width="@dimen/album_size"
+ android:layout_height="@dimen/album_title_height"
+ android:layout_alignParentLeft="true"
+ android:layout_alignParentTop="true"
+ style="@style/PhotoPhase.Album.Title" />
+
+ <LinearLayout android:id="@+id/album_menubar"
+ android:layout_width="wrap_content"
+ android:layout_height="@dimen/album_size"
+ android:layout_marginLeft="@dimen/small_margin"
+ android:layout_marginRight="@dimen/small_margin"
+ android:layout_alignParentTop="true"
+ android:layout_alignParentBottom="true"
+ android:layout_alignParentRight="true"
+ android:orientation="vertical">
+
+ <ImageView android:id="@+id/back"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:contentDescription="@null"
+ style="@style/PhotoPhase.Album.MenuBar.Return" />
+
+ <Space
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"/>
+
+ <ImageView android:id="@+id/overflow"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:contentDescription="@null"
+ style="@style/PhotoPhase.Album.MenuBar.Overflow" />
+ </LinearLayout>
+
+ <org.cyanogenmod.wallpapers.photophase.widgets.PicturesView
+ android:id="@+id/album_pictures_scroller"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_marginLeft="@dimen/album_title_height"
+ android:layout_alignParentLeft="true"
+ android:layout_toLeftOf="@id/album_menubar"
+ android:fillViewport="true"
+ android:scrollbars="none"
+ android:layout_weight="1">
+
+ <LinearLayout android:id="@+id/album_pictures_holder"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:orientation="horizontal">
+
+ <!-- Pictures go here -->
+
+ </LinearLayout>
+ </org.cyanogenmod.wallpapers.photophase.widgets.PicturesView>
+
+</org.cyanogenmod.wallpapers.photophase.widgets.AlbumPictures>
diff --git a/res/layout/choose_picture_fragment.xml b/res/layout/choose_picture_fragment.xml
new file mode 100644
index 0000000..f2c8b1d
--- /dev/null
+++ b/res/layout/choose_picture_fragment.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 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.
+-->
+
+<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:fillViewport="true"
+ android:scrollbars="none">
+
+ <org.cyanogenmod.wallpapers.photophase.widgets.CardLayout
+ android:id="@+id/albums_panel"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:orientation="vertical"
+ android:paddingTop="@dimen/small_margin" />
+
+</ScrollView>
+
diff --git a/res/layout/color_picker_pref_item.xml b/res/layout/color_picker_pref_item.xml
new file mode 100644
index 0000000..a3d4a6c
--- /dev/null
+++ b/res/layout/color_picker_pref_item.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 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.
+ -->
+
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="48dp"
+ android:layout_height="32dp"
+ android:background="@android:color/darker_gray">
+ <afzkl.development.mColorPicker.views.ColorPanelView
+ android:id="@+android:id/color_picker"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_margin="1dp"
+ android:layout_gravity="center"
+ android:focusable="false"
+ android:clickable="false" />
+</LinearLayout>
+
diff --git a/res/layout/picture_item.xml b/res/layout/picture_item.xml
new file mode 100644
index 0000000..01ebdce
--- /dev/null
+++ b/res/layout/picture_item.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 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.
+-->
+
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/picture"
+ android:layout_width="@dimen/picture_size"
+ android:layout_height="@dimen/picture_size"
+ style="@style/PhotoPhase.Album.Picture">
+
+ <ImageView android:id="@+id/picture_thumbnail"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:scaleType="fitXY"
+ android:background="@color/album_thumbnail_color"
+ android:contentDescription="@null" />
+
+</FrameLayout>
diff --git a/res/layout/preference_widget_seekbar.xml b/res/layout/preference_widget_seekbar.xml
new file mode 100644
index 0000000..e528abc
--- /dev/null
+++ b/res/layout/preference_widget_seekbar.xml
@@ -0,0 +1,85 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 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="wrap_content"
+ android:minHeight="?android:attr/listPreferredItemHeight"
+ android:gravity="center_vertical"
+ android:baselineAligned="false"
+ android:paddingEnd="?android:attr/scrollbarSize">
+
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:gravity="center"
+ android:minWidth="@dimen/preference_icon_minWidth"
+ android:orientation="horizontal">
+ <ImageView
+ android:id="@+android:id/icon"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_gravity="center"
+ android:minWidth="48dp"
+ />
+ </LinearLayout>
+
+ <RelativeLayout
+ android:layout_width="0dip"
+ android:layout_height="wrap_content"
+ android:layout_marginStart="8dip"
+ android:layout_marginEnd="8dip"
+ android:layout_marginTop="6dip"
+ android:layout_marginBottom="6dip"
+ android:layout_weight="1">
+
+ <TextView android:id="@+android:id/title"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:singleLine="true"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:ellipsize="marquee"
+ android:fadingEdge="horizontal" />
+
+ <TextView android:id="@+android:id/summary"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_below="@android:id/title"
+ android:layout_alignStart="@android:id/title"
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:textColor="?android:attr/textColorSecondary"
+ android:maxLines="4" />
+
+ <!-- Preference should place its actual preference widget here. -->
+ <LinearLayout android:id="@+android:id/widget_frame"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_below="@android:id/summary"
+ android:layout_alignStart="@android:id/title"
+ android:minWidth="@dimen/preference_widget_width"
+ android:gravity="center"
+ android:orientation="vertical" />
+
+ <SeekBar android:id="@+id/seekbar"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_below="@android:id/summary"
+ android:layout_toEndOf="@android:id/widget_frame"
+ android:layout_alignParentEnd="true" />
+
+ </RelativeLayout>
+
+</LinearLayout>
diff --git a/res/layout/preference_widget_seekbar_progress.xml b/res/layout/preference_widget_seekbar_progress.xml
new file mode 100644
index 0000000..b9eead0
--- /dev/null
+++ b/res/layout/preference_widget_seekbar_progress.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2013 The Android Open Source Project
+ Copyright (C) 2013 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.
+-->
+
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/text"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:gravity="center"
+ android:minWidth="50sp"
+ android:textAppearance="?android:attr/textAppearanceMedium"
+ android:textColor="?android:attr/textColorSecondary"
+ android:layout_gravity="center" />
+