android - This is overlapping. How do I fix this? -
android - This is overlapping. How do I fix this? -
<?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 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 using absolutelayout.
is there special reason?
absolutelayout deprecated. can utilize relativelayout or linearlayout instead.
android xml
Comments
Post a Comment