Adds delete button to accounts list view

pull/2/head
Marat Subkhankulov 7 years ago
parent 1a911ab2be
commit 65483927d3
  1. 30
      app/src/main/res/layout/account_list_content.xml

@ -1,37 +1,37 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal"> android:orientation="horizontal">
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView <TextView
android:id="@+id/content" android:id="@+id/content"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="0.10"
android:layout_margin="@dimen/text_margin" android:layout_margin="@dimen/text_margin"
android:textIsSelectable="true" android:textIsSelectable="true"
android:textAppearance="?attr/textAppearanceListItem" /> android:textAppearance="?attr/textAppearanceListItem" />
<TextView <TextView
android:id="@+id/id" android:id="@+id/id"
android:layout_width="wrap_content" android:layout_width="0dp"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_weight="0.80"
android:layout_margin="@dimen/text_margin" android:layout_margin="@dimen/text_margin"
android:ellipsize="middle"
android:textIsSelectable="true" android:textIsSelectable="true"
android:textSize="12dp" android:textSize="12dp"
android:textAppearance="?attr/textAppearanceListItem" /> android:textAppearance="?attr/textAppearanceListItem" />
</LinearLayout> <ImageButton
android:id="@+id/button"
<Button android:layout_width="0dp"
android:id="@+id/button" android:layout_height="wrap_content"
android:layout_width="match_parent" android:layout_weight="0.10"
android:layout_height="wrap_content" android:src="@drawable/ic_delete_forever_black_24dp"
android:drawableLeft="@drawable/ic_delete_forever_black_24dp" /> android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" />
</LinearLayout> </LinearLayout>

Loading…
Cancel
Save