eltos/SimpleDialogFragments

View on GitHub
simpledialogfragments/src/main/res/values/styles.xml

Summary

Maintainability
Test Coverage
<?xml version="1.0" encoding="utf-8"?>
<resources>

    <style name="OverflowText">
        <item name="android:textColor">@color/simpledialogfragment_error_color</item>
    </style>

    <!-- base styles for all simple dialogs
    -->

    <!-- app compat -->
    <style name="SimpleDialogTheme.AppCompat" parent="ThemeOverlay.AppCompat.Dialog.Alert">
        <item name="textInputStyle">@style/Widget.Design.TextInputLayout</item>
        <item name="colorSurface">#fff</item>
    </style>

    <!-- material components -->
    <style name="SimpleDialogTheme.MaterialComponents" parent="ThemeOverlay.MaterialComponents.Dialog.Alert">
        <item name="textInputStyle">@style/SimpleDialogMaterialTextInputStyle</item>
        <item name="editTextStyle">@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox</item>
    </style>
    <style name="SimpleDialogMaterialTextInputStyle" parent="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox.Dense.ExposedDropdownMenu">
        <item name="endIconMode">none</item>
    </style>

    <!-- material 3 -->
    <style name="SimpleDialogTheme.Material3" parent="ThemeOverlay.Material3.Dialog">
        <item name="textInputStyle">@style/SimpleDialogMaterial3TextInputStyle</item>
        <item name="editTextStyle">@style/Widget.Material3.TextInputLayout.OutlinedBox</item>
    </style>
    <style name="SimpleDialogMaterial3TextInputStyle" parent="@style/Widget.Material3.TextInputLayout.OutlinedBox.Dense.ExposedDropdownMenu">
        <item name="endIconMode">none</item>
    </style>

    <!-- deprecated aliases -->
    <style name="SimpleDialogTheme" parent="SimpleDialogTheme.MaterialComponents"/>
    <style name="SimpleDialogTheme.Material" parent="SimpleDialogTheme.MaterialComponents"/>





    <!-- base styles for certain dialog types
    -->

    <!-- image dialog -->
    <style name="ImageDialogTheme" parent="ThemeOverlay.AppCompat.Dialog.Alert">
        <!-- these are required so that the dialog wraps the images dimensions -->
        <item name="android:windowMinWidthMinor">@null</item>
        <item name="android:windowMinWidthMajor">@null</item>
        <item name="colorSurface">#0000</item>
    </style>

    <!-- fullscreen dialog -->
    <style name="FullscreenDialog">
        <item name="android:windowIsFloating">false</item>
        <item name="android:windowBackground">@android:color/white</item>
        <item name="android:windowNoTitle">true</item>
        <item name="actionMenuTextColor">@color/primary_color_state</item>
    </style>

</resources>