Knowledge Base

How to make Custom Gradient Button like gradient image in android ?

  For Gradient Button We make a code in Style.xml and make a selector file for generating the gradient for button Below I make a Blue gradient button with selector : Below is the object of Button  : <Button style=”@style/btnStylelBlue”

Read More

Custom Selector For Button,Edittext and Other Widget in Android

In Android We can Set the Selector to the Widget by Two types ? 1. For make a style and add a style to the widget 2. Directly Add the Drawable in to the Object We can also Set the

Read More

How to Display Custom Toast in Android ?

– For Custom Toast we use any xml background and attached in Toast toast_layout.xml : <?xml version=”1.0″ encoding=”utf-8″?> <LinearLayout xmlns:android=”” android:id=”@+id/toast_layout_root” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:alpha=”1″ android:background=”#35281F” android:gravity=”center_vertical” android:orientation=”vertical” android:paddingBottom=”5dp” > <TextView android:id=”@+id/toast_title” android:layout_width=”match_parent” android:layout_height=”wrap_content” android:gravity=”center” android:layout_marginBottom=”5dp” android:textColor=”#FFFFFF” android:textSize=”15dp” /> <TextView android:id=”@+id/toast_text”

Read More