summaryrefslogtreecommitdiff
path: root/res/layout
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-09-09 13:50:15 +0400
committerAndrew Dolgov <[email protected]>2011-09-09 13:50:15 +0400
commit23e390d2cfc4b49fe6b158e5cd5f15797977f9f9 (patch)
treeab4369e118783f5c8695fb9757d7d4d07bcb95fa /res/layout
parent7393ab7631bfe138263ea8ffe2be4e012908d6c9 (diff)
implement basic headline loading
Diffstat (limited to 'res/layout')
-rw-r--r--res/layout/headlines_fragment.xml8
-rw-r--r--res/layout/headlines_row.xml13
2 files changed, 18 insertions, 3 deletions
diff --git a/res/layout/headlines_fragment.xml b/res/layout/headlines_fragment.xml
index 05281162..abe5076c 100644
--- a/res/layout/headlines_fragment.xml
+++ b/res/layout/headlines_fragment.xml
@@ -7,7 +7,9 @@
<ListView android:layout_weight="1" android:background="?headlinesBackground"
android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/headlines"></ListView>
</LinearLayout>
- <ProgressBar android:layout_height="wrap_content"
- android:layout_width="wrap_content"
- android:layout_gravity="center" android:id="@+id/loading_progress"/>
+ <TextView android:id="@+id/no_headlines"
+ android:visibility="invisible"
+ android:layout_gravity="center"
+ android:textAppearance="?android:attr/textAppearanceLarge" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/no_headlines"></TextView>
+
</FrameLayout>
diff --git a/res/layout/headlines_row.xml b/res/layout/headlines_row.xml
new file mode 100644
index 00000000..668fcd24
--- /dev/null
+++ b/res/layout/headlines_row.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:layout_width="fill_parent"
+ android:layout_height="?android:attr/listPreferredItemHeight"
+ android:gravity="center_vertical"
+ android:padding="3dip" android:id="@+id/headlines_row" android:orientation="horizontal">
+ <CheckBox android:paddingLeft="6dip" android:paddingRight="6dip" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/selected"></CheckBox>
+ <LinearLayout android:layout_height="wrap_content" android:id="@+id/linearLayout1" android:orientation="vertical" android:layout_width="match_parent">
+ <TextView android:id="@+id/title" android:textSize="16sp" android:layout_height="wrap_content" android:text="{Title...}" android:layout_width="match_parent"></TextView>
+ <TextView android:id="@+id/excerpt" android:textSize="13sp" android:layout_height="wrap_content" android:textColor="#909090" android:text="{Content excerpt...}" android:layout_width="match_parent"></TextView>
+ </LinearLayout>
+
+</LinearLayout> \ No newline at end of file