Created Activity for displaying information about a channel

This commit is contained in:
daniel oeh
2012-08-04 13:26:02 +02:00
parent b712ffee8f
commit b91a04fc8c
9 changed files with 343 additions and 0 deletions

View File

@ -0,0 +1,63 @@
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ProgressBar
android:id="@+id/progLoading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:indeterminateOnly="true" />
<RelativeLayout
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/layout_content"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="invisible" >
<TextView
android:id="@+id/txtvTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_margin="8dp"
android:gravity="center"
android:textSize="20dp"
android:textStyle="bold" />
<View
android:id="@+id/title_divider"
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_below="@id/txtvTitle"
android:background="@color/ics_gray" />
<TextView
android:id="@+id/txtvDescription"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/title_divider"
android:layout_margin="8dp"
android:maxLines="8"
android:textSize="16dp" />
<View
android:id="@+id/description_divider"
android:layout_width="match_parent"
android:layout_height="0.5dp"
android:layout_below="@id/txtvDescription"
android:background="@color/ics_gray" />
<ListView
android:id="@+id/itemlist"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_alignParentBottom="true"
android:layout_below="@id/description_divider"
tools:listitem="@android:layout/simple_list_item_1" >
</ListView>
</RelativeLayout>
</FrameLayout>

View File

@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/txtvTitle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:gravity="center_vertical"
android:maxLines="2"
android:textSize="16dp" />
<TextView
android:id="@+id/txtvDate"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginBottom="8dp"
android:textColor="@color/gray" />
</LinearLayout>

7
res/menu/channelview.xml Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<menu xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:id="@+id/add_feed" android:icon="@drawable/content_new" android:title="@string/add_new_feed_label" android:showAsAction="ifRoom"></item>
<item android:id="@+id/visit_website_item" android:title="@string/visit_website_label" android:showAsAction="ifRoom" android:icon="@drawable/location_web_site"></item>
</menu>