summaryrefslogtreecommitdiff
path: root/res/layout/provider_list_fragment.xml
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-02-11 17:32:19 +0100
committerParménides GV <parmegv@sdf.org>2013-02-11 17:32:19 +0100
commit8db161017f55a710bd91aa14fe9c1b24d4efdeab (patch)
tree037a3440d96315535e69958d45f3cd3d2ee20b76 /res/layout/provider_list_fragment.xml
parente3acc71aaedfcf97b2adee907b6587e3c1eadf48 (diff)
The newProviderButton gets user to the DialogFragment correctly.
The problem in the previous commit was that I had to modify the fragment layout, instead of that of the Activity. I learnt how to obtain and modify it from here: https://developer.android.com/reference/android/app/ListFragment.html
Diffstat (limited to 'res/layout/provider_list_fragment.xml')
-rw-r--r--res/layout/provider_list_fragment.xml21
1 files changed, 21 insertions, 0 deletions
diff --git a/res/layout/provider_list_fragment.xml b/res/layout/provider_list_fragment.xml
new file mode 100644
index 00000000..9bb775d7
--- /dev/null
+++ b/res/layout/provider_list_fragment.xml
@@ -0,0 +1,21 @@
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:paddingLeft="8dp"
+ android:paddingRight="8dp">
+
+ <ListView
+ android:id="@id/android:list"
+ android:layout_width="match_parent"
+ android:layout_height="match_parent"
+ android:layout_weight="1"
+ android:drawSelectorOnTop="false" />
+
+ <Button
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:onClick="addNewProvider"
+ android:text="@string/new_provider_button" />
+
+</LinearLayout> \ No newline at end of file