diff options
Diffstat (limited to 'res/layout/pick_calls_item.xml')
-rw-r--r-- | res/layout/pick_calls_item.xml | 158 |
1 files changed, 67 insertions, 91 deletions
diff --git a/res/layout/pick_calls_item.xml b/res/layout/pick_calls_item.xml index bee62cd0e..3adca5670 100644 --- a/res/layout/pick_calls_item.xml +++ b/res/layout/pick_calls_item.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- * - * Copyright (c) 2015, The Linux Foundation. All rights reserved. + * Copyright (c) 2014, The Linux Foundation. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are @@ -28,117 +28,93 @@ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. --> -<LinearLayout - xmlns:android="http://schemas.android.com/apk/res/android" - android:layout_width="fill_parent" - android:layout_height="wrap_content" - android:orientation="horizontal" - android:minHeight="?android:attr/listPreferredItemHeight" - android:paddingTop="3dip" - android:paddingBottom="3dip" - > - <LinearLayout - android:layout_width="60dip" - android:layout_weight="0" - android:layout_height="match_parent" - android:orientation="vertical" - android:gravity="center_horizontal"> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:minHeight="72dp" + android:descendantFocusability="blocksDescendants"> - <ImageView android:id="@+id/call_type_icon" + <CheckBox + android:id="@+id/pick_contact_check" android:layout_width="wrap_content" - android:layout_weight="1" android:layout_height="wrap_content" - android:layout_alignParentTop="true" - android:layout_alignParentStart="true" - android:layout_marginStart="4dip"/> - - <TextView android:id="@+id/label" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_weight="1" - android:singleLine="true" - android:textAppearance="?android:attr/textAppearanceSmall" - android:textStyle="bold"/> - </LinearLayout> + android:layout_marginStart="8dip" + android:layout_marginEnd="8dip" + android:layout_gravity="center_vertical" + android:clickable="false" /> <LinearLayout - android:layout_width="wrap_content" - android:layout_weight="1" - android:layout_height="match_parent" - android:orientation="vertical"> - - <LinearLayout - android:layout_width="match_parent" + android:layout_width="0dp" android:layout_height="wrap_content" android:layout_weight="1" - android:orientation="horizontal"> + android:layout_gravity="center_vertical" + android:orientation="vertical"> - <TextView android:id="@+id/number" + <TextView + android:id="@+id/name" android:layout_width="wrap_content" - android:layout_weight="1" android:layout_height="wrap_content" - android:singleLine="true" - android:textAppearance="?android:attr/textAppearanceSmall" - /> + android:textAppearance="@android:style/TextAppearance.Material.Subhead" + android:singleLine="true" /> - <TextView android:id="@+id/line1" + <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_weight="1" - android:textAppearance="?android:attr/textAppearanceSmall" - android:singleLine="true" - /> + android:orientation="horizontal"> + + <TextView + android:id="@+id/subscription" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginEnd="4dip" + android:textAppearance="@android:style/TextAppearance.Material.Caption" + android:textSize="12sp" + android:singleLine="true" + android:ellipsize="marquee" /> + + <TextView + android:id="@+id/label" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:textAppearance="@android:style/TextAppearance.Material.Caption" + android:singleLine="true" + android:ellipsize="marquee" /> - <TextView android:id="@+id/subscription" - android:layout_width="wrap_content" - android:layout_weight="0" - android:layout_height="wrap_content" - android:textAppearance="?android:attr/textAppearanceSmall" - android:singleLine="true" - /> </LinearLayout> - <LinearLayout - android:layout_width="match_parent" - android:layout_height="wrap_content" - android:layout_weight="1" - android:orientation="horizontal"> - <TextView android:id="@+id/duration" + <LinearLayout android:layout_width="wrap_content" - android:layout_weight="1" android:layout_height="wrap_content" - android:textAppearance="?android:attr/textAppearanceSmall" - android:singleLine="true" - /> + android:orientation="horizontal"> + + <ImageView + android:id="@+id/call_type_icon" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginEnd="4dip" + android:layout_gravity="center_vertical" /> - <TextView android:id="@+id/date" - android:layout_weight="0" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:textAppearance="?android:attr/textAppearanceSmall" - android:singleLine="true" - /> + + <TextView + android:id="@+id/call_date" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:textAppearance="@android:style/TextAppearance.Material.Caption" + android:singleLine="true" /> </LinearLayout> + </LinearLayout> - <View android:id="@+id/divider" - android:layout_weight="0" - android:layout_width="1px" - android:layout_height="match_parent" - android:layout_marginTop="5dip" - android:layout_marginBottom="5dip" - android:layout_marginStart="11dip" - /> + <TextView android:id="@+id/duration" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:layout_marginStart="4dip" + android:layout_marginEnd="8dip" + android:textAppearance="@android:style/TextAppearance.Material.Body1" + android:singleLine="true" /> - <CheckBox - android:layout_weight="0" - android:id="@+id/pick_contact_check" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_marginEnd="10dip" - android:layout_centerVertical="true" - android:focusable="false" - android:clickable="false"> - </CheckBox> -</LinearLayout> +</LinearLayout>
\ No newline at end of file |