Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9d96196f authored by Sean Midford's avatar Sean Midford Committed by Android (Google) Code Review
Browse files

Merge "Added 'new' badge to navigation drawer." into ub-contactsdialer-h-dev

parents b0914bcb dfd0b0d3
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (C) 2016 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <solid android:color="@color/dialtacts_secondary_text_color"/>
    <corners android:radius="@dimen/nav_new_badge_corners"/>
</shape>
 No newline at end of file
+31 −0
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?>
<!--
     Copyright (C) 2016 The Android Open Source Project

     Licensed under the Apache License, Version 2.0 (the "License");
     you may not use this file except in compliance with the License.
     You may obtain a copy of the License at

          http://www.apache.org/licenses/LICENSE-2.0

     Unless required by applicable law or agreed to in writing, software
     distributed under the License is distributed on an "AS IS" BASIS,
     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     See the License for the specific language governing permissions and
     limitations under the License.
-->

<TextView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/assistant_new_badge"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_gravity="center_vertical"
    android:paddingLeft="@dimen/nav_new_badge_horizontal_pad"
    android:paddingTop="@dimen/nav_new_badge_vertical_pad"
    android:paddingRight="@dimen/nav_new_badge_horizontal_pad"
    android:paddingBottom="@dimen/nav_new_badge_vertical_pad"
    android:background="@drawable/new_badge_background"
    android:textSize="@dimen/nav_new_badge_font_size"
    android:textAllCaps="true"
    android:textColor="#FFFFFF"
    android:text="@string/menu_assistant_new_badge"/>
 No newline at end of file
+3 −1
Original line number Diff line number Diff line
@@ -16,7 +16,8 @@
  limitations under the License.
  -->

<menu xmlns:android="http://schemas.android.com/apk/res/android">
<menu xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto">

    <group android:id="@+id/nav_utilities">
        <item
@@ -25,6 +26,7 @@
            android:title="@string/contactsList" />
        <item
            android:id="@+id/nav_assistant"
            app:actionViewClass="android.widget.LinearLayout"
            android:icon="@drawable/ic_assistant"
            android:title="@string/menu_assistant"/>
        <item
+5 −0
Original line number Diff line number Diff line
@@ -248,6 +248,11 @@
    <dimen name="nav_activity_horizontal_margin">16dp</dimen>
    <dimen name="nav_activity_vertical_margin">16dp</dimen>

    <dimen name="nav_new_badge_corners">3dp</dimen>
    <dimen name="nav_new_badge_vertical_pad">2dp</dimen>
    <dimen name="nav_new_badge_horizontal_pad">5dp</dimen>
    <dimen name="nav_new_badge_font_size">11sp</dimen>

    <!-- Top padding for the image for empty group view -->
    <dimen name="empty_group_view_image_padding_top">8dp</dimen>

+3 −0
Original line number Diff line number Diff line
@@ -926,6 +926,9 @@
    <!-- The menu item to open the link/merge duplicates activity. [CHAR LIMIT=20]-->
    <string name="menu_duplicates">Duplicates</string>

    <!-- Assistant 'NEW' badge text. Badge shown next to Assistant in left drawer menu when user has not visited it yet. [CHAR LIMIT=10] -->
    <string name="menu_assistant_new_badge">New</string>

    <!-- Open drawer content descriptions [CHAR LIMIT=40] -->
    <string name="navigation_drawer_open">Open navigation drawer</string>

Loading