Linear layout and custom dialog
Posted
by DixieFlatline
on Stack Overflow
See other posts from Stack Overflow
or by DixieFlatline
Published on 2010-04-29T16:34:18Z
Indexed on
2010/04/29
16:37 UTC
Read the original article
Hit count: 511
The button doesn't show in this layout(code below),image and textview are shown. I tried using relative layout but that doesn't help either. I'm testing it on 1.5 emulator.
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/layout_root"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:padding="10dp" >
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/neki"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ImageView android:id="@+id/image"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:layout_marginRight="10dp"
/>
<TextView android:id="@+id/text"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:textColor="#FFF"
android:text="Some text "
/>
</LinearLayout>
<Button android:id="@+id/gumbek"
android:text="V redu"
android:typeface="serif" android:textStyle="bold"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
/>
</LinearLayout>
© Stack Overflow or respective owner