Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="?colorPrimary" android:state_enabled="true" />
<item android:alpha="0.38" android:color="?colorPrimary" />
</selector>
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="?colorPrimary" android:state_enabled="true" />
<item android:alpha="0.38" android:color="?colorPrimary" />
</selector>
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="?colorPrimary" android:state_enabled="true" />
<item android:alpha="0.38" android:color="?colorPrimary" />
</selector>
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="?colorOnPrimary" android:state_enabled="true" />
<item android:alpha="0.38" android:color="?colorOnPrimary" />
</selector>
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="?colorPrimary" android:state_enabled="true" />
<item android:alpha="0.38" android:color="?colorPrimary" />
</selector>
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:alpha="0.16" android:color="?colorPrimary" />
</selector>
<style name="ThemeOverlay.Primary" parent="" />
<style name="ThemeOverlay.Secondary" parent="">
<item name="colorPrimary">?colorSecondary</item>
<item name="colorOnPrimary">?colorOnSecondary</item>
</style>
<style name="ThemeOverlay.Error" parent="">
<item name="colorPrimary">?colorError</item>
<item name="colorOnPrimary">?colorOnError</item>
</style>
<style name="Button.Float" parent="Widget.MaterialComponents.ExtendedFloatingActionButton">
<item name="backgroundTint">@color/btn_bg_color_primary_selector</item>
<item name="android:textColor">@color/btn_text_color_on_primary_selector</item>
<item name="iconTint">@color/btn_icon_color_on_primary_selector</item>
</style>
<style name="Button.Float.Primary">
<item name="android:theme">@style/ThemeOverlay.Primary</item>
</style>
<style name="Button.Float.Secondary">
<item name="android:theme">@style/ThemeOverlay.Secondary</item>
</style>
<style name="Button.Text" parent="Widget.MaterialComponents.Button.TextButton">
<item name="android:textColor">@color/btn_text_color_primary_selector</item>
<item name="rippleColor">@color/primary_16</item>
<item name="iconGravity">textStart</item>
<item name="iconTint">@color/btn_icon_color_primary_selector</item>
<item name="iconSize">20sp</item>
</style>
<style name="Button.Text.Primary">
<item name="android:theme">@style/ThemeOverlay.Primary</item>
</style>
<style name="Button.Text.Caution">
<item name="android:theme">@style/ThemeOverlay.Error</item>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment