GoCarrot / teak-android

Carrot SDK for Android
Apache License 2.0
0 stars 0 forks source link

iOS-style Notification Small View #119

Closed ZeroStride closed 1 year ago

ZeroStride commented 1 year ago

This is intended specifically to look good on Android 13+ and mimic the iOS display of notifications, with a thumbnail image on the right side.

Questions to Answer:

AlexSc commented 1 year ago

Yes, we'll want Title, Subtitle, and Text the same as iOS image

ZeroStride commented 1 year ago

Modify teak_small_view_content.xml and add Title and Subtitle. Swap layout_toEndOf and layout_toRightOf to layout_toLeftOf and layout_toStartOf.

Make sure to auto-hide Title and Subtitle in case they are absent.

The ViewBuilder#buildViews should take care of populating the text elements by name from the JSON that is handed to it.