Notification with expandable custom layout
Android Notification using custom layout with Text & Image In this tutorial we will do the followings: 1) Make/Show Notification (expandable) 2) Custom layout xml for notification 3) Image and Text in custom layout Video Step 1: Create a new project OR Open your project Step 2: In res folder create two resource layout files named custom_normal.xml and custom_expanded.xml Step 3: Place an image in drawable folder to show in notification Step 4: Code: custom_normal.xml <?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" android:layout_width= "match_parent" android:layout_height= "match_parent" android:orientation= "horizontal" > <ImageView android:layout_width= "40dp" android:layout_height= "40dp" android:src= "@drawable/logo_atif" /> ...