In my project I need use custom Dialog instead AlertDialog. But I have two problems with Dialog style:
- Too small width
- I cannot remove title space
So, I need

But get:

Calling code:
Dialog dialog = new Dialog(this);
dialog.setContentView(R.layout.write_message);
dialog.show();
Layout 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="vertical" >
<EditText
android:id="@+id/message"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:ems="10"
android:inputType="textMultiLine"
android:minLines="3" >
<requestFocus />
</EditText>
<Button
android:id="@+id/send_message"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/send_message" />
</LinearLayout>
How to fix this problems? Help, please.
Have you tried :
and
You can add padding in the layout xml if you need it
?