Skip to content

Commit

Permalink
Merge pull request #1475 from OneSignal/fix/notification_background_i…
Browse files Browse the repository at this point in the history
…mage_rtl_3.x.x

Notification background image RTL fixes for 3.x.x
  • Loading branch information
jkasten2 authored Oct 28, 2021
2 parents fb28217 + 32c190f commit 4146708
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
<!--android:textAppearance="@android:style/TextAppearance.StatusBar.EventContent.Title"-->

<RelativeLayout android:id="@+id/os_bgimage_notif_bgimage_align_layout"
android:layoutDirection="ltr"
android:layout_width="wrap_content"
android:layout_height="64dp"
android:paddingLeft="0dp"
Expand All @@ -29,21 +30,20 @@
</RelativeLayout>

<LinearLayout
xmlns:tools="http://schemas.android.com/tools"
tools:ignore="RtlCompat"

android:orientation="vertical"
android:layout_marginStart="@android:dimen/notification_large_icon_width"
android:layout_marginLeft="@android:dimen/notification_large_icon_width"
android:layout_width="fill_parent"
android:layout_height="64dp">
android:layout_height="64dp"
android:textDirection="locale"
>
<TextView
android:id="@+id/os_bgimage_notif_title"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textAppearance="@android:style/TextAppearance.StatusBar.EventContent.Title"
android:text="Medium Text"
android:paddingTop="8dp"
android:paddingLeft="4dp"
android:paddingStart="4dp"
android:singleLine="true"
android:ellipsize="marquee"/>
<TextView
Expand All @@ -56,6 +56,6 @@
android:singleLine="true"
android:ellipsize="marquee"
android:fadingEdge="horizontal"
android:paddingLeft="4dp"/>
android:paddingStart="4dp"/>
</LinearLayout>
</RelativeLayout>

0 comments on commit 4146708

Please sign in to comment.