AntennaPod/res/layout/mediaplayer_activity.xml

127 lines
4.5 KiB
XML
Raw Normal View History

2012-06-04 21:39:27 +02:00
<?xml version="1.0" encoding="utf-8"?>
2012-06-27 20:38:55 +02:00
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
2012-06-04 21:39:27 +02:00
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/white"
2012-06-04 21:39:27 +02:00
android:orientation="vertical" >
2012-07-01 18:32:52 +02:00
<com.viewpagerindicator.TabPageIndicator
android:id="@+id/tabs"
android:layout_width="fill_parent"
2012-06-22 16:05:59 +02:00
android:layout_height="wrap_content"
2012-07-01 18:32:52 +02:00
android:layout_alignParentTop="true" />
2012-06-22 16:05:59 +02:00
2012-06-04 21:39:27 +02:00
<LinearLayout
android:id="@+id/player_control"
android:layout_width="match_parent"
2012-07-14 20:26:47 +02:00
android:layout_height="60dp"
android:layout_alignParentBottom="true"
android:layout_marginTop="8dp" >
2012-06-04 21:39:27 +02:00
<ImageButton
android:id="@+id/butRev"
android:layout_width="wrap_content"
android:layout_height="match_parent"
2012-06-22 16:05:59 +02:00
android:layout_weight="0.02"
2012-06-20 19:54:43 +02:00
android:background="@drawable/borderless_button"
2012-07-15 20:51:56 +02:00
android:src="@drawable/av_rewind" />
2012-06-04 21:39:27 +02:00
2012-07-14 20:26:47 +02:00
<View
android:layout_width="0.5dp"
2012-06-22 16:05:59 +02:00
android:layout_height="match_parent"
2012-07-14 20:26:47 +02:00
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
android:background="@color/gray" />
2012-06-22 16:05:59 +02:00
2012-06-04 21:39:27 +02:00
<ImageButton
android:id="@+id/butPlay"
android:layout_width="wrap_content"
android:layout_height="match_parent"
2012-06-22 16:05:59 +02:00
android:layout_weight="0.14"
2012-06-20 19:54:43 +02:00
android:background="@drawable/borderless_button"
2012-07-15 20:51:56 +02:00
android:src="@drawable/av_pause" />
2012-06-04 21:39:27 +02:00
2012-07-14 20:26:47 +02:00
<View
android:layout_width="0.5dp"
2012-06-22 16:05:59 +02:00
android:layout_height="match_parent"
2012-07-14 20:26:47 +02:00
android:layout_marginBottom="8dp"
android:layout_marginTop="8dp"
android:background="@color/gray" />
2012-06-22 16:05:59 +02:00
2012-06-04 21:39:27 +02:00
<ImageButton
android:id="@+id/butFF"
android:layout_width="wrap_content"
android:layout_height="match_parent"
2012-06-22 16:05:59 +02:00
android:layout_weight="0.02"
2012-06-20 19:54:43 +02:00
android:background="@drawable/borderless_button"
2012-07-15 20:51:56 +02:00
android:src="@drawable/av_fast_forward" />
2012-06-04 21:39:27 +02:00
</LinearLayout>
2012-06-27 20:38:55 +02:00
<SeekBar
android:id="@+id/sbPosition"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/player_control"
android:layout_alignParentLeft="true"
2012-07-14 20:26:47 +02:00
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="8dp"
2012-06-27 20:38:55 +02:00
android:max="500" />
2012-07-14 20:26:47 +02:00
<View
2012-06-27 20:38:55 +02:00
android:layout_width="match_parent"
2012-07-14 20:26:47 +02:00
android:layout_height="0.5dp"
2012-06-27 20:38:55 +02:00
android:layout_alignParentLeft="true"
android:layout_below="@+id/sbPosition"
2012-07-14 20:26:47 +02:00
android:layout_margin="8dp"
android:background="@color/gray" />
2012-06-27 20:38:55 +02:00
<RelativeLayout
android:id="@+id/playtime_layout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/sbPosition"
2012-07-14 20:26:47 +02:00
android:layout_alignParentLeft="true"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:layout_marginTop="8dp" >
2012-06-27 20:38:55 +02:00
<TextView
android:id="@+id/txtvPosition"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:text="@string/position_default_label" />
<TextView
android:id="@+id/txtvLength"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_alignParentTop="true"
android:text="@string/position_default_label" />
<TextView
android:id="@+id/txtvStatus"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:textColor="@color/gray" />
2012-06-27 20:38:55 +02:00
</RelativeLayout>
2012-07-01 18:32:52 +02:00
<android.support.v4.view.ViewPager
android:id="@+id/viewpager"
android:layout_width="match_parent"
android:layout_height="0px"
android:layout_above="@id/playtime_layout"
android:layout_below="@id/tabs" >
</android.support.v4.view.ViewPager>
2012-07-23 01:36:21 +02:00
<View
android:layout_width="match_parent"
2012-07-23 12:37:57 +02:00
android:layout_height="0.5dp"
2012-07-23 01:36:21 +02:00
android:layout_below="@id/viewpager"
2012-07-23 12:37:57 +02:00
android:background="@color/ics_gray" />
2012-07-23 01:36:21 +02:00
2012-06-27 20:38:55 +02:00
</RelativeLayout>