diff options
author | Scott Jackson <daneren2005@gmail.com> | 2015-06-09 17:39:34 -0700 |
---|---|---|
committer | Scott Jackson <daneren2005@gmail.com> | 2015-06-09 17:39:34 -0700 |
commit | 2d1a783bdc5679a770748d3330aad42e48f2157d (patch) | |
tree | 3275b0d63e9aa6210644ebe16f0f19b4f652bc29 /app/src/main/res/layout | |
parent | 741c6ea0923050a296d254c73e8df14a8476e86e (diff) | |
download | dsub-2d1a783bdc5679a770748d3330aad42e48f2157d.tar.gz dsub-2d1a783bdc5679a770748d3330aad42e48f2157d.tar.bz2 dsub-2d1a783bdc5679a770748d3330aad42e48f2157d.zip |
Convert UserFragment to RecyclerView
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/basic_choice_item.xml | 26 | ||||
-rw-r--r-- | app/src/main/res/layout/create_user.xml | 5 |
2 files changed, 28 insertions, 3 deletions
diff --git a/app/src/main/res/layout/basic_choice_item.xml b/app/src/main/res/layout/basic_choice_item.xml new file mode 100644 index 00000000..00a45be4 --- /dev/null +++ b/app/src/main/res/layout/basic_choice_item.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="horizontal" + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:background="?attr/selectableItemBackground"> + + <TextView + android:id="@+id/item_name" + android:layout_width="0dip" + android:layout_height="?android:attr/listPreferredItemHeight" + android:layout_weight="1" + android:textAppearance="?android:attr/textAppearanceMedium" + android:gravity="left|center_vertical" + android:paddingLeft="6dip" + android:paddingRight="6dip" + android:background="@android:color/transparent"/> + + <CheckBox + android:id="@+id/item_checkbox" + android:layout_width="wrap_content" + android:layout_height="fill_parent" + android:layout_gravity="right|center_vertical" + android:checkMark="?android:attr/listChoiceIndicatorMultiple" + style="@style/MoreButton"/> +</LinearLayout>
\ No newline at end of file diff --git a/app/src/main/res/layout/create_user.xml b/app/src/main/res/layout/create_user.xml index eac6e5cb..e2f6c4eb 100644 --- a/app/src/main/res/layout/create_user.xml +++ b/app/src/main/res/layout/create_user.xml @@ -67,11 +67,10 @@ android:layout_marginLeft="4dp" /> </LinearLayout> - <ListView + <android.support.v7.widget.RecyclerView android:id="@+id/settings_list" android:layout_width="fill_parent" android:layout_height="0dip" android:layout_weight="1.0" - android:fastScrollEnabled="true"/> - + android:scrollbars="vertical"/> </LinearLayout>
\ No newline at end of file |