Friday, August 20, 2010

[android-developers] Re: Layout Problem in different screen size

<LinearLayout
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<LinearLayout
android:orientation="vertical"
<!-- android:layout_width="fill_parent" -->
android:layout_height="wrap_content"
android:layout_weight="3"
>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/tv1"
android:textColor="#FFFFFF"
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/tv2"
android:textColor="#FFFFFF"
/>
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/tv3"
android:textColor="#FFFFFF"
/>
</LinearLayout>
<LinearLayout <!-- empty layout -->
android:orientation="vertical"
<!-- android:layout_width="fill_parent" -->
android:layout_height="wrap_content"
android:layout_weight="7"
>
</LinearLayout>
</LinearLayout>

It just my thought.. not checked in code.

On 8월20일, 오후6시09분, CMF <manf...@gmail.com> wrote:
> I have a linearlayout below, i want something similar to
> android:layout_width="30%"
> does anyone know that?
>
> <LinearLayout
> android:orientation="vertical"
> android:layout_width="fill_parent"
> android:layout_height="wrap_content"
> >
> <TextView
> android:layout_width="fill_parent"
> android:layout_height="wrap_content"
> android:id="@+id/tv1"
> android:textColor="#FFFFFF"
> />
> <TextView
> android:layout_width="fill_parent"
> android:layout_height="wrap_content"
> android:id="@+id/tv2"
> android:textColor="#FFFFFF"
> />
> <TextView
> android:layout_width="fill_parent"
> android:layout_height="wrap_content"
> android:id="@+id/tv3"
> android:textColor="#FFFFFF"
> />
> </LinearLayout>

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate