diff options
author | ByteHamster <info@bytehamster.com> | 2020-02-13 13:43:13 +0100 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2020-02-13 13:43:13 +0100 |
commit | 3c6fd072e346da1f6649025c96aa29548c043ba4 (patch) | |
tree | 30d574241f0b69c5ffbd4cd3c9072463ebfc7508 | |
parent | b64769ab632f8a2a295e9484203e5b1bd2eee098 (diff) | |
download | AntennaPod-3c6fd072e346da1f6649025c96aa29548c043ba4.zip |
Added border to play button
-rw-r--r-- | app/src/main/res/layout/mediaplayerinfo_activity.xml | 54 | ||||
-rw-r--r-- | core/src/main/res/values/dimens.xml | 1 |
2 files changed, 35 insertions, 20 deletions
diff --git a/app/src/main/res/layout/mediaplayerinfo_activity.xml b/app/src/main/res/layout/mediaplayerinfo_activity.xml index 08d29c8e1..1d48d1708 100644 --- a/app/src/main/res/layout/mediaplayerinfo_activity.xml +++ b/app/src/main/res/layout/mediaplayerinfo_activity.xml @@ -71,7 +71,7 @@ android:layout_height="wrap_content" android:paddingLeft="8dp" android:paddingRight="8dp" - android:layout_marginBottom="16dp"> + android:layout_marginBottom="4dp"> <TextView android:id="@+id/txtvPosition" @@ -105,38 +105,51 @@ android:id="@+id/player_control" android:layout_width="match_parent" android:layout_height="wrap_content" - android:layout_marginBottom="16dp" + android:layout_marginBottom="24dp" tools:background="@android:color/holo_purple"> <ImageButton android:id="@+id/butPlay" - android:layout_width="@dimen/audioplayer_playercontrols_length" - android:layout_height="@dimen/audioplayer_playercontrols_length" - android:layout_marginLeft="16dp" - android:layout_marginStart="16dp" - android:layout_marginRight="16dp" - android:layout_marginEnd="16dp" + android:layout_width="@dimen/audioplayer_playercontrols_length_big" + android:layout_height="@dimen/audioplayer_playercontrols_length_big" + android:layout_marginLeft="8dp" + android:layout_marginStart="8dp" + android:layout_marginRight="8dp" + android:layout_marginEnd="8dp" + android:padding="8dp" android:layout_centerHorizontal="true" + android:layout_centerVertical="true" android:background="?attr/selectableItemBackgroundBorderless" android:contentDescription="@string/pause_label" app:srcCompat="?attr/av_play" android:scaleType="fitCenter" - tools:src="@drawable/ic_av_play_white_24dp" + tools:srcCompat="@drawable/ic_av_play_white_24dp" tools:background="@android:color/holo_green_dark" /> + <de.danoeh.antennapod.view.CircularProgressBar + android:layout_width="@dimen/audioplayer_playercontrols_length_big" + android:layout_height="@dimen/audioplayer_playercontrols_length_big" + android:layout_marginLeft="16dp" + android:layout_marginStart="16dp" + android:layout_marginRight="16dp" + android:layout_marginEnd="16dp" + android:layout_centerHorizontal="true" + android:layout_centerVertical="true" /> + <ImageButton android:id="@+id/butRev" android:layout_width="@dimen/audioplayer_playercontrols_length" android:layout_height="@dimen/audioplayer_playercontrols_length" android:layout_toLeftOf="@id/butPlay" android:layout_toStartOf="@id/butPlay" - android:layout_marginLeft="16dp" - android:layout_marginStart="16dp" + android:layout_marginLeft="8dp" + android:layout_marginStart="8dp" + android:layout_centerVertical="true" android:background="?attr/selectableItemBackgroundBorderless" android:contentDescription="@string/rewind_label" app:srcCompat="?attr/av_rewind" android:scaleType="fitCenter" - tools:src="@drawable/ic_av_fast_rewind_white_48dp" + tools:srcCompat="@drawable/ic_av_fast_rewind_white_48dp" tools:background="@android:color/holo_blue_dark" /> <TextView @@ -148,7 +161,6 @@ android:layout_alignStart="@id/butRev" android:layout_alignRight="@id/butRev" android:layout_alignEnd="@id/butRev" - android:layout_marginTop="-8dp" android:gravity="center" android:text="30" android:textSize="12sp" @@ -161,11 +173,12 @@ android:layout_height="@dimen/audioplayer_playercontrols_length" android:layout_toLeftOf="@id/butRev" android:layout_toStartOf="@id/butRev" + android:layout_centerVertical="true" android:background="?attr/selectableItemBackgroundBorderless" android:contentDescription="@string/set_playback_speed_label" app:srcCompat="?attr/av_speed" android:scaleType="fitCenter" - tools:src="@drawable/ic_playback_speed_white_48dp" + tools:srcCompat="@drawable/ic_playback_speed_white_48dp" tools:visibility="gone" tools:background="@android:color/holo_green_dark" /> @@ -178,7 +191,6 @@ android:layout_alignStart="@id/butPlaybackSpeed" android:layout_alignRight="@id/butPlaybackSpeed" android:layout_alignEnd="@id/butPlaybackSpeed" - android:layout_marginTop="-8dp" android:gravity="center" android:text="1.00" android:textSize="12sp" @@ -191,6 +203,7 @@ android:layout_height="@dimen/audioplayer_playercontrols_length" android:layout_toLeftOf="@id/butRev" android:layout_toStartOf="@id/butRev" + android:layout_centerVertical="true" android:background="?attr/selectableItemBackgroundBorderless" android:contentDescription="@string/cast_disconnect_label" android:src="?attr/ic_cast_disconnect" @@ -206,13 +219,14 @@ android:layout_height="@dimen/audioplayer_playercontrols_length" android:layout_toRightOf="@id/butPlay" android:layout_toEndOf="@id/butPlay" - android:layout_marginRight="16dp" - android:layout_marginEnd="16dp" + android:layout_marginRight="8dp" + android:layout_marginEnd="8dp" + android:layout_centerVertical="true" android:background="?attr/selectableItemBackgroundBorderless" android:contentDescription="@string/fast_forward_label" app:srcCompat="?attr/av_fast_forward" android:scaleType="fitCenter" - tools:src="@drawable/ic_av_fast_forward_white_48dp" + tools:srcCompat="@drawable/ic_av_fast_forward_white_48dp" tools:background="@android:color/holo_blue_dark" /> <TextView @@ -224,7 +238,6 @@ android:layout_alignStart="@id/butFF" android:layout_alignRight="@id/butFF" android:layout_alignEnd="@id/butFF" - android:layout_marginTop="-8dp" android:gravity="center" android:text="30" android:textSize="12sp" @@ -237,11 +250,12 @@ android:layout_height="@dimen/audioplayer_playercontrols_length" android:layout_toRightOf="@id/butFF" android:layout_toEndOf="@id/butFF" + android:layout_centerVertical="true" android:background="?attr/selectableItemBackgroundBorderless" android:scaleType="fitCenter" app:srcCompat="?attr/av_skip" android:contentDescription="@string/skip_episode_label" - tools:src="@drawable/ic_av_skip_white_48dp" + tools:srcCompat="@drawable/ic_av_skip_white_48dp" tools:background="@android:color/holo_green_dark" /> </RelativeLayout> diff --git a/core/src/main/res/values/dimens.xml b/core/src/main/res/values/dimens.xml index ee2c57ac4..bef2d311c 100644 --- a/core/src/main/res/values/dimens.xml +++ b/core/src/main/res/values/dimens.xml @@ -31,6 +31,7 @@ <dimen name="listitem_icon_rightpadding">16dp</dimen> <dimen name="audioplayer_playercontrols_length">48dp</dimen> + <dimen name="audioplayer_playercontrols_length_big">64dp</dimen> <dimen name="media_router_controller_playback_control_vertical_padding">16dp</dimen> <dimen name="media_router_controller_playback_control_horizontal_spacing">12dp</dimen> |