summaryrefslogtreecommitdiff
path: root/res
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2012-10-01 15:59:01 -0400
committerChris Wren <cwren@android.com>2012-10-01 16:31:36 -0400
commitd9b659aa5dfa4a3af96582ae49ba9ae145854a84 (patch)
tree7cca09ba4fbec7473c3950e6b5affdc9b9403939 /res
parentc225e17265676fe3a6c8848e54f4859492df9d1a (diff)
downloadPhotoTable-d9b659aa5dfa4a3af96582ae49ba9ae145854a84.tar.gz
find the disappearing settings, plus some layout.
Bug: 7242287 Bug: 7194713 Change-Id: I362c2ffa0d4cbc3be45d14ede1de5dbf39ec4d7f
Diffstat (limited to 'res')
-rw-r--r--res/layout/album.xml13
1 files changed, 8 insertions, 5 deletions
diff --git a/res/layout/album.xml b/res/layout/album.xml
index ed27d43..86ed595 100644
--- a/res/layout/album.xml
+++ b/res/layout/album.xml
@@ -13,16 +13,18 @@
See the License for the specific language governing permissions and
limitations under the License.
-->
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<LinearLayout 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:orientation="horizontal"
+ android:gravity="center_vertical"
android:background="?android:attr/selectableItemBackground" >
<TextView
android:id="@+id/title"
- android:layout_width="match_parent"
+ android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_marginLeft="20dp"
@@ -31,17 +33,18 @@
android:layout_centerVertical="true"
android:ellipsize="end"
android:singleLine="true"
+ android:layout_weight="1"
android:textAppearance="?android:attr/textAppearanceMedium" />
<CheckBox
android:id="@+id/enabled"
android:layout_width="wrap_content"
- android:layout_height="match_parent"
+ android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
- android:layout_toRightOf="@android:id/title"
+ android:layout_weight="0"
android:layout_marginRight="20dp"
android:clickable="false"
android:duplicateParentState="true" />
-</RelativeLayout>
+</LinearLayout>