Material design: list items
This commit is contained in:
@ -27,7 +27,7 @@
|
||||
android:layout_marginStart="@dimen/listitem_text_left_margin"
|
||||
android:layout_toLeftOf="@+id/browser_status_icon"
|
||||
android:layout_toStartOf="@+id/browser_status_icon"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Primary" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/browser_status_icon"
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/listitem_height_two_lines"
|
||||
android:paddingEnd="@dimen/listitem_horizontal_margin"
|
||||
android:paddingRight="@dimen/listitem_horizontal_margin">
|
||||
|
@ -1,24 +1,35 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp" >
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/listitem_height_two_lines"
|
||||
android:paddingEnd="@dimen/listitem_horizontal_margin"
|
||||
android:paddingRight="@dimen/listitem_horizontal_margin">
|
||||
|
||||
<!-- The nickname of the LeaseSet -->
|
||||
<TextView android:id="@+id/ls_nickname"
|
||||
<TextView
|
||||
android:id="@+id/ls_nickname"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="3dp"
|
||||
android:textSize="16sp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_marginRight="5dp"
|
||||
android:text="LeaseSet nickname" />
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_marginLeft="@dimen/listitem_horizontal_margin"
|
||||
android:layout_marginStart="@dimen/listitem_horizontal_margin"
|
||||
android:layout_marginTop="@dimen/listitem_text_top_margin_two_lines"
|
||||
android:text="LeaseSet nickname"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Primary" />
|
||||
|
||||
<!-- The hash of the LeaseSet -->
|
||||
<TextView android:id="@+id/dbentry_hash"
|
||||
<TextView
|
||||
android:id="@+id/dbentry_hash"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@id/ls_nickname"
|
||||
android:text="LeaseSet hash" />
|
||||
android:layout_alignLeft="@+id/ls_nickname"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignStart="@+id/ls_nickname"
|
||||
android:layout_marginBottom="@dimen/listitem_text_bottom_margin_two_lines"
|
||||
android:ellipsize="end"
|
||||
android:maxLines="1"
|
||||
android:text="LeaseSet hash"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Secondary" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
@ -1,25 +1,36 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="5dp" >
|
||||
|
||||
<!-- The hash of the RouterInfo -->
|
||||
<TextView android:id="@+id/dbentry_hash"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="3dp"
|
||||
android:textSize="16sp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_marginRight="5dp"
|
||||
android:text="RouterInfo hash" />
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/listitem_height_one_line"
|
||||
android:layout_marginEnd="@dimen/listitem_horizontal_margin"
|
||||
android:layout_marginRight="@dimen/listitem_horizontal_margin">
|
||||
|
||||
<!-- Country flag -->
|
||||
<ImageView android:id="@+id/ri_country"
|
||||
<ImageView
|
||||
android:id="@+id/ri_country"
|
||||
android:layout_width="@dimen/listitem_icon_size"
|
||||
android:layout_height="@dimen/listitem_icon_size"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_marginLeft="@dimen/listitem_horizontal_margin"
|
||||
android:layout_marginStart="@dimen/listitem_horizontal_margin"
|
||||
android:contentDescription="Country"
|
||||
android:visibility="gone" />
|
||||
|
||||
<!-- The hash of the RouterInfo -->
|
||||
<TextView
|
||||
android:id="@+id/dbentry_hash"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_alignParentStart="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:contentDescription="Country" />
|
||||
android:layout_marginLeft="@dimen/listitem_horizontal_margin"
|
||||
android:layout_marginStart="@dimen/listitem_horizontal_margin"
|
||||
android:ellipsize="marquee"
|
||||
android:maxLines="1"
|
||||
android:text="RouterInfo hash"
|
||||
android:textAppearance="@style/TextAppearance.AppCompat.Primary" />
|
||||
|
||||
</RelativeLayout>
|
||||
|
Reference in New Issue
Block a user