use material components button in media fragment
This commit is contained in:
parent
9ec4c24e21
commit
c947105a1f
|
@ -15,7 +15,7 @@
|
|||
android:name=".PlayerActivity"
|
||||
android:label="@string/app_name"
|
||||
android:configChanges="orientation|screenSize|layoutDirection"
|
||||
android:theme="@style/AppTheme.AppCompat.Light.NoActionBar.FullScreen" />
|
||||
android:theme="@style/AppTheme.MaterialComponents.Light.NoActionBar.FullScreen" />
|
||||
<activity
|
||||
android:name=".MainActivity"
|
||||
android:label="@string/app_name"
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:menu="@menu/bottom_nav_menu" />
|
||||
|
||||
<fragment
|
||||
<androidx.fragment.app.FragmentContainerView
|
||||
android:id="@+id/nav_host_fragment"
|
||||
android:name="androidx.navigation.fragment.NavHostFragment"
|
||||
android:layout_width="match_parent"
|
||||
|
|
|
@ -39,25 +39,21 @@
|
|||
|
||||
</FrameLayout>
|
||||
|
||||
<Button
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/button_play"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginStart="7dp"
|
||||
android:layout_marginTop="24dp"
|
||||
android:layout_marginEnd="7dp"
|
||||
android:background="#4A4141"
|
||||
android:drawableStart="@drawable/ic_baseline_play_arrow_24"
|
||||
android:drawablePadding="10dp"
|
||||
android:drawableTint="#FFFFFF"
|
||||
android:gravity="start|center_vertical"
|
||||
android:paddingStart="160dp"
|
||||
android:paddingEnd="160dp"
|
||||
android:text="@string/button_play"
|
||||
android:gravity="center"
|
||||
android:textAllCaps="false"
|
||||
android:text="@string/button_play"
|
||||
android:textColor="@android:color/primary_text_dark"
|
||||
android:textSize="16sp" />
|
||||
android:textSize="16sp"
|
||||
app:backgroundTint="#4A4141"
|
||||
app:icon="@drawable/ic_baseline_play_arrow_24"
|
||||
app:iconGravity="textStart" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/text_title"
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
<resources>
|
||||
<!-- Base application theme. -->
|
||||
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
|
||||
<style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.AppCompat.Light.NoActionBar.FullScreen" parent="@style/Theme.AppCompat.Light.NoActionBar">
|
||||
<style name="AppTheme.MaterialComponents.Light.NoActionBar.FullScreen" parent="@style/Theme.MaterialComponents.Light.NoActionBar">
|
||||
<item name="android:windowNoTitle">true</item>
|
||||
<item name="android:windowActionBar">false</item>
|
||||
<item name="android:windowFullscreen">true</item>
|
||||
|
|
Loading…
Reference in New Issue