Material theme: contact list
This commit is contained in:
@@ -1,13 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:padding="5dp" >
|
||||
android:layout_height="@dimen/listitem_height_one_line">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/contact_picture"
|
||||
android:layout_width="54dp"
|
||||
android:layout_height="54dp"
|
||||
android:layout_width="@dimen/listitem_picture_size"
|
||||
android:layout_height="@dimen/listitem_picture_size"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="@dimen/listitem_horizontal_margin"
|
||||
android:layout_marginStart="@dimen/listitem_horizontal_margin"
|
||||
android:scaleType="centerCrop"
|
||||
android:src="@drawable/ic_contact_picture" />
|
||||
|
||||
@@ -15,11 +17,12 @@
|
||||
android:id="@+id/contact_name"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignTop="@+id/contact_picture"
|
||||
android:layout_marginTop="13dp"
|
||||
android:layout_marginLeft="15dp"
|
||||
android:layout_toRightOf="@+id/contact_picture"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="@dimen/listitem_text_left_margin"
|
||||
android:layout_marginStart="@dimen/listitem_text_left_margin"
|
||||
android:text="Contact name"
|
||||
android:textAppearance="?android:attr/textAppearanceMedium" />
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/listitem_height"
|
||||
android:layout_height="@dimen/listitem_height_three_lines"
|
||||
android:background="@drawable/listitem_checked">
|
||||
|
||||
<ImageView
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
<dimen name="nav_horizontal_margin">16dp</dimen>
|
||||
<dimen name="nav_entry_height">48dp</dimen>
|
||||
|
||||
<dimen name="listitem_height">88dp</dimen>
|
||||
<dimen name="listitem_height_one_line">56dp</dimen>
|
||||
<dimen name="listitem_height_three_lines">88dp</dimen>
|
||||
<dimen name="listitem_horizontal_margin">16dp</dimen>
|
||||
<dimen name="listitem_picture_size">40dp</dimen>
|
||||
<dimen name="listitem_text_left_margin">72dp</dimen>
|
||||
|
||||
Reference in New Issue
Block a user