Skip to content

Commit 1857479

Browse files
committed
style #12: add no action bar theme
1 parent 4fa3696 commit 1857479

File tree

4 files changed

+164
-1
lines changed

4 files changed

+164
-1
lines changed

QuizApp/.idea/codeStyles/Project.xml

Lines changed: 139 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

QuizApp/.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

QuizApp/app/src/main/AndroidManifest.xml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,11 @@
99
android:roundIcon="@mipmap/ic_launcher_round"
1010
android:supportsRtl="true"
1111
android:theme="@style/Theme.QuizApp">
12-
<activity android:name=".MainActivity">
12+
<activity
13+
android:name=".MainActivity"
14+
android:screenOrientation="portrait"
15+
android:theme="@style/NoActionBarTheme"
16+
android:windowSoftInputMode="adjustResize">
1317
<intent-filter>
1418
<action android:name="android.intent.action.MAIN" />
1519

QuizApp/app/src/main/res/values/themes.xml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,19 @@
1313
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
1414
<!-- Customize your theme here. -->
1515
</style>
16+
17+
<style name="NoActionBarTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
18+
19+
<!-- Primary brand color. -->
20+
<item name="colorPrimary">@color/purple_500</item>
21+
<item name="colorPrimaryVariant">@color/purple_700</item>
22+
<item name="colorOnPrimary">@color/white</item>
23+
<!-- Secondary brand color. -->
24+
<item name="colorSecondary">@color/teal_200</item>
25+
<item name="colorSecondaryVariant">@color/teal_700</item>
26+
<item name="colorOnSecondary">@color/black</item>
27+
<!-- Status bar color. -->
28+
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
29+
<!-- Customize your theme here. -->
30+
</style>
1631
</resources>

0 commit comments

Comments
 (0)