Skip to content

Instantly share code, notes, and snippets.

@sharish
Last active September 28, 2015 02:20
Show Gist options
  • Save sharish/f4c11b0b2d08ad98f50e to your computer and use it in GitHub Desktop.
Save sharish/f4c11b0b2d08ad98f50e to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.Toolbar xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:id="@+id/ab_toolbar"
app:popupTheme="@style/MyActionBarLogo"
android:layout_width="match_parent"
android:layout_height="?attr/actionBarSize"
android:background="@color/primary_purple_dark"
android:fitsSystemWindows="true"
app:layout_scrollFlags="scroll|enterAlways"
/>
<!-- Rating bar drawable -->
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:id="@android:id/background"
android:drawable="@drawable/apptheme_rate_star_small_off_holo_light" />
<item android:id="@android:id/secondaryProgress"
android:drawable="@drawable/apptheme_rate_star_small_half_holo_light" />
<item android:id="@android:id/progress"
android:drawable="@drawable/apptheme_rate_star_small_on_holo_light" />
</layer-list>
<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.NoActionBar">
<item name="android:colorBackground">@color/background_material_light</item>
<!-- Customize your theme here. -->
</style>
<style name="MyActionBarLogo" parent="@style/ThemeOverlay.AppCompat.Light">
<item name="background">@color/primary_purple_dark</item>
<item name="logo">@drawable/ic_menu</item>
<item name="displayOptions">useLogo|showHome</item>
</style>
<style name="AppCompatAlertDialogStyle" parent="Theme.AppCompat.Light.Dialog.Alert">
<item name="colorAccent">@color/accent</item>
<item name="android:textColorPrimary">@android:color/white</item>
<item name="android:background">@color/primary_purple</item>
</style>
<style name="rating" parent="@android:style/Widget.RatingBar">
<item name="android:progressDrawable">@drawable/rating</item>
<item name="android:minHeight">23dp</item>
<item name="android:maxHeight">25dp</item>
</style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment