aboutsummaryrefslogtreecommitdiffstats
path: root/main/res
diff options
context:
space:
mode:
authorBananeweizen <bananeweizen@gmx.de>2014-05-26 06:39:57 +0200
committerBananeweizen <bananeweizen@gmx.de>2014-05-26 06:39:57 +0200
commit3e65d1f37151fbe1ea870d6fd8059f6b822ab062 (patch)
tree99a82f5281bac1591b7c7eb386e5435a6dc719b7 /main/res
parentcd207f4f2b6edee2ad139505a883bee39f3be2b3 (diff)
downloadcgeo-3e65d1f37151fbe1ea870d6fd8059f6b822ab062.zip
cgeo-3e65d1f37151fbe1ea870d6fd8059f6b822ab062.tar.gz
cgeo-3e65d1f37151fbe1ea870d6fd8059f6b822ab062.tar.bz2
have the right list items and fragments in layout preview
Diffstat (limited to 'main/res')
-rw-r--r--main/res/layout/addresslist_activity.xml4
-rw-r--r--main/res/layout/logs_page.xml4
-rw-r--r--main/res/layout/main_activity.xml4
-rw-r--r--main/res/layout/simple_dir_chooser.xml4
-rw-r--r--main/res/layout/text_preference.xml15
-rw-r--r--main/res/layout/usefulapps_activity.xml4
-rw-r--r--main/res/layout/wp_threshold_preference.xml16
7 files changed, 33 insertions, 18 deletions
diff --git a/main/res/layout/addresslist_activity.xml b/main/res/layout/addresslist_activity.xml
index 3410137..6bcbf79 100644
--- a/main/res/layout/addresslist_activity.xml
+++ b/main/res/layout/addresslist_activity.xml
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical" >
@@ -12,6 +13,7 @@
android:background="?background_color"
android:cacheColorHint="?background_color"
android:dividerHeight="1dip"
- android:padding="0dip" />
+ android:padding="0dip"
+ tools:listitem="@layout/addresslist_item" />
</LinearLayout> \ No newline at end of file
diff --git a/main/res/layout/logs_page.xml b/main/res/layout/logs_page.xml
index 9aafd83..f0a5d31 100644
--- a/main/res/layout/logs_page.xml
+++ b/main/res/layout/logs_page.xml
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:cacheColorHint="?background_color"
@@ -8,6 +9,7 @@
android:focusable="false"
android:footerDividersEnabled="false"
android:headerDividersEnabled="false"
- android:listSelector="?background_color" >
+ android:listSelector="?background_color"
+ tools:listitem="@layout/logs_item" >
</ListView> \ No newline at end of file
diff --git a/main/res/layout/main_activity.xml b/main/res/layout/main_activity.xml
index 29a445f..d2bd025 100644
--- a/main/res/layout/main_activity.xml
+++ b/main/res/layout/main_activity.xml
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/mainscreen"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
@@ -13,7 +14,8 @@
android:layout_alignParentTop="true"
android:layout_marginLeft="16dip"
android:layout_marginRight="16dip"
- android:layout_marginTop="60dip" />
+ android:layout_marginTop="60dip"
+ tools:layout="@layout/status" />
<!-- ** -->
<LinearLayout
diff --git a/main/res/layout/simple_dir_chooser.xml b/main/res/layout/simple_dir_chooser.xml
index 77b1950..1bf9a2d 100644
--- a/main/res/layout/simple_dir_chooser.xml
+++ b/main/res/layout/simple_dir_chooser.xml
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="?background_color"
@@ -63,6 +64,7 @@
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@id/buttonLayout"
- android:layout_below="@+id/headerLayout" />
+ android:layout_below="@+id/headerLayout"
+ tools:listitem="@layout/simple_dir_item" />
</RelativeLayout> \ No newline at end of file
diff --git a/main/res/layout/text_preference.xml b/main/res/layout/text_preference.xml
index 818b2f3..174a6d1 100644
--- a/main/res/layout/text_preference.xml
+++ b/main/res/layout/text_preference.xml
@@ -1,22 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
+ android:orientation="vertical"
android:paddingLeft="16dp"
android:paddingRight="16dp"
- android:orientation="vertical" >
+ tools:context=".settings.SettingsActivity" >
- <TextView
+ <TextView
android:id="@+id/textPreferenceText"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall" />
- <TextView
+
+ <TextView
android:id="@+id/textPreferenceSummary"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:paddingTop="8dp"
- android:visibility="gone"
- android:textAppearance="?android:attr/textAppearanceSmall" />
+ android:textAppearance="?android:attr/textAppearanceSmall"
+ android:visibility="gone" />
-</LinearLayout>
+</LinearLayout> \ No newline at end of file
diff --git a/main/res/layout/usefulapps_activity.xml b/main/res/layout/usefulapps_activity.xml
index fa2112e..e15cd7a 100644
--- a/main/res/layout/usefulapps_activity.xml
+++ b/main/res/layout/usefulapps_activity.xml
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="?background_color"
@@ -15,7 +16,8 @@
android:footerDividersEnabled="false"
android:headerDividersEnabled="false"
android:listSelector="?background_color"
- android:padding="4dip" >
+ android:padding="4dip"
+ tools:listitem="@layout/usefulapps_item" >
</ListView>
</LinearLayout> \ No newline at end of file
diff --git a/main/res/layout/wp_threshold_preference.xml b/main/res/layout/wp_threshold_preference.xml
index 22ffe9a..f3cbc86 100644
--- a/main/res/layout/wp_threshold_preference.xml
+++ b/main/res/layout/wp_threshold_preference.xml
@@ -1,26 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:paddingLeft="16dp"
android:paddingRight="16dp"
- android:paddingTop="8dp" >
-
+ android:paddingTop="8dp"
+ tools:context=".settings.SettingsActivity" >
+
<SeekBar
android:id="@+id/wp_threshold_seekbar"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:paddingRight="8dp"
- android:layout_weight="1" />
+ android:layout_weight="1"
+ android:paddingRight="8dp" />
<TextView
android:id="@+id/wp_threshold_value_view"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_gravity="center"
- android:gravity="center"
- android:layout_weight="5" />
+ android:layout_weight="5"
+ android:gravity="center" />
-</LinearLayout>
+</LinearLayout> \ No newline at end of file