activity_manage_accounts.xml

 1<?xml version="1.0" encoding="utf-8"?>
 2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 3    android:layout_width="fill_parent"
 4    android:layout_height="fill_parent"
 5    android:background="?attr/color_background_primary"
 6    android:orientation="vertical"
 7    xmlns:app="http://schemas.android.com/apk/res-auto">
 8
 9    <include layout="@layout/toolbar" />
10
11    <ListView
12        android:id="@+id/account_list"
13        android:layout_width="fill_parent"
14        android:layout_height="wrap_content"
15        android:divider="@android:color/transparent"
16        android:dividerHeight="0dp" >
17    </ListView>
18
19    <RelativeLayout
20        android:id="@+id/phone_accounts"
21        android:visibility="gone"
22        android:layout_width="match_parent"
23        android:layout_height="wrap_content"
24        android:background="?selectableItemBackground"
25        android:paddingLeft="8dp"
26        android:paddingBottom="8dp"
27        android:paddingTop="8dp">
28
29        <com.google.android.material.imageview.ShapeableImageView
30            android:id="@+id/phone_accounts_image"
31            android:layout_width="48dp"
32            android:layout_height="48dp"
33            android:layout_alignParentLeft="true"
34            android:src="@drawable/ic_call_white_48dp"
35            android:background="@color/yeller"
36            app:strokeColor="@color/custom_theme_accent"
37            app:shapeAppearance="@style/ShapeAppearanceOverlay.Photo" />
38
39        <LinearLayout
40            android:layout_width="fill_parent"
41            android:layout_height="wrap_content"
42            android:layout_centerVertical="true"
43            android:layout_toRightOf="@+id/phone_accounts_image"
44            android:orientation="vertical"
45            android:paddingLeft="@dimen/avatar_item_distance">
46
47            <TextView
48                android:layout_width="wrap_content"
49                android:layout_height="wrap_content"
50                android:scrollHorizontally="false"
51                android:singleLine="true"
52                android:text="Manage Phone Accounts"
53                android:textAppearance="@style/TextAppearance.Conversations.Subhead" />
54
55            <TextView
56                android:layout_width="wrap_content"
57                android:layout_height="wrap_content"
58                android:text="Android system dialler integration"
59                android:textAppearance="@style/TextAppearance.Conversations.Body2" />
60        </LinearLayout>
61
62        <com.google.android.material.imageview.ShapeableImageView
63            android:id="@+id/phone_accounts_settings"
64            android:layout_width="48dp"
65            android:layout_height="48dp"
66            android:layout_alignParentRight="true"
67            android:layout_centerVertical="true"
68            android:paddingRight="16dp"
69            android:src="?attr/icon_settings"
70            app:strokeColor="@null"
71            app:shapeAppearance="@style/ShapeAppearanceOverlay.Photo" />
72    </RelativeLayout>
73
74</LinearLayout>