mirror of
https://github.com/chararomandroid/android_device_samsung_a20
synced 2026-08-24 04:45:32 -04:00
universal7885: Add Material you reworked FM app
* UI and function improvements Change-Id: Ia1ea7aa0caf0ac3838e285952e9be7e79b946e80 Signed-off-by: roynatech2544 <whiteshell2544@naver.com>
This commit is contained in:
parent
b8e119aaf8
commit
308a5d49c8
148 changed files with 1385 additions and 1222 deletions
|
|
@ -0,0 +1,22 @@
|
|||
<?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"
|
||||
android:layout_marginBottom="50dp"
|
||||
android:background="@android:color/system_accent1_100"
|
||||
android:id="@+id/channel_list_layout">
|
||||
|
||||
<ListView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/listview"/>
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|end"
|
||||
android:id="@+id/refresh_channel_list"
|
||||
android:src="@drawable/ic_refresh"
|
||||
android:layout_marginEnd="25dp"
|
||||
android:layout_marginBottom="25dp"/>
|
||||
</FrameLayout>
|
||||
|
|
@ -1,310 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="top|center"
|
||||
android:fitsSystemWindows="true"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/debug_info"
|
||||
android:layout_width="190dp"
|
||||
android:layout_height="30dp"
|
||||
android:gravity="center" />
|
||||
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="10dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/primary_color"
|
||||
android:gravity="center">
|
||||
|
||||
<Space
|
||||
android:layout_width="10dp"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
<ImageView
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="100dp"
|
||||
android:src="@drawable/radio"/>
|
||||
<TextView
|
||||
android:id="@+id/fm_radio_title"
|
||||
android:layout_width="240dp"
|
||||
android:layout_height="120dp"
|
||||
|
||||
android:gravity="center"
|
||||
android:text="@string/fm_radio"
|
||||
android:textColor="#263238"
|
||||
android:textSize="48sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<Space
|
||||
android:layout_width="10dp"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="15dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:gravity="center">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="140dp"
|
||||
android:orientation="vertical"
|
||||
android:background="@color/primary_color"
|
||||
android:gravity="center|top">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/output_modes"
|
||||
android:layout_width="185dp"
|
||||
android:layout_height="70dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/output_modes"
|
||||
android:textColor="#263238"
|
||||
android:textSize="25sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="10dp"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/fm_output"
|
||||
android:layout_width="175dp"
|
||||
android:layout_height="50dp"
|
||||
android:text="@string/wired_earphones"
|
||||
android:textColor="#263238"
|
||||
android:theme="@style/ButtonStyle.Colored"
|
||||
android:textSize="18sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<Space
|
||||
android:layout_width="10dp"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="140dp"
|
||||
android:orientation="vertical"
|
||||
android:background="@color/primary_color"
|
||||
android:gravity="center|top">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/enable_fm"
|
||||
android:layout_width="185dp"
|
||||
android:layout_height="70dp"
|
||||
android:gravity="center"
|
||||
android:text="@string/turn_on_fm"
|
||||
android:textColor="#263238"
|
||||
android:textSize="25sp"
|
||||
android:textStyle="bold" />
|
||||
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="10dp"/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/fmswitch"
|
||||
android:layout_width="175dp"
|
||||
android:layout_height="50dp"
|
||||
android:text="@string/disabled"
|
||||
android:textColor="#263238"
|
||||
android:textSize="18sp"
|
||||
android:theme="@style/ButtonStyle.Colored" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="230dp"
|
||||
android:background="@color/primary_color"
|
||||
android:orientation="vertical"
|
||||
android:gravity="center|top">
|
||||
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/freq_title"
|
||||
android:layout_width="375dp"
|
||||
android:layout_height="50dp"
|
||||
android:text="@string/fm_radio_frequency"
|
||||
android:textColor="#263238"
|
||||
android:textSize="35sp"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center"/>
|
||||
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="10dp"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/band_select"
|
||||
android:layout_width="375dp"
|
||||
android:layout_height="50dp"
|
||||
android:text="@string/select_channel"
|
||||
android:textColor="#263238"
|
||||
android:textSize="25sp"
|
||||
android:gravity="center"/>
|
||||
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp"/>
|
||||
|
||||
<FrameLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@color/secondary_color">
|
||||
|
||||
<SeekBar
|
||||
android:id="@+id/fm_freq_seekbar"
|
||||
android:layout_width="325dp"
|
||||
android:layout_height="50dp"
|
||||
android:progressBackgroundTint="@color/white"
|
||||
android:thumbTint="#263238"
|
||||
android:progressTint="#263238"/>
|
||||
</FrameLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="top|center"
|
||||
android:orientation="vertical"
|
||||
android:background="@color/primary_color">
|
||||
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="15dp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/radio_ctrl"
|
||||
android:layout_width="375dp"
|
||||
android:layout_height="50dp"
|
||||
android:text="@string/radio_controls"
|
||||
android:textColor="#263238"
|
||||
android:textSize="35sp"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center"/>
|
||||
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="15dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center">
|
||||
|
||||
<Space
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/scan_through"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="50dp"
|
||||
android:text="@string/scan"
|
||||
android:textColor="#263238"
|
||||
android:theme="@style/ButtonStyle.Colored"/>
|
||||
|
||||
<Space
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/stop_scan"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="50dp"
|
||||
android:text="@string/stop"
|
||||
android:textColor="#263238"
|
||||
android:theme="@style/ButtonStyle.Colored" />
|
||||
|
||||
<Space
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="15dp" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="top|center">
|
||||
|
||||
<Space
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/seek_down"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="50dp"
|
||||
android:text="@string/seek_down"
|
||||
android:textColor="#263238"
|
||||
android:theme="@style/ButtonStyle.Colored"/>
|
||||
|
||||
<Space
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/quit_fm"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="50dp"
|
||||
android:text="@string/quit"
|
||||
android:textColor="#263238"
|
||||
android:theme="@style/ButtonStyle.Colored"/>
|
||||
|
||||
<Space
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/seek_up"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="50dp"
|
||||
android:text="@string/seek_up"
|
||||
android:textColor="#263238"
|
||||
android:theme="@style/ButtonStyle.Colored" />
|
||||
|
||||
<Space
|
||||
android:layout_width="15dp"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="15dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/container_view"/>
|
||||
|
||||
<com.google.android.material.bottomnavigation.BottomNavigationView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/system_accent1_300"
|
||||
style="@style/Widget.MaterialComponents.BottomNavigationView.Colored"
|
||||
app:menu="@menu/bottom_navigation_menu"
|
||||
android:id="@+id/bottom_nav_bar"/>
|
||||
</FrameLayout>
|
||||
41
universal7885-common/apps/FMRadio/res/layout/alertdialog.xml
Normal file
41
universal7885-common/apps/FMRadio/res/layout/alertdialog.xml
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:theme="@style/Theme.Material3.DayNight.Dialog.Alert">
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="@string/warning"
|
||||
android:textSize="50sp"
|
||||
android:textAllCaps="true"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center"
|
||||
android:paddingBottom="15dp"/>
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/alert_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="25sp"
|
||||
android:textStyle="bold"
|
||||
android:gravity="center"
|
||||
android:paddingBottom="15dp"/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="200dp"
|
||||
android:id="@+id/alert_image"
|
||||
android:background="@android:color/system_accent1_400"/>
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:id="@+id/alert_desc"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="25sp"
|
||||
android:gravity="center"
|
||||
android:paddingTop="20dp"
|
||||
android:paddingBottom="10dp"/>
|
||||
</LinearLayout>
|
||||
|
|
@ -0,0 +1,29 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
|
||||
<androidx.appcompat.widget.AppCompatImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="10dp"
|
||||
android:layout_gravity="start|center_vertical"
|
||||
android:id="@+id/star_button_list"
|
||||
android:src="@drawable/ic_star"/>
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:paddingStart="25dp"
|
||||
android:id="@+id/channel_list_title"
|
||||
android:paddingEnd="25dp"
|
||||
android:textColor="@android:color/system_accent2_700"
|
||||
android:textStyle="bold"
|
||||
android:letterSpacing="0.15"
|
||||
android:paddingTop="15dp"
|
||||
android:paddingBottom="15dp"
|
||||
android:textSize="25sp"
|
||||
android:text="@string/fm_radio_freq"/>
|
||||
</FrameLayout>
|
||||
|
|
@ -1,44 +0,0 @@
|
|||
<?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"
|
||||
android:background="@drawable/warning">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:layout_gravity="center">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/error_img"
|
||||
android:layout_width="75dp"
|
||||
android:layout_height="75dp"
|
||||
android:layout_gravity="start|center_vertical"
|
||||
android:background="@drawable/ic_samsung_error"
|
||||
android:translationZ="0dp" />
|
||||
|
||||
<Space
|
||||
android:layout_width="25dp"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/error_simple"
|
||||
android:layout_width="300dp"
|
||||
android:layout_height="75dp"
|
||||
android:gravity="center"
|
||||
android:textColor="#00838F"
|
||||
android:textSize="18sp"/>
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/error_detailed"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="202dp"
|
||||
android:textColor="#00838F"
|
||||
android:textSize="16sp"
|
||||
android:gravity="center"/>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="start|top"
|
||||
android:id="@+id/pebble_layout">
|
||||
|
||||
<com.eurekateam.fmradio.PebbleTextView
|
||||
android:id="@+id/pebble_textview"
|
||||
android:layout_width="210dp"
|
||||
android:layout_height="175dp" />
|
||||
</FrameLayout>
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<GridView
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:id="@+id/fav_list_grid">
|
||||
</GridView>
|
||||
166
universal7885-common/apps/FMRadio/res/layout/fragment_main.xml
Normal file
166
universal7885-common/apps/FMRadio/res/layout/fragment_main.xml
Normal file
|
|
@ -0,0 +1,166 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:orientation="vertical"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="center"
|
||||
android:fitsSystemWindows="true"
|
||||
android:id="@+id/main_fragment"
|
||||
android:background="@android:color/system_accent1_100">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingTop="65dp"
|
||||
android:paddingStart="30dp"
|
||||
android:paddingEnd="30dp"
|
||||
android:orientation="vertical"
|
||||
android:layout_gravity="top|center">
|
||||
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:id="@+id/app_banner"
|
||||
android:textColor="@android:color/system_accent1_500"
|
||||
android:textSize="65sp"
|
||||
android:textStyle="bold"
|
||||
android:text="@string/app_name"/>
|
||||
|
||||
<Space
|
||||
android:layout_width="5dp"
|
||||
android:layout_height="match_parent"/>
|
||||
<FrameLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="end">
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:layout_gravity="start|center_vertical"
|
||||
android:layout_marginStart="30dp"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/fav_button"
|
||||
app:elevation="0dp"
|
||||
android:backgroundTint="@android:color/system_accent1_400"
|
||||
android:src="@drawable/ic_star"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="end">
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/fm_freq"
|
||||
android:text="@string/inital_freq"
|
||||
android:textStyle="bold"
|
||||
android:textColor="@android:color/system_accent1_500"
|
||||
android:textSize="65sp"/>
|
||||
<com.google.android.material.textview.MaterialTextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="bottom"
|
||||
android:paddingBottom="20dp"
|
||||
android:id="@+id/freq_misc"
|
||||
android:textSize="25sp"
|
||||
android:textColor="@android:color/system_accent1_500"
|
||||
android:text="@string/mhz"
|
||||
android:textStyle="bold"/>
|
||||
</LinearLayout>
|
||||
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="bottom|center_horizontal"
|
||||
android:gravity="center_horizontal"
|
||||
android:orientation="vertical"
|
||||
android:paddingBottom="100dp">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="30dp"
|
||||
android:layout_marginBottom="50dp"
|
||||
android:gravity="center">
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:backgroundTint="@android:color/system_accent1_400"
|
||||
android:id="@+id/volume_down"
|
||||
app:elevation="0dp"
|
||||
android:src="@drawable/ic_volume_down" />
|
||||
|
||||
<androidx.appcompat.widget.AppCompatSeekBar
|
||||
android:layout_width="175dp"
|
||||
android:id="@+id/volume_seekbar"
|
||||
android:progressDrawable="@drawable/ic_seekbar"
|
||||
android:thumb="@drawable/ic_seekbar_thumb"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:backgroundTint="@android:color/system_accent1_400"
|
||||
android:id="@+id/volume_up"
|
||||
app:elevation="0dp"
|
||||
android:src="@drawable/ic_volume_up"/>
|
||||
|
||||
</LinearLayout>
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center">
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/before_channel"
|
||||
android:layout_width="wrap_content"
|
||||
android:backgroundTint="@android:color/system_accent1_400"
|
||||
android:layout_height="wrap_content"
|
||||
app:elevation="0dp"
|
||||
android:src="@drawable/ic_rewind" />
|
||||
|
||||
<Space
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/fm_power"
|
||||
android:layout_width="wrap_content"
|
||||
android:backgroundTint="@android:color/system_accent1_400"
|
||||
android:layout_height="wrap_content"
|
||||
app:elevation="0dp"
|
||||
android:src="@drawable/ic_power" />
|
||||
|
||||
<Space
|
||||
android:layout_width="50dp"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/next_channel"
|
||||
android:layout_width="wrap_content"
|
||||
android:backgroundTint="@android:color/system_accent1_400"
|
||||
android:layout_height="wrap_content"
|
||||
app:elevation="0dp"
|
||||
android:src="@drawable/ic_forward" />
|
||||
</LinearLayout>
|
||||
|
||||
<Space
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="30dp" />
|
||||
|
||||
<com.google.android.material.floatingactionbutton.FloatingActionButton
|
||||
android:id="@+id/fm_output_btn"
|
||||
android:layout_width="wrap_content"
|
||||
android:backgroundTint="@android:color/system_accent1_400"
|
||||
android:layout_height="wrap_content"
|
||||
app:elevation="0dp"
|
||||
app:srcCompat="@drawable/ic_volume_up" />
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
|
|
@ -1,58 +0,0 @@
|
|||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="64dp"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/txt_title"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="50dp"
|
||||
android:layout_marginStart="5dp"
|
||||
android:layout_weight="1"
|
||||
android:gravity="center"
|
||||
android:background="@android:color/white"
|
||||
android:textColor="@android:color/black"
|
||||
android:textSize="20sp"/>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/white">
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_rewind"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="50dp"
|
||||
android:background="@null"
|
||||
android:contentDescription="@string/previous_radio_channel"
|
||||
android:src="@drawable/left"/>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_play_pause"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="48dp"
|
||||
android:background="@null"
|
||||
android:contentDescription="@string/play_pause"
|
||||
android:src="@drawable/stop" />
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_forward"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="50dp"
|
||||
android:background="@null"
|
||||
android:contentDescription="@string/next_radio_channel"
|
||||
android:src="@drawable/right"/>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ImageButton
|
||||
android:id="@+id/btn_close"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/white"
|
||||
android:contentDescription="@string/close_radio"
|
||||
android:minWidth="32dp"
|
||||
android:minHeight="48dp"
|
||||
android:src="@drawable/power" />
|
||||
</LinearLayout>
|
||||
Loading…
Reference in a new issue