java - Android - Custom dialog boxes layout problem -
i have custom dialog box displaying text , image underneath.
the text made of few lines , despite messing around xml layout stuff millions of times, image @ bottom overlapping half/some of text. how can tweak appears underneath , after text has finished?
<imageview android:id="@+id/image" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerhorizontal="true" /> <scrollview android:id="@+id/scrollview01" android:layout_width="wrap_content" android:layout_below="@+id/image" android:layout_height="200px"> <textview android:id="@+id/text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:textcolor="#fff" /> </scrollview> <imageview android:id="@+id/image2" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_centerhorizontal="true" android1:layout_alignparentbottom="true"/>
items set inside relativelayout setting.
if wrap textview , imageview inside relativelayout can set imageview display below textview.
<imageview android:id="@+id/image2" android:layout_height="wrap_content" android:layout_width="wrap_content" android:layout_centerhorizontal="true" android:layout_alignparentbottom="true" android:layout_below="@+id/scrollview01"/>
edit: saw had set android1:layout_alignparentbottom="true", typo android1 , not android? shouldn't android:layout_alignparentbottom="true"?
Comments
Post a Comment