diff options
author | Aurelien Hubert <aurel.hubert@gmail.com> | 2016-05-12 13:52:43 +0200 |
---|---|---|
committer | Aurelien Hubert <aurel.hubert@gmail.com> | 2016-05-12 13:52:43 +0200 |
commit | b7d04b4ba1e37ced1cb01c906dbac935be2bac78 (patch) | |
tree | d5909e1e15c3fb9eae1385d3c65d553ea42af3bd | |
parent | def03e91ab578e46076782c3d0e049f725585c79 (diff) | |
download | android_external_ahbottomnavigation-b7d04b4ba1e37ced1cb01c906dbac935be2bac78.tar.gz android_external_ahbottomnavigation-b7d04b4ba1e37ced1cb01c906dbac935be2bac78.tar.bz2 android_external_ahbottomnavigation-b7d04b4ba1e37ced1cb01c906dbac935be2bac78.zip |
Updated resources (mainly for notifications)
5 files changed, 17 insertions, 8 deletions
diff --git a/ahbottomnavigation/src/main/res/drawable/notification.9.png b/ahbottomnavigation/src/main/res/drawable/notification.9.png Binary files differdeleted file mode 100644 index 0779d68..0000000 --- a/ahbottomnavigation/src/main/res/drawable/notification.9.png +++ /dev/null diff --git a/ahbottomnavigation/src/main/res/drawable/notification_background.xml b/ahbottomnavigation/src/main/res/drawable/notification_background.xml index 55318f4..2c18b1a 100644 --- a/ahbottomnavigation/src/main/res/drawable/notification_background.xml +++ b/ahbottomnavigation/src/main/res/drawable/notification_background.xml @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<shape xmlns:android="http://schemas.android.com/apk/res/android" android:shape="oval"> - +<shape xmlns:android="http://schemas.android.com/apk/res/android" + android:shape="rectangle"> <solid android:color="@color/colorBottomNavigationNotification" /> - + <corners android:radius="@dimen/bottom_navigation_notification_radius" /> </shape>
\ No newline at end of file diff --git a/ahbottomnavigation/src/main/res/layout/bottom_navigation_item.xml b/ahbottomnavigation/src/main/res/layout/bottom_navigation_item.xml index 33ddf28..0489ccf 100644 --- a/ahbottomnavigation/src/main/res/layout/bottom_navigation_item.xml +++ b/ahbottomnavigation/src/main/res/layout/bottom_navigation_item.xml @@ -34,15 +34,19 @@ <TextView android:id="@+id/bottom_navigation_notification" - android:layout_width="@dimen/bottom_navigation_notification_width" + android:layout_width="wrap_content" android:layout_height="@dimen/bottom_navigation_notification_height" + android:minWidth="@dimen/bottom_navigation_notification_width" android:layout_gravity="center_horizontal" android:layout_marginLeft="@dimen/bottom_navigation_notification_margin_left" android:layout_marginTop="@dimen/bottom_navigation_notification_margin_top" + android:paddingLeft="@dimen/bottom_navigation_notification_padding" + android:paddingRight="@dimen/bottom_navigation_notification_padding" android:alpha="0" android:background="@drawable/notification_background" android:gravity="center" android:textColor="#FFFFFF" - android:textSize="@dimen/bottom_navigation_notification_text_size"/> + android:textSize="@dimen/bottom_navigation_notification_text_size" + android:textStyle="bold" /> </FrameLayout>
\ No newline at end of file diff --git a/ahbottomnavigation/src/main/res/layout/bottom_navigation_small_item.xml b/ahbottomnavigation/src/main/res/layout/bottom_navigation_small_item.xml index 073ed98..5477de1 100644 --- a/ahbottomnavigation/src/main/res/layout/bottom_navigation_small_item.xml +++ b/ahbottomnavigation/src/main/res/layout/bottom_navigation_small_item.xml @@ -33,15 +33,19 @@ <TextView android:id="@+id/bottom_navigation_notification" - android:layout_width="@dimen/bottom_navigation_notification_width" + android:layout_width="wrap_content" android:layout_height="@dimen/bottom_navigation_notification_height" + android:minWidth="@dimen/bottom_navigation_notification_width" android:layout_gravity="center_horizontal" android:layout_marginLeft="@dimen/bottom_navigation_notification_margin_left" android:layout_marginTop="@dimen/bottom_navigation_notification_margin_top" + android:paddingLeft="@dimen/bottom_navigation_notification_padding" + android:paddingRight="@dimen/bottom_navigation_notification_padding" android:alpha="0" android:background="@drawable/notification_background" android:gravity="center" android:textColor="#FFFFFF" - android:textSize="@dimen/bottom_navigation_notification_text_size"/> + android:textSize="@dimen/bottom_navigation_notification_text_size" + android:textStyle="bold"/> </FrameLayout>
\ No newline at end of file diff --git a/ahbottomnavigation/src/main/res/values/dimens.xml b/ahbottomnavigation/src/main/res/values/dimens.xml index 5eff23a..65fd98e 100644 --- a/ahbottomnavigation/src/main/res/values/dimens.xml +++ b/ahbottomnavigation/src/main/res/values/dimens.xml @@ -34,10 +34,11 @@ <dimen name="bottom_navigation_notification_width">16dp</dimen> <dimen name="bottom_navigation_notification_height">16dp</dimen> + <dimen name="bottom_navigation_notification_radius">8dp</dimen> + <dimen name="bottom_navigation_notification_padding">3dp</dimen> <dimen name="bottom_navigation_notification_margin_top">4dp</dimen> <dimen name="bottom_navigation_notification_margin_left">16dp</dimen> <dimen name="bottom_navigation_notification_margin_left_active">26dp</dimen> <dimen name="bottom_navigation_notification_text_size">9sp</dimen> - <dimen name="bottom_navigation_notification_text_size_min">8sp</dimen> </resources> |