diff options
author | Pacien TRAN-GIRARD | 2017-07-15 11:53:43 +0200 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2017-07-15 11:53:43 +0200 |
commit | 75fb7ba17f5977b146f166412eaf39705a5f4e73 (patch) | |
tree | b7e06d28e3215e152a6018861bbf72a619a89d16 /app/src/main/res/layout | |
parent | a2f166f907b7c7ac6f1e0ed6ff8c0637800f6b91 (diff) | |
download | tincapp-75fb7ba17f5977b146f166412eaf39705a5f4e73.tar.gz |
Refactor common list views
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/fragment_list_item.xml | 1 | ||||
-rw-r--r-- | app/src/main/res/layout/fragment_list_view.xml (renamed from app/src/main/res/layout/page_status.xml) | 8 | ||||
-rw-r--r-- | app/src/main/res/layout/page_start.xml | 18 |
3 files changed, 3 insertions, 24 deletions
diff --git a/app/src/main/res/layout/fragment_list_item.xml b/app/src/main/res/layout/fragment_list_item.xml index c6049f5..f872573 100644 --- a/app/src/main/res/layout/fragment_list_item.xml +++ b/app/src/main/res/layout/fragment_list_item.xml | |||
@@ -5,5 +5,4 @@ | |||
5 | android:paddingLeft="@dimen/activity_horizontal_margin" | 5 | android:paddingLeft="@dimen/activity_horizontal_margin" |
6 | android:paddingRight="@dimen/activity_horizontal_margin" | 6 | android:paddingRight="@dimen/activity_horizontal_margin" |
7 | android:paddingTop="@dimen/activity_vertical_margin"> | 7 | android:paddingTop="@dimen/activity_vertical_margin"> |
8 | |||
9 | </TextView> | 8 | </TextView> |
diff --git a/app/src/main/res/layout/page_status.xml b/app/src/main/res/layout/fragment_list_view.xml index bc68ea1..32e951e 100644 --- a/app/src/main/res/layout/page_status.xml +++ b/app/src/main/res/layout/fragment_list_view.xml | |||
@@ -1,14 +1,12 @@ | |||
1 | <android.support.v4.widget.SwipeRefreshLayout | 1 | <android.support.v4.widget.SwipeRefreshLayout |
2 | xmlns:android="http://schemas.android.com/apk/res/android" | 2 | xmlns:android="http://schemas.android.com/apk/res/android" |
3 | xmlns:tools="http://schemas.android.com/tools" | 3 | android:id="@+id/list_wrapper" |
4 | android:id="@+id/node_list_wrapper" | ||
5 | android:layout_width="match_parent" | 4 | android:layout_width="match_parent" |
6 | android:layout_height="match_parent" | 5 | android:layout_height="match_parent" |
7 | android:orientation="vertical" | 6 | android:orientation="vertical"> |
8 | tools:context="org.pacien.tincapp.activities.StatusActivity"> | ||
9 | 7 | ||
10 | <ListView | 8 | <ListView |
11 | android:id="@+id/node_list" | 9 | android:id="@+id/list" |
12 | android:layout_width="match_parent" | 10 | android:layout_width="match_parent" |
13 | android:layout_height="match_parent" | 11 | android:layout_height="match_parent" |
14 | android:divider="@drawable/horizontal_line" | 12 | android:divider="@drawable/horizontal_line" |
diff --git a/app/src/main/res/layout/page_start.xml b/app/src/main/res/layout/page_start.xml deleted file mode 100644 index b1bf2a4..0000000 --- a/app/src/main/res/layout/page_start.xml +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | <android.support.v4.widget.SwipeRefreshLayout | ||
2 | xmlns:android="http://schemas.android.com/apk/res/android" | ||
3 | xmlns:tools="http://schemas.android.com/tools" | ||
4 | android:id="@+id/network_list_wrapper" | ||
5 | android:layout_width="match_parent" | ||
6 | android:layout_height="match_parent" | ||
7 | android:orientation="vertical" | ||
8 | tools:context="org.pacien.tincapp.activities.StartActivity"> | ||
9 | |||
10 | <ListView | ||
11 | android:id="@+id/network_list" | ||
12 | android:layout_width="match_parent" | ||
13 | android:layout_height="match_parent" | ||
14 | android:divider="@drawable/horizontal_line" | ||
15 | android:footerDividersEnabled="false" | ||
16 | android:headerDividersEnabled="false"/> | ||
17 | |||
18 | </android.support.v4.widget.SwipeRefreshLayout> | ||