diff options
author | daniel oeh <daniel.oeh@gmail.com> | 2013-04-04 12:30:28 +0200 |
---|---|---|
committer | daniel oeh <daniel.oeh@gmail.com> | 2013-04-04 18:21:37 +0200 |
commit | 582107c13c7156521f808b15ed642944238573a1 (patch) | |
tree | 2fdf83a4372c9fb62bd09ffa3300a0f1630c2e9c /res | |
parent | 09191d734e2eb7cfcd338057266ec150063287b6 (diff) | |
download | AntennaPod-582107c13c7156521f808b15ed642944238573a1.zip |
Added landscape layout to audio player
Diffstat (limited to 'res')
-rw-r--r-- | res/layout-land/audioplayer_activity.xml | 164 | ||||
-rw-r--r-- | res/layout-land/videoplayer_activity.xml (renamed from res/layout-land/mediaplayer_activity.xml) | 0 | ||||
-rw-r--r-- | res/layout/audioplayer_activity.xml (renamed from res/layout/mediaplayer_activity.xml) | 0 | ||||
-rw-r--r-- | res/layout/cover_fragment.xml | 1 |
4 files changed, 165 insertions, 0 deletions
diff --git a/res/layout-land/audioplayer_activity.xml b/res/layout-land/audioplayer_activity.xml new file mode 100644 index 000000000..521dbc68a --- /dev/null +++ b/res/layout-land/audioplayer_activity.xml @@ -0,0 +1,164 @@ +<?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="horizontal" > + + <FrameLayout + android:id="@+id/contentView" + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="0.5" > + </FrameLayout> + + <RelativeLayout + android:layout_width="0dp" + android:layout_height="match_parent" + android:layout_weight="0.5" + android:background="?attr/non_transparent_background" + android:orientation="vertical" > + + <RelativeLayout + android:id="@+id/navBar" + android:layout_width="fill_parent" + android:layout_height="60dp" + android:layout_alignParentTop="true" > + + <ImageButton + android:id="@+id/butNavLeft" + android:layout_width="60dp" + android:layout_height="match_parent" + android:layout_alignParentLeft="true" + android:background="?attr/borderless_button" + android:padding="4dp" /> + + <ImageButton + android:id="@+id/butNavRight" + android:layout_width="60dp" + android:layout_height="match_parent" + android:layout_alignParentRight="true" + android:background="?attr/borderless_button" + android:padding="4dp" /> + + <TextView + android:id="@+id/txtvTitle" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentTop="true" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:layout_marginTop="8dp" + android:layout_toLeftOf="@id/butNavRight" + android:layout_toRightOf="@id/butNavLeft" + android:ellipsize="marquee" + android:marqueeRepeatLimit="marquee_forever" + android:maxLines="1" + android:textColor="?android:attr/textColorPrimary" + android:textSize="@dimen/text_size_medium" + android:textStyle="bold" /> + + <TextView + android:id="@+id/txtvFeed" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@id/txtvTitle" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:layout_toLeftOf="@id/butNavRight" + android:layout_toRightOf="@id/butNavLeft" + android:ellipsize="marquee" + android:marqueeRepeatLimit="marquee_forever" + android:maxLines="1" + android:textColor="?android:attr/textColorSecondary" + android:textSize="@dimen/text_size_small" /> + </RelativeLayout> + + <View + android:id="@+id/navBarDivider" + android:layout_width="match_parent" + android:layout_height="1dp" + android:layout_below="@id/navBar" + android:background="@color/bright_blue" /> + + <RelativeLayout + android:id="@+id/player_control" + android:layout_width="match_parent" + android:layout_height="80dp" + android:layout_alignParentBottom="true" + android:background="?attr/overlay_background" > + + <ImageButton + android:id="@+id/butPlay" + android:layout_width="80dp" + android:layout_height="match_parent" + android:layout_centerHorizontal="true" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:background="?attr/borderless_button" + android:src="?attr/av_pause" /> + + <ImageButton + android:id="@+id/butRev" + android:layout_width="80dp" + android:layout_height="match_parent" + android:layout_toLeftOf="@id/butPlay" + android:background="?attr/borderless_button" + android:src="?attr/av_rewind" /> + + <ImageButton + android:id="@+id/butFF" + android:layout_width="80dp" + android:layout_height="match_parent" + android:layout_toRightOf="@id/butPlay" + android:background="?attr/borderless_button" + android:src="?attr/av_fast_forward" /> + </RelativeLayout> + + <RelativeLayout + android:id="@+id/playtime_layout" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_above="@id/player_control" + android:layout_alignParentLeft="true" + android:background="?attr/overlay_drawable" > + + <TextView + android:id="@+id/txtvPosition" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentLeft="true" + android:layout_centerVertical="true" + android:layout_marginLeft="8dp" + android:layout_marginTop="16dp" + android:text="@string/position_default_label" + android:textColor="?android:attr/textColorSecondary" + android:textSize="@dimen/text_size_micro" /> + + <TextView + android:id="@+id/txtvLength" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_alignParentRight="true" + android:layout_alignParentTop="true" + android:layout_centerVertical="true" + android:layout_marginRight="8dp" + android:layout_marginTop="16dp" + android:text="@string/position_default_label" + android:textColor="?android:attr/textColorSecondary" + android:textSize="@dimen/text_size_micro" /> + + <SeekBar + android:id="@+id/sbPosition" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_centerVertical="true" + android:layout_marginLeft="8dp" + android:layout_marginRight="8dp" + android:layout_marginTop="16dp" + android:layout_toLeftOf="@id/txtvLength" + android:layout_toRightOf="@id/txtvPosition" + android:max="500" /> + </RelativeLayout> + </RelativeLayout> + +</LinearLayout>
\ No newline at end of file diff --git a/res/layout-land/mediaplayer_activity.xml b/res/layout-land/videoplayer_activity.xml index 675d9709d..675d9709d 100644 --- a/res/layout-land/mediaplayer_activity.xml +++ b/res/layout-land/videoplayer_activity.xml diff --git a/res/layout/mediaplayer_activity.xml b/res/layout/audioplayer_activity.xml index 73a0e0be6..73a0e0be6 100644 --- a/res/layout/mediaplayer_activity.xml +++ b/res/layout/audioplayer_activity.xml diff --git a/res/layout/cover_fragment.xml b/res/layout/cover_fragment.xml index f897d318c..9602f1ebc 100644 --- a/res/layout/cover_fragment.xml +++ b/res/layout/cover_fragment.xml @@ -11,6 +11,7 @@ android:layout_height="match_parent" android:layout_gravity="center" android:layout_marginTop="8dp" + android:layout_marginBottom="8dp" android:adjustViewBounds="true" android:scaleType="centerInside" /> |