mirror of
https://github.com/ethauvin/android-about-box.git
synced 2025-04-25 02:37:11 -07:00
Changed readme file. (Close #20)
This commit is contained in:
parent
b8ea937107
commit
e34c4067ea
1 changed files with 26 additions and 0 deletions
26
README.md
26
README.md
|
@ -100,6 +100,32 @@ Open AboutBox screen
|
|||
AboutActivity.launch(activity);
|
||||
```
|
||||
|
||||
## Theme
|
||||
|
||||
Add to your AndroidManifest.xml file
|
||||
|
||||
```
|
||||
<activity
|
||||
android:name="com.eggheadgames.aboutbox.activity.AboutActivity"
|
||||
android:theme="@style/AppTheme.MaterialAboutActivity"/>
|
||||
```
|
||||
|
||||
Ensure that `AppTheme.MaterialAboutActivity` theme extends either of these themes, and apply primary & accent colours:
|
||||
```
|
||||
Theme.Mal.Light.DarkActionBar
|
||||
Theme.Mal.Light.LightActionBar
|
||||
Theme.Mal.Dark.LightActionBar
|
||||
Theme.Mal.Dark.DarkActionBar
|
||||
```
|
||||
|
||||
```
|
||||
<style name="AppTheme.MaterialAboutActivity" parent="Theme.Mal.Light.DarkActionBar" >
|
||||
<!-- Customize your theme here. -->
|
||||
<item name="colorPrimary">@color/colorPrimary</item>
|
||||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
|
||||
<item name="colorAccent">@color/colorAccent</item>
|
||||
</style>
|
||||
```
|
||||
## Screenshot
|
||||
|
||||
<img src="extras/example.png?raw=true">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue