You have to supply a layout_width

On Aug 13, 5:10 am, Goutom <goutom.sust....@gmail.com> wrote:
> Hi
>
> I have a layout xml file.When I call setContentView(R.layout.xmlname), it
> crashes.Logcat shows nothing.
>
> --------------------------------------------------------------------------------------------------------------------------------------
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
>     android:layout_width="fill_parent" android:layout_height="fill_parent"
>     android:fitsSystemWindows="true" android:layout_weight="1"
>     android:orientation="vertical">
>
>     <RelativeLayout android:layout_width="fill_parent"
>         android:layout_height="wrap_content" android:background="#b4b4b4"
>         android:gravity = "center_horizontal">
>
>         <LinearLayout android:orientation="vertical"
>             android:layout_alignParentLeft="true"
>             android:paddingLeft="5dip">
>
>             <TextView android:id="@+id/pio_navi_org_name"
> android:layout_width="fill_parent" android:layout_height="wrap_content"
>                 android:textSize="20sp" android:textStyle="bold"
> android:textColor="#000000" />
>
>             <TextView android:id="@+id/pio_navi_org_add"
> android:layout_width="fill_parent" android:layout_height="wrap_content"
>                 android:textSize="15sp" android:textStyle="bold"
> android:textColor="#000000" />
>
>             <TextView android:id="@+id/pio_navi_org_website"
> android:layout_width="fill_parent" android:layout_height="wrap_content"
>                 android:textSize="15sp" android:textStyle="bold"
> android:textColor="#000000" />
>
>         </LinearLayout>
>
>         <ImageView
>             android:layout_alignParentRight="true"
>             android:layout_width="43dip" android:layout_height="43dip"
>             android:scaleType="fitXY" android:src="@drawable/orgpeople">
>         </ImageView>
>
>     </RelativeLayout>
>     <ListView android:id="@+id/peopleinorglist"
>         android:layout_width="fill_parent"
> android:layout_height="fill_parent"
>         android:dividerHeight="1dip"
>         android:paddingBottom="1dip">
>     </ListView>
>
> </LinearLayout>
>
> ----------------------------------------------------------------------------------------------------------------------------
>
> what to do?
> Thanks in advance.
>
> Regards
> RiskyCoder

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to