diff options
Diffstat (limited to 'res/layout/audio_player_header_bar.xml')
-rw-r--r-- | res/layout/audio_player_header_bar.xml | 54 |
1 files changed, 12 insertions, 42 deletions
diff --git a/res/layout/audio_player_header_bar.xml b/res/layout/audio_player_header_bar.xml index 75f5f4f..7934b10 100644 --- a/res/layout/audio_player_header_bar.xml +++ b/res/layout/audio_player_header_bar.xml @@ -13,56 +13,26 @@ See the License for the specific language governing permissions and limitations under the License. --> - -<RelativeLayout +<androidx.appcompat.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:tools="http://schemas.android.com/tools" + android:id="@+id/audio_player_header" android:layout_width="match_parent" - android:layout_height="?actionBarSize" + android:layout_height="?android:attr/actionBarSize" android:background="@android:color/transparent" android:elevation="@dimen/action_bar_elevation" - android:orientation="horizontal" - android:paddingBottom="2dp" - android:paddingStart="@dimen/header_bar_padding_left" - android:paddingTop="2dp" + android:theme="@style/ToolBarTheme" + app:popupTheme="@style/ToolBarPopupTheme" tools:background="@color/blue_dark"> <LinearLayout - android:id="@+id/header_bar_button_container" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentEnd="true" - android:layout_centerVertical="true" - android:orientation="horizontal"> - - <ImageView - android:id="@+id/header_bar_add_button" - android:layout_width="@dimen/header_bar_custom_button_width" - android:layout_height="@dimen/header_bar_button_height" - android:layout_gravity="center_vertical" - android:layout_weight="0" - android:background="@drawable/selectable_background" - android:scaleType="centerInside" - android:src="@drawable/btn_add_to_playlist" /> - - <ImageView - android:id="@+id/header_bar_menu_button" - android:layout_width="@dimen/header_bar_menu_button_width" - android:layout_height="@dimen/header_bar_button_height" - android:layout_gravity="center_vertical" - android:layout_weight="0" - android:background="@drawable/selectable_background" - android:scaleType="centerInside" - android:src="@drawable/menu_button_light" /> - </LinearLayout> - - <LinearLayout android:id="@+id/header_bar_text_container" - android:layout_width="wrap_content" - android:layout_height="wrap_content" - android:layout_alignParentStart="true" - android:layout_centerVertical="true" - android:layout_toStartOf="@id/header_bar_button_container" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center_vertical" + android:layout_weight="1" + android:gravity="center_vertical" android:orientation="vertical"> <TextView @@ -89,4 +59,4 @@ android:textSize="@dimen/text_size_micro" tools:text="Name of Artist" /> </LinearLayout> -</RelativeLayout> +</androidx.appcompat.widget.Toolbar> |