diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-05-17 21:46:33 +0200 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-05-17 21:46:33 +0200 |
commit | 245e32581b46acf11a2470441a296e9d520b6f71 (patch) | |
tree | 3b189d6e30c79503d39fb8fa1fc7cbe38087561e /src/main/res/layout | |
parent | ea913ce9cd9b7f020425b62e19f4822f8e1dd1e4 (diff) |
add possibility to de-/activate accounts
fixes #195
Diffstat (limited to 'src/main/res/layout')
-rw-r--r-- | src/main/res/layout/account_row.xml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/main/res/layout/account_row.xml b/src/main/res/layout/account_row.xml index 9af3b9653..6a9dee422 100644 --- a/src/main/res/layout/account_row.xml +++ b/src/main/res/layout/account_row.xml @@ -4,8 +4,8 @@ android:layout_width="match_parent" android:layout_height="wrap_content" android:background="?android:attr/activatedBackgroundIndicator" - android:paddingLeft="8dp" android:paddingBottom="8dp" + android:paddingLeft="8dp" android:paddingTop="8dp"> <com.makeramen.roundedimageview.RoundedImageView @@ -13,8 +13,8 @@ android:layout_width="48dp" android:layout_height="48dp" android:layout_alignParentLeft="true" - android:contentDescription="@string/account_image_description" android:background="@drawable/message_border" + android:contentDescription="@string/account_image_description" android:padding="1dp" app:riv_corner_radius="24dp" /> @@ -22,7 +22,9 @@ android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_centerVertical="true" + android:layout_toLeftOf="@+id/tgl_account_status" android:layout_toRightOf="@+id/account_image" + android:layout_toStartOf="@+id/tgl_account_status" android:orientation="vertical" android:paddingLeft="@dimen/avatar_item_distance"> @@ -42,4 +44,13 @@ android:textAppearance="@style/TextAppearance.Conversations.Body2" /> </LinearLayout> + <android.support.v7.widget.SwitchCompat + android:id="@+id/tgl_account_status" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_centerVertical="true" + android:focusable="false" + android:padding="16dp" /> + </RelativeLayout>
\ No newline at end of file |