summaryrefslogtreecommitdiff
path: root/res/layout
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2012-09-18 15:58:46 -0400
committerChris Wren <cwren@android.com>2012-09-19 13:26:30 -0400
commite38c0c80e3e9b3b835e5c2e014ccf23e29663396 (patch)
treee2f13ea1a56b9f2c3738c91a2986684a690bacc4 /res/layout
parentc6175b1e065fb544ea3744a991a33304abc2f8ed (diff)
downloadPhotoTable-e38c0c80e3e9b3b835e5c2e014ccf23e29663396.tar.gz
Segment album list by account.
Bug: 7162806 Change-Id: I3a7f2c1a9e9d0ff299f4d5a8536013b9ec8f52ba
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/album.xml35
-rw-r--r--res/layout/header.xml23
2 files changed, 54 insertions, 4 deletions
diff --git a/res/layout/album.xml b/res/layout/album.xml
index 890d96c..ee96c6c 100644
--- a/res/layout/album.xml
+++ b/res/layout/album.xml
@@ -13,7 +13,34 @@
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:orientation="horizontal" >
- <CheckBox android:id="@+id/enabled" />
-</LinearLayout >
+<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@android:id/widget_frame"
+ android:minHeight="48dp"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:background="?android:attr/selectableItemBackground" >
+
+ <TextView
+ android:id="@+id/title"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:layout_marginBottom="10dp"
+ android:layout_marginLeft="20dp"
+ android:layout_marginRight="6dp"
+ android:layout_marginTop="10dp"
+ android:layout_centerVertical="true"
+ android:ellipsize="end"
+ android:singleLine="true"
+ android:textAppearance="?android:attr/textAppearanceMedium" />
+
+ <CheckBox
+ android:id="@+id/enabled"
+ android:layout_width="wrap_content"
+ android:layout_height="match_parent"
+ android:layout_alignParentRight="true"
+ android:layout_centerVertical="true"
+ android:layout_toRightOf="@android:id/title"
+ android:layout_marginRight="20dp"
+ android:duplicateParentState="true" />
+
+</RelativeLayout>
diff --git a/res/layout/header.xml b/res/layout/header.xml
new file mode 100644
index 0000000..29aa1ce
--- /dev/null
+++ b/res/layout/header.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2012 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.
+-->
+<TextView xmlns:android="http://schemas.android.com/apk/res/android"
+ android:id="@+id/title"
+ android:layout_width="match_parent"
+ android:layout_height="wrap_content"
+ android:singleLine="true"
+ style="?android:attr/listSeparatorTextViewStyle"
+ android:ellipsize="end"
+ />