activity_manage_accounts.xml

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