Skip to content

Commit cdc4c46

Browse files
authored
Updated values folder
in this folder i place all necessary file which is required for layout in my app.
1 parent c8db58f commit cdc4c46

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

layout/values/colors.xml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<color name="colorPrimary">#3F51B5</color>
4+
<color name="colorPrimaryDark">#303F9F</color>
5+
<color name="colorAccent">#207826</color> //toggle switch color
6+
<color name="SwitchColor">#207826</color> //switch color
7+
<color name="toolbar">#4caf50</color> //toolbar color
8+
<color name="text">#133d16</color> //text color
9+
</resources>

layout/values/dimens.xml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<resources>
2+
<!-- Default screen margins, per the Android Design guidelines. -->
3+
<dimen name="activity_horizontal_margin">16dp</dimen>
4+
<dimen name="activity_vertical_margin">16dp</dimen>
5+
</resources>

layout/values/strings.xml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<resources>
2+
<string name="app_name">Battery Percentage Enabled</string> //add application name
3+
</resources>

layout/values/styles.xml

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<resources>
2+
//use material theme.
3+
<!-- Base application theme. -->
4+
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
5+
<!-- Customize your theme here. -->
6+
<item name="colorPrimary">@color/colorPrimary</item>
7+
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
8+
<item name="colorAccent">@color/colorAccent</item> //switch color
9+
<item name="android:statusBarColor">#388e3c</item> // statusbar color
10+
</style>
11+
12+
</resources>

0 commit comments

Comments
 (0)