design support library

design support library
This commit is contained in:
hmkcode
2015-06-07 19:58:41 +03:00
parent b183141b1e
commit 68acc1ea04
26 changed files with 711 additions and 0 deletions
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="window_background">#CC000000</color>
<color name="my_primary">#ED1C24</color>
<color name="my_primary_dark">#CC0000</color>
<color name="my_primary_light">#B3E5FC</color>
<color name="my_accent">#ED1C24</color>
<color name="my_primary_text">#ffffff</color>
<color name="my_secondary_text">#ffffff</color>
<color name="my_icons">#FFFFFF</color>
<color name="my_divider">#B6B6B6</color>
</resources>
@@ -0,0 +1,9 @@
<resources>
<!-- Default screen margins, per the Android Design guidelines. -->
<dimen name="activity_horizontal_margin">16dp</dimen>
<dimen name="activity_vertical_margin">16dp</dimen>
<dimen name="card_margin">16dp</dimen>
<dimen name="detail_backdrop_height">256dp</dimen>
</resources>
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">HMKCODE App</string>
<string name="hello_world">Hello world!</string>
<string name="action_settings">Settings</string>
<string name="action_find_location">Find</string>
<string name="long_text">Android 5.0 Lollipop was one of the most significant Android releases ever,
in no small part due to the introduction of material design,
a new design language that refreshed the entire Android experience
</string>
<string name="drawer_open">Open navigation drawer</string>
<string name="drawer_close">Close navigation drawer</string>
</resources>
@@ -0,0 +1,48 @@
<resources>
<style name="Base.Theme.HMKCodeApp" parent="Theme.AppCompat.NoActionBar">
<item name="colorPrimary">@color/my_primary</item>
<!-- darker variant for the status bar and contextual app bars -->
<item name="colorPrimaryDark">@color/my_primary_dark</item>
<!-- theme UI controls like checkboxes and text fields e.g. FloatActionButton -->
<item name="colorAccent">@color/my_accent</item>
<!-- Title Text Color -->
<item name="android:textColorPrimary">@color/my_primary_text</item>
<!-- color of the menu overflow icon (three vertical dots) -->
<item name="android:textColorSecondary">@color/my_secondary_text</item>
<item name="android:windowBackground">@color/window_background</item>
</style>
<!--
Base application theme, dependent on API level. This theme is replaced
by AppBaseTheme from res/values-vXX/styles.xml on newer devices.
-->
<style name="AppBaseTheme" parent="Base.Theme.HMKCodeApp">
<!--
Theme customizations available in newer API levels can go in
res/values-vXX/styles.xml, while customizations related to
backward-compatibility can go here.
-->
</style>
<!-- Application theme. -->
<style name="AppTheme" parent="AppBaseTheme">
<!-- All customizations that are NOT specific to a particular API-level can go here. -->
</style>
<style name="Widget.CardContent" parent="android:Widget">
<item name="android:paddingLeft">16dp</item>
<item name="android:paddingRight">16dp</item>
<item name="android:paddingTop">24dp</item>
<item name="android:paddingBottom">24dp</item>
<item name="android:orientation">vertical</item>
</style>
</resources>