-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: #1738 Fixed Notification icon disappear in Persian language
- Loading branch information
1 parent
0bd9057
commit 075e81c
Showing
1 changed file
with
30 additions
and
25 deletions.
There are no files selected for viewing
55 changes: 30 additions & 25 deletions
55
app/src/main/res/layout/action_bar_notification_layout.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,40 @@ | ||
<?xml version="1.0" encoding="utf-8"?><!--TODO: replace this with a simple icon and use BadgeDrawable for badge--> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:app="http://schemas.android.com/apk/res-auto" | ||
style="@android:style/Widget.ActionButton" | ||
android:layout_width="wrap_content" | ||
android:layout_height="match_parent" | ||
android:layout_gravity="center" | ||
android:clickable="true" | ||
android:focusable="true" | ||
android:gravity="center" | ||
android:orientation="vertical"> | ||
android:gravity="center"> | ||
|
||
<ImageView | ||
android:id="@+id/iv_notification_icon" | ||
android:layout_width="wrap_content" | ||
<RelativeLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:gravity="center" | ||
app:srcCompat="@drawable/ic_notifications" /> | ||
android:layout_gravity="center" | ||
android:orientation="vertical"> | ||
|
||
<TextView | ||
android:id="@+id/tv_notification_indicator" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignTop="@id/iv_notification_icon" | ||
android:layout_alignEnd="@+id/iv_notification_icon" | ||
android:layout_alignRight="@id/iv_notification_icon" | ||
android:background="@drawable/notification_circle" | ||
android:gravity="top|end" | ||
android:paddingLeft="3dp" | ||
android:paddingRight="3dp" | ||
android:textColor="@color/white" | ||
android:textSize="@dimen/text_extra_small" | ||
android:visibility="gone" /> | ||
<ImageView | ||
android:id="@+id/iv_notification_icon" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:gravity="center" | ||
app:srcCompat="@drawable/ic_notifications" /> | ||
|
||
<TextView | ||
android:id="@+id/tv_notification_indicator" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignTop="@id/iv_notification_icon" | ||
android:layout_alignEnd="@+id/iv_notification_icon" | ||
android:background="@drawable/notification_circle" | ||
android:gravity="top|end" | ||
android:paddingLeft="3dp" | ||
android:paddingRight="3dp" | ||
android:textColor="@color/white" | ||
android:textSize="10sp" | ||
android:visibility="gone" /> | ||
|
||
</RelativeLayout> | ||
|
||
</RelativeLayout> | ||
</LinearLayout> |