From 3015233aebd398e606df372e5053ef061822086b Mon Sep 17 00:00:00 2001 From: pfavre Date: Sun, 29 Jan 2017 23:21:49 +0100 Subject: [PATCH] adds toolbar styling attr adds playstore default btn updates version to 0.4.2 --- CHANGELOG | 5 +++ README.md | 4 ++- .../hood/demo/DebugDarkMultiPageActivity.java | 1 + app/src/main/res/values/styles.xml | 1 + build.gradle | 2 +- .../defaults/DefaultButtonDefinitions.java | 20 +++++++++++ .../lib/hood/extended/PopHoodActivity.java | 33 +++++++++++++++++-- .../main/res/layout/hoodlib_activity_hood.xml | 2 +- hood-extended/src/main/res/values/attrs.xml | 4 +++ hood-extended/src/main/res/values/styles.xml | 6 ++++ 10 files changed, 73 insertions(+), 5 deletions(-) create mode 100644 hood-extended/src/main/res/values/attrs.xml diff --git a/CHANGELOG b/CHANGELOG index 97d20d2..1113839 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,10 @@ # Releases +## v0.4.2 + +* adds feature to be able to theme toolbar text & icons +* adds playstore link default + ## v0.4.1 (2017-01-27) * fixes bug in demo activity were application context was used in shake detector to start activity diff --git a/README.md b/README.md index 237923d..751bd52 100644 --- a/README.md +++ b/README.md @@ -38,7 +38,7 @@ Add the following to your dependencies ([add jcenter to your repositories](https ```gradle dependencies { - compile 'at.favre.lib.hood:hood-extended:0.4.1' + compile 'at.favre.lib.hood:hood-extended:0.4.2' } ``` @@ -400,6 +400,7 @@ and overlays for standalone views: You can also define your own theme (extending `Theme.AppCompat` or `ThemeOverlay.AppCompat`) but you must define the following attributes in it: +* `hoodToolbarTextColor`: toolbar text and icon color * `hoodZebraColor`: highlighting color for odd rows * `hoodTextSizeNormal`: default text size * `hoodTextSizeHeader`: header text size @@ -410,6 +411,7 @@ Here is an example with useful defaults: ```xml + +