Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: #1738 Fixed Notification icon disappear in Persian language #2410

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 30 additions & 25 deletions app/src/main/res/layout/action_bar_notification_layout.xml
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>
Loading