<?xml version="1.0" encoding="utf-8"?>
<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="250px"
android:id="@+id/dialog_layout_root">
<AbsoluteLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView android:id="@+id/dialogtext"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:textColor="#FFF"
android:text="This is sample text view!">
</TextView>
</AbsoluteLayout>
<AbsoluteLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<EditText android:id="@+id/dialogEditText"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
</EditText>
</AbsoluteLayout>
<?xml version=1.0 encoding=utf-8?> <AbsoluteLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=wrap_content android:layout_height=250px android:id=@+id/dialog_layout_root> <AbsoluteLayout android:layout_width=wrap_content android:layout_height=wrap_content> <TextView android:id=@+id/dialogtext android:layout_width=fill_parent
Share
Why are you using
AbsoluteLayout.Is there some special Reason?
AbsoluteLayoutis Deprecated. You can useRelativeLayoutorlinearLayoutinstead.