Hi Kalyan,

To control the position of the image, adjust the x and y-co-ordinate in the
xml file.

Thanks,
Dolan.

On Sun, Jun 1, 2008 at 11:14 PM, Kalyan <[EMAIL PROTECTED]> wrote:

>
> Hi,
>
> I created a simple List view.Now i want to control the width of the
> List view.
> I have the following doubts:
> 1)How can i get the actual size of the screen used by the application.
> Any one has example code how to use doLayout,onMeasure. I am quite
> confused when actually we set the size of the layout. I want to resize
> my LinearLayout which contains the listview,before actually appending
> the list elements to it.
>
> Here, is my main.xml
>
> <?xml version="1.0" encoding="utf-8"?>
> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/
> android"
>    android:id="@+id/container"
>    android:layout_width="fill_parent"
>    android:layout_height="fill_parent">
> <LinearLayout
>     android:id="@+id/listlayout"
>    android:orientation="vertical"
>    android:layout_width="fill_parent"
>    android:layout_height="fill_parent"
>    >
>  <ListView android:id="@+id/android:list"
>        android:layout_height="fill_parent"
>         android:layout_width="fill_parent"
>        android:layout_weight="0"/>
> </LinearLayout>
>
> </FrameLayout>
>
> 2)After resizing the LinearLayout ,if some conditions are satisfied
> then in the remaing screen space to add another Image viewi.e to the
> FrameLayout. How can i control the position of the image,to be
> placed.
>
> Am i in the right path or do I need to change my Layout structure??
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to android-beginners@googlegroups.com
To unsubscribe from this group, send email to
[EMAIL PROTECTED]
Announcing the new M5 SDK!
http://android-developers.blogspot.com/2008/02/android-sdk-m5-rc14-now-available.html
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to