From 6962d139746347aff034e3a84eaecf3e98062160 Mon Sep 17 00:00:00 2001 From: daniel oeh Date: Thu, 4 Dec 2014 16:34:32 +0100 Subject: Updated audio player layout --- app/src/main/res/layout/simplechapter_item.xml | 78 ++++++++++++++++---------- 1 file changed, 48 insertions(+), 30 deletions(-) (limited to 'app/src/main/res/layout/simplechapter_item.xml') diff --git a/app/src/main/res/layout/simplechapter_item.xml b/app/src/main/res/layout/simplechapter_item.xml index 422458d5d..b7f4cdb18 100644 --- a/app/src/main/res/layout/simplechapter_item.xml +++ b/app/src/main/res/layout/simplechapter_item.xml @@ -1,43 +1,61 @@ - + android:layout_height="@dimen/listitem_threeline_height" + android:orientation="horizontal"> + android:layout_gravity="center_vertical" + android:layout_marginLeft="@dimen/listitem_threeline_horizontalpadding" + android:gravity="center_vertical" /> - + android:layout_height="match_parent" + android:layout_marginBottom="@dimen/listitem_threeline_verticalpadding" + android:layout_marginLeft="@dimen/listitem_threeline_horizontalpadding" + android:layout_marginRight="@dimen/listitem_threeline_horizontalpadding" + android:layout_marginTop="@dimen/listitem_threeline_verticalpadding" + android:layout_weight="1" + android:gravity="center_vertical" + android:orientation="vertical"> - + + + + + + + + + android:src="?attr/av_play" /> - \ No newline at end of file + \ No newline at end of file -- cgit v1.2.3 From ad583e453d6be87b1c0d9a045119114c75faaf23 Mon Sep 17 00:00:00 2001 From: Tobias Preuss Date: Sun, 25 Jan 2015 10:27:46 +0100 Subject: Use design time attributes to assist layouting and value preview. + See: http://tools.android.com/tips/layout-designtime-attributes + This commit introduces no functional code changes! --- app/src/main/res/layout/simplechapter_item.xml | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) (limited to 'app/src/main/res/layout/simplechapter_item.xml') diff --git a/app/src/main/res/layout/simplechapter_item.xml b/app/src/main/res/layout/simplechapter_item.xml index b7f4cdb18..fae6bac8c 100644 --- a/app/src/main/res/layout/simplechapter_item.xml +++ b/app/src/main/res/layout/simplechapter_item.xml @@ -1,8 +1,10 @@ + android:orientation="horizontal" + tools:background="@android:color/darker_gray"> + android:gravity="center_vertical" + tools:text="Start" + tools:background="@android:color/holo_green_dark" /> + android:orientation="vertical" + tools:background="@android:color/holo_red_dark"> + android:textSize="16sp" + tools:text="Chapter title" + tools:background="@android:color/holo_green_dark" /> + android:visibility="gone" + tools:visibility="visible" + tools:text="Link" + tools:background="@android:color/holo_green_dark" /> @@ -56,6 +66,8 @@ android:contentDescription="@string/chapters_label" android:focusable="false" android:focusableInTouchMode="false" - android:src="?attr/av_play" /> + android:src="?attr/av_play" + tools:src="@drawable/ic_play_arrow_white_36dp" + tools:background="@android:color/holo_green_dark" /> \ No newline at end of file -- cgit v1.2.3