-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MBX-3508: return layout for collapsed state
- Loading branch information
Sergey Sozinov
committed
Jul 17, 2024
1 parent
4156824
commit 567803c
Showing
4 changed files
with
106 additions
and
26 deletions.
There are no files selected for viewing
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
34 changes: 34 additions & 0 deletions
34
sdk/src/main/res/layout/mindbox_notification_custom_text.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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/root_layout" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content"> | ||
|
||
<TextView | ||
android:id="@+id/text_view_title" | ||
style="@style/MindboxNotificationCollapsedTitleStyle" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_marginEnd="@dimen/mindbox_notification_content_margin_end" | ||
android:layout_toStartOf="@+id/image_view_large_icon" | ||
android:singleLine="true" /> | ||
|
||
<TextView | ||
android:id="@+id/text_view_content" | ||
style="@style/MindboxTextStyle" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_below="@+id/text_view_title" | ||
android:layout_marginEnd="@dimen/mindbox_notification_content_margin_end" | ||
android:layout_marginTop="@dimen/mindbox_notification_content_margin_top" | ||
android:layout_toStartOf="@+id/image_view_large_icon" | ||
android:singleLine="true"/> | ||
|
||
<ImageView | ||
android:id="@+id/image_view_large_icon" | ||
android:layout_width="@dimen/mindbox_notification_large_icon_size" | ||
android:layout_height="@dimen/mindbox_notification_large_icon_size" | ||
android:layout_alignParentTop="true" | ||
android:layout_alignParentEnd="true" | ||
android:scaleType="centerCrop" /> | ||
</RelativeLayout> |
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<bool name="mindbox_old_notification_style">true</bool> | ||
</resources> |
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