I need to customize the title area of a my custom dialog using the following layout:
dialog_title.xml
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TextView
android:id="@+id/text"
android:text="@string/tell_a_friend"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:paddingLeft="8dip"
android:paddingTop="12dip"
android:paddingBottom="12dip"
style="@style/bigTextWhite" />
</LinearLayout>
I’m creating my dialog using a CustomDialog class that extends Dialog.
CustomDialog dialogTellAFriend = new CustomDialog(this, Constants.TELL_A_FRIEND_DIALOG);
dialogTellAFriend.show();
How do I make this happen?
You have to hide your dialog title and inflate whole dialog by your xml. I think this Idea is best for you.
For hide the Dialog title
and load your layout for dialog is