diff options
author | Allan Wang <me@allanwang.ca> | 2017-06-29 00:29:46 -0700 |
---|---|---|
committer | Allan Wang <me@allanwang.ca> | 2017-06-29 00:29:46 -0700 |
commit | 8f2e56eb5ecfc6b5ce2f1530ead6fe73f5bfe89c (patch) | |
tree | f6e3d074c1f5d21faac6375f356607408e1e465c /library/src/main/res/values | |
parent | b45156a92f9b2f3fcce62fd58d25474196048f1a (diff) | |
download | kau-8f2e56eb5ecfc6b5ce2f1530ead6fe73f5bfe89c.tar.gz kau-8f2e56eb5ecfc6b5ce2f1530ead6fe73f5bfe89c.tar.bz2 kau-8f2e56eb5ecfc6b5ce2f1530ead6fe73f5bfe89c.zip |
Completely rewrite about activity
Diffstat (limited to 'library/src/main/res/values')
-rw-r--r-- | library/src/main/res/values/attr.xml | 3 | ||||
-rw-r--r-- | library/src/main/res/values/dimens.xml | 7 | ||||
-rw-r--r-- | library/src/main/res/values/ids.xml | 2 | ||||
-rw-r--r-- | library/src/main/res/values/styles.xml | 2 |
4 files changed, 11 insertions, 3 deletions
diff --git a/library/src/main/res/values/attr.xml b/library/src/main/res/values/attr.xml index daeb5e3..49be8d9 100644 --- a/library/src/main/res/values/attr.xml +++ b/library/src/main/res/values/attr.xml @@ -29,9 +29,10 @@ <attr name="dragElasticity" format="float" /> </declare-styleable> - <declare-styleable name="CutoutTextView"> + <declare-styleable name="CutoutView"> <attr name="foregroundColor" format="color" /> <attr name="android:text" /> + <attr name="android:drawable" /> <attr name="android:minHeight" /> <attr name="heightPercentageToScreen" format="float" /> <attr name="font"/> diff --git a/library/src/main/res/values/dimens.xml b/library/src/main/res/values/dimens.xml index d45643e..5bf6da4 100644 --- a/library/src/main/res/values/dimens.xml +++ b/library/src/main/res/values/dimens.xml @@ -28,5 +28,10 @@ <dimen name="kau_about_header_height">224dp</dimen> - + <!-- avatar should be a 40dp asset in a 48dp touch target & optically aligned with standard padding --> + <dimen name="kau_avatar_size">40dp</dimen> + <dimen name="kau_avatar_bounds">48dp</dimen> + <dimen name="kau_avatar_padding">4dp</dimen> <!-- (avatar_bounds - avatar_size) / 2 --> + <dimen name="kau_avatar_margin">12dp</dimen> <!-- padding_normal - avatar_padding --> + <dimen name="kau_avatar_ripple_radius">20dp</dimen> <!-- avatar_size / 2 --> </resources> diff --git a/library/src/main/res/values/ids.xml b/library/src/main/res/values/ids.xml index a21175a..fe0d411 100644 --- a/library/src/main/res/values/ids.xml +++ b/library/src/main/res/values/ids.xml @@ -8,6 +8,8 @@ <item name="kau_item_pref_sub_item" type="id" /> <item name="kau_item_pref_plain_text" type="id" /> <item name="kau_item_search" type="id" /> + <item name="kau_item_cutout" type="id" /> + <item name="kau_item_card" type="id" /> <item name="kau_item_about_library" type="id" /> <item name="kau_item_about_main" type="id" /> </resources>
\ No newline at end of file diff --git a/library/src/main/res/values/styles.xml b/library/src/main/res/values/styles.xml index 6f5e3c1..2067c6d 100644 --- a/library/src/main/res/values/styles.xml +++ b/library/src/main/res/values/styles.xml @@ -14,7 +14,7 @@ </style> <style name="Kau.Translucent.About"> - <item name="android:windowEnterTransition">@transition/kau_about_enter</item> + <item name="android:windowEnterTransition">@transition/kau_enter_slide_top</item> <item name="android:windowReturnTransition">@transition/kau_about_return_upwards</item> </style> |