diff options
Diffstat (limited to 'vdrmanager/res/layout')
-rw-r--r-- | vdrmanager/res/layout/folder_item.xml | 32 | ||||
-rw-r--r-- | vdrmanager/res/layout/header_item.xml | 4 | ||||
-rw-r--r-- | vdrmanager/res/layout/recording_list.xml | 24 | ||||
-rw-r--r-- | vdrmanager/res/layout/vdrmanager.xml | 35 |
4 files changed, 65 insertions, 30 deletions
diff --git a/vdrmanager/res/layout/folder_item.xml b/vdrmanager/res/layout/folder_item.xml new file mode 100644 index 0000000..432fa13 --- /dev/null +++ b/vdrmanager/res/layout/folder_item.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="utf-8"?> +<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="fill_parent" + android:orientation="horizontal" + android:padding="5dip" + android:layout_height="wrap_content" > + + <ImageView + android:layout_width="24dp" + android:layout_height="24dp" + android:src="@drawable/folder" /> + + <TextView + android:id="@+id/header_item" + android:textAppearance="?android:textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:paddingLeft="5dip" + android:layout_weight="1" + android:layout_gravity="center_vertical" + android:text="House of Cards" /> + + + <TextView + android:id="@+id/count" + android:textAppearance="?android:textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center_vertical" + android:text="3" /> + +</LinearLayout>
\ No newline at end of file diff --git a/vdrmanager/res/layout/header_item.xml b/vdrmanager/res/layout/header_item.xml index 0ca07d6..0821980 100644 --- a/vdrmanager/res/layout/header_item.xml +++ b/vdrmanager/res/layout/header_item.xml @@ -1,8 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <TextView xmlns:android="http://schemas.android.com/apk/res/android" -android:text="Header" +android:text="Header" android:layout_margin="2dip" android:paddingLeft="4dip" android:paddingRight="4dip" android:background="#444444" android:textAppearance="?android:textAppearanceMedium" android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/header_item"/> - + diff --git a/vdrmanager/res/layout/recording_list.xml b/vdrmanager/res/layout/recording_list.xml index 66eb5de..d4bd820 100644 --- a/vdrmanager/res/layout/recording_list.xml +++ b/vdrmanager/res/layout/recording_list.xml @@ -4,16 +4,34 @@ android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" > - <LinearLayout android:layout_height="fill_parent" + <LinearLayout android:layout_height="fill_parent" android:orientation="vertical" android:layout_width="fill_parent" android:id="@+id/main_content"> - <ListView xmlns:android="http://schemas.android.com/apk/res/android" + <LinearLayout + android:layout_width="fill_parent" + android:layout_height="wrap_content" + android:layout_alignParentBottom="true" + android:orientation="horizontal" + android:paddingTop="2dp" android:paddingBottom="2dp" android:paddingLeft="5dp" android:paddingRight="5dp" > + <TextView + android:id="@+id/folder_info" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_weight="1" + /> + <TextView android:id="@+id/current_count" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + /> + </LinearLayout> + + <ListView android:id="@+id/recording_list" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_alignWithParentIfMissing="true" android:layout_alignParentTop="true" android:layout_centerHorizontal="true" android:cacheColorHint="?android:attr/colorBackground" /> </LinearLayout> - + <LinearLayout android:orientation="vertical" android:id="@+id/no_connection_layout" android:layout_width="fill_parent" android:layout_height="fill_parent"> diff --git a/vdrmanager/res/layout/vdrmanager.xml b/vdrmanager/res/layout/vdrmanager.xml index d963d70..8fdf062 100644 --- a/vdrmanager/res/layout/vdrmanager.xml +++ b/vdrmanager/res/layout/vdrmanager.xml @@ -6,7 +6,7 @@ android:layout_height="wrap_content" > - + <LinearLayout android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" android:padding="10dip"> @@ -15,7 +15,7 @@ android:clickable="true" android:layout_height="80dip" android:src="@drawable/vdr_logo" android:padding="10dip" /> - <!-- <ListView android:id="@+id/vdrmanager_menu" android:layout_width="fill_parent" + <!-- <ListView android:id="@+id/vdrmanager_menu" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_below="@id/main_logo"/> --> <LinearLayout android:layout_width="fill_parent" @@ -26,9 +26,8 @@ android:textColor="#FFF" android:layout_weight="1" android:cacheColorHint="?android:attr/colorBackground" android:background="@android:drawable/list_selector_background"/> - + <Button android:text="@string/action_menu_epg" - xmlns:android="http://schemas.android.com/apk/res/android" android:drawableTop="@drawable/btn_epglist" android:layout_width="wrap_content" android:id="@+id/action_menu_epg" android:layout_height="wrap_content" android:layout_weight="1" @@ -37,22 +36,20 @@ android:textColor="#FFF" /> </LinearLayout> - + <LinearLayout android:layout_width="fill_parent" android:padding="10dip" android:layout_height="wrap_content" android:orientation="horizontal"> - + <Button android:text="@string/action_menu_recordings" - xmlns:android="http://schemas.android.com/apk/res/android" android:drawableTop="@drawable/btn_recordings" android:layout_width="wrap_content" android:id="@+id/action_menu_recordings" android:layout_height="wrap_content" android:layout_weight="1" android:cacheColorHint="?android:attr/colorBackground" android:background="@android:drawable/list_selector_background" - android:textColor="#FFF" + android:textColor="#FFF" /> - + <Button android:text="@string/action_menu_timers" - xmlns:android="http://schemas.android.com/apk/res/android" android:drawableTop="@drawable/btn_timer" android:layout_width="wrap_content" android:id="@+id/action_menu_timers" android:layout_height="wrap_content" android:layout_weight="1" @@ -63,29 +60,17 @@ <LinearLayout android:layout_width="fill_parent" android:padding="10dip" android:layout_height="wrap_content" android:orientation="horizontal"> - - - - <Button android:text="@string/action_menu_search" - xmlns:android="http://schemas.android.com/apk/res/android" - android:drawableTop="@drawable/btn_search" android:layout_width="wrap_content" - android:id="@+id/action_menu_search" android:layout_height="wrap_content" - android:layout_weight="1" - android:cacheColorHint="?android:attr/colorBackground" - android:background="@android:drawable/list_selector_background" - - android:textColor="#FFF" /> <Button android:text="@string/action_menu_wakeup" - xmlns:android="http://schemas.android.com/apk/res/android" android:layout_weight="1" + android:layout_weight="1" android:padding="5dip" android:drawableTop="@drawable/btn_wakeup" android:layout_width="wrap_content" android:id="@+id/action_menu_wakeup" android:layout_height="wrap_content" - + android:cacheColorHint="?android:attr/colorBackground" android:background="@android:drawable/list_selector_background" android:textColor="#FFF" /> </LinearLayout> - + </LinearLayout> </ScrollView>
\ No newline at end of file |