92 lines
4.2 KiB
XML
92 lines
4.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- Based on: https://github.com/android/platform_frameworks_base/blob/505e3ab/core/res/res/layout/simple_list_item_2.xml -->
|
|
<LinearLayout
|
|
xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
android:id="@+id/indicator"
|
|
android:orientation="vertical"
|
|
android:background="@drawable/background_profile"
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:orientation="vertical"
|
|
android:paddingLeft="8dp"
|
|
android:paddingRight="4dp"
|
|
android:paddingTop="8dp"
|
|
android:paddingBottom="8dp"
|
|
android:focusable="true"
|
|
android:nextFocusRight="@+id/edit"
|
|
android:id="@+id/content"
|
|
android:background="?android:attr/selectableItemBackground">
|
|
<LinearLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:id="@+id/container">
|
|
<TextView
|
|
android:id="@android:id/text1"
|
|
android:layout_width="0dp"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="center_vertical"
|
|
android:layout_weight="1"
|
|
android:textAppearance="?android:attr/textAppearanceMedium"
|
|
android:textColor="?android:attr/textColorPrimary"
|
|
android:textStyle="bold"
|
|
android:gravity="center_vertical"
|
|
android:maxLines="2"
|
|
android:ellipsize="end"/>
|
|
<android.support.v7.widget.AppCompatImageView
|
|
android:id="@+id/share"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:padding="8dp"
|
|
android:layout_gravity="top"
|
|
app:srcCompat="@drawable/ic_social_share"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/share"
|
|
android:focusable="true"
|
|
android:nextFocusLeft="@+id/container"/>
|
|
<android.support.v7.widget.AppCompatImageView
|
|
android:id="@+id/edit"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:padding="8dp"
|
|
android:layout_gravity="top"
|
|
app:srcCompat="@drawable/ic_image_edit"
|
|
android:background="?attr/selectableItemBackgroundBorderless"
|
|
android:contentDescription="@string/edit"
|
|
android:focusable="true"/>
|
|
</LinearLayout>
|
|
<RelativeLayout
|
|
android:layout_width="match_parent"
|
|
android:layout_height="wrap_content"
|
|
android:layout_marginStart="8dp"
|
|
android:layout_marginEnd="8dp">
|
|
<TextView
|
|
android:id="@android:id/text2"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_alignParentStart="true"
|
|
android:layout_toStartOf="@+id/traffic"
|
|
android:layout_marginEnd="8dp"
|
|
android:layout_marginBottom="8dp"
|
|
android:maxLines="2"
|
|
android:ellipsize="end"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textColor="?android:attr/textColorSecondary"/>
|
|
<TextView
|
|
android:id="@+id/traffic"
|
|
android:layout_width="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
android:layout_gravity="bottom"
|
|
android:layout_alignParentEnd="true"
|
|
android:layout_marginBottom="8dp"
|
|
android:ellipsize="end"
|
|
android:textAppearance="?android:attr/textAppearanceSmall"
|
|
android:textColor="?android:attr/textColorSecondary"/>
|
|
</RelativeLayout>
|
|
</LinearLayout>
|
|
</LinearLayout>
|