Fix weird dialog styles
This commit is contained in:
parent
c8f5a92e12
commit
8d3a9a89fc
3 changed files with 16 additions and 13 deletions
|
@ -32,14 +32,16 @@
|
|||
android:theme="@style/AppTheme" />
|
||||
<activity
|
||||
android:name=".ui.transactions.TransactionFormActivity"
|
||||
android:parentActivityName=".ui.MainActivity">
|
||||
android:parentActivityName=".ui.MainActivity"
|
||||
android:theme="@style/AppTheme">
|
||||
<meta-data
|
||||
android:name="android.support.PARENT_ACTIVITY"
|
||||
android:value=".ui.MainActivity" />
|
||||
</activity>
|
||||
<activity
|
||||
android:name=".ui.categories.CategoryFormActivity"
|
||||
android:parentActivityName=".ui.MainActivity">
|
||||
android:parentActivityName=".ui.MainActivity"
|
||||
android:theme="@style/AppTheme">
|
||||
<meta-data
|
||||
android:name="android.support.PARENT_ACTIVITY"
|
||||
android:value=".ui.MainActivity" />
|
||||
|
|
|
@ -85,7 +85,8 @@ class TransactionFormActivity : AppCompatActivity(), CoroutineScope {
|
|||
currentDate.year + 1900,
|
||||
currentDate.month,
|
||||
currentDate.date
|
||||
).show()
|
||||
)
|
||||
.show()
|
||||
}
|
||||
transactionTime.setOnClickListener {
|
||||
val currentDate = DateFormat.getTimeFormat(this@TransactionFormActivity)
|
||||
|
|
|
@ -10,11 +10,16 @@
|
|||
<item name="android:statusBarColor">?android:attr/windowBackground</item>
|
||||
<item name="android:windowBackground">@color/colorBackgroundPrimary</item>
|
||||
<item name="android:navigationBarColor">@color/colorBackgroundPrimary</item>
|
||||
<item name="android:timePickerDialogTheme">
|
||||
@style/Theme.MaterialComponents.DayNight.Dialog.Alert
|
||||
</item>
|
||||
<item name="android:datePickerDialogTheme">
|
||||
@style/Theme.MaterialComponents.DayNight.Dialog.Alert
|
||||
<item name="android:timePickerDialogTheme">@style/DateTimePickerDialogTheme</item>
|
||||
<item name="android:datePickerDialogTheme">@style/DateTimePickerDialogTheme</item>
|
||||
</style>
|
||||
|
||||
<style name="DateTimePickerDialogTheme" parent="Theme.MaterialComponents.DayNight.Dialog.Alert">
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
<item name="android:buttonBarButtonStyle">
|
||||
@style/Widget.MaterialComponents.Button.TextButton
|
||||
</item>
|
||||
</style>
|
||||
|
||||
|
@ -41,9 +46,4 @@
|
|||
|
||||
<style name="AppTheme.EditText.Hint" parent="TextAppearance.Design.Hint">
|
||||
</style>
|
||||
|
||||
<style name="AppTheme.AlertDialog" parent="Theme.MaterialComponents.DayNight.Dialog.Alert">
|
||||
<item name="android:background">@drawable/bg_rounded</item>
|
||||
<item name="android:gravity">bottom</item>
|
||||
</style>
|
||||
</resources>
|
||||
|
|
Loading…
Reference in a new issue