diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/layout/album.xml | 13 |
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> |