Clean coding :p
This commit is contained in:
parent
9aaf27e309
commit
2f85e69b3a
@ -9,7 +9,11 @@
|
||||
android:roundIcon="@mipmap/ic_launcher_round"
|
||||
android:supportsRtl="true"
|
||||
android:theme="@style/Theme.MyWeather">
|
||||
<activity android:name=".AddCity"></activity>
|
||||
<!-- Adding an attribute to remove the app bar only in the activity that allows the user to add a city-->
|
||||
<activity android:name=".AddCity"
|
||||
android:parentActivityName=".MainActivity"
|
||||
android:theme="@style/Theme.MyWeather.NoActionBar">
|
||||
</activity>
|
||||
<activity android:name=".MainActivity">
|
||||
<intent-filter>
|
||||
<action android:name="android.intent.action.MAIN" />
|
||||
|
||||
@ -1,14 +1,17 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<!-- Base application theme. -->
|
||||
<style name="Theme.MyWeather" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
||||
|
||||
<!-- Primary brand color. -->
|
||||
<item name="colorPrimary">@color/red</item>
|
||||
<item name="colorPrimaryVariant">@color/red</item>
|
||||
<item name="colorOnPrimary">@color/white</item>
|
||||
|
||||
<!-- Secondary brand color. -->
|
||||
<item name="colorSecondary">@color/red</item>
|
||||
<item name="colorSecondaryVariant">@color/red</item>
|
||||
<item name="colorOnSecondary">@color/white</item>
|
||||
|
||||
<!-- Status bar color. -->
|
||||
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
|
||||
<!-- Customize your theme here. -->
|
||||
|
||||
Loading…
Reference in New Issue
Block a user