hello i need to build a notification layout like seen in the attached picture , i see different libraries on the forum like "Custom Notification Library: Barx" but does not support buttons , is there a way to create such layout? thanks
Thank u Mr barx , appreciate ur help , im waiting , best regardsIf you wish for it look exactly like that, then yes you will need to build a custom layout in xml. If you only need 3 buttons and don't mind compromising the look slightly to make the job a lot easier you could use Actions. I will try to offer a bit more help in a few hours (at work at moment just checking forum every now and again).
Nbuild.Initialize
Nbuild.SmallIcon = "icon"
Nbuild.OnGoingEvent = True
Nbuild.setActivity(Main)
Nbuild.Notify(1)
Sub Service_Start (StartingIntent As Intent)
Service.StartForeground(1,n)
End Sub
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dp" >
<ImageView android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_alignParentLeft="true"
android:layout_marginRight="10dp" />
<TextView android:id="@+id/title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/image" />
<TextView android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@id/image"
android:text="Type here:"
android:layout_below="@id/title" />
</RelativeLayout>