This is overlapping. How do I fix this?
<?xml version="1.0" encoding="utf-8"?开发者_StackOverflow社区>
<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>
Why are you using AbsoluteLayout
.
Is there some special Reason?
AbsoluteLayout
is Deprecated. You can use RelativeLayout
or linearLayout
instead.
精彩评论