diff options
Diffstat (limited to 'res/layout')
-rw-r--r-- | res/layout/article_fragment.xml | 7 | ||||
-rw-r--r-- | res/layout/headlines_fragment.xml | 6 | ||||
-rw-r--r-- | res/layout/headlines_row.xml | 9 | ||||
-rw-r--r-- | res/layout/main.xml | 12 |
4 files changed, 23 insertions, 11 deletions
diff --git a/res/layout/article_fragment.xml b/res/layout/article_fragment.xml new file mode 100644 index 00000000..cc65deff --- /dev/null +++ b/res/layout/article_fragment.xml @@ -0,0 +1,7 @@ + + <LinearLayout android:id="@+id/article_fragment" android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android"> + <ImageView android:paddingRight="2dip" android:layout_height="match_parent" android:background="?feedlistDivider" android:layout_width="wrap_content" android:paddingLeft="2dip"></ImageView> + <LinearLayout android:gravity="center" android:layout_height="match_parent" android:id="@+id/linearLayout1" android:layout_width="match_parent"> + <TextView android:text="--- Article ---" android:id="@+id/textView1" android:layout_height="wrap_content" android:layout_width="wrap_content" android:textAppearance="?android:attr/textAppearanceLarge"></TextView> + </LinearLayout> + </LinearLayout> diff --git a/res/layout/headlines_fragment.xml b/res/layout/headlines_fragment.xml index abe5076c..588e1404 100644 --- a/res/layout/headlines_fragment.xml +++ b/res/layout/headlines_fragment.xml @@ -4,12 +4,8 @@ android:layout_width="fill_parent"
android:layout_height="fill_parent" android:id="@+id/headlines_fragment">
<LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" xmlns:android="http://schemas.android.com/apk/res/android">
- <ListView android:layout_weight="1" android:background="?headlinesBackground"
+ <ListView android:layout_weight="1"
android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/headlines"></ListView>
</LinearLayout>
- <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 index e586a7f3..91b81a30 100644 --- a/res/layout/headlines_row.xml +++ b/res/layout/headlines_row.xml @@ -1,10 +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" android:layout_height="match_parent"> - <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"> + android:padding="3dip" android:id="@+id/headlines_row" android:orientation="horizontal">
+ <CheckBox android:focusable="false"
+ android:paddingLeft="6dip" android:paddingRight="6dip" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/selected"></CheckBox>
+ + <LinearLayout android:layout_weight="1" 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:text="{Title...}" android:layout_width="match_parent" android:layout_height="match_parent"></TextView> <TextView android:id="@+id/excerpt" android:textSize="13sp" android:textColor="#909090" android:text="{Content excerpt...}" android:layout_width="match_parent" android:layout_height="match_parent"></TextView> </LinearLayout>
diff --git a/res/layout/main.xml b/res/layout/main.xml index 63cdbda7..8a8b4b16 100644 --- a/res/layout/main.xml +++ b/res/layout/main.xml @@ -18,14 +18,20 @@ android:paddingLeft="2dip" android:paddingRight="2dip" android:layout_width="wrap_content" android:layout_height="match_parent"></ImageView> - </LinearLayout> - - <LinearLayout android:layout_weight="0.5" android:layout_height="match_parent" android:id="@+id/headlines_container" android:layout_width="match_parent"> </LinearLayout> + <LinearLayout android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/LinearLayout1" android:layout_weight="0.5"> + <LinearLayout android:layout_width="match_parent" android:layout_weight="0" android:id="@+id/headlines_container" android:layout_height="match_parent"></LinearLayout> + <LinearLayout android:layout_width="match_parent" android:layout_weight="1" android:background="#f0f0ff" android:id="@+id/article_container" android:layout_height="match_parent"></LinearLayout> + </LinearLayout> </LinearLayout> <TextView android:layout_gravity="center" android:visibility="invisible" android:textAppearance="?android:attr/textAppearanceLarge" android:text="@string/no_unread_feeds" android:layout_width="wrap_content" android:layout_height="wrap_content" android:id="@+id/no_unread_feeds"></TextView> + <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>
\ No newline at end of file |