[android-beginners] Re: How to position a Image

2008-06-02 Thread Kalyan Kondapally
hi, Thanks for u reply.But i was looking to get the screen size available for our application. regards, Kalyan On Mon, Jun 2, 2008 at 8:33 PM, <[EMAIL PROTECTED]> wrote: > > With this you get the maximum size available off the certain > cellphone. > > As for QVGA that would be 320*240. > > On Jun

[android-beginners] Re: How to position a Image

2008-06-02 Thread jan . monschke
With this you get the maximum size available off the certain cellphone. As for QVGA that would be 320*240. On Jun 2, 4:59 pm, "Kalyan Kondapally" <[EMAIL PROTECTED]> wrote: > Hi, > > Yes.But do we get the screen width available to our appl there.when should I > use that.As i am confused when,our

[android-beginners] Re: How to position a Image

2008-06-02 Thread Kalyan Kondapally
Hi, Yes.But do we get the screen width available to our appl there.when should I use that.As i am confused when,our view is assignedthe height and width.Is it onLayout or onMeasured?? Regards, Kalyan On Mon, Jun 2, 2008 at 8:25 PM, <[EMAIL PROTECTED]> wrote: > > You mean something like this: >

[android-beginners] Re: How to position a Image

2008-06-02 Thread jan . monschke
You mean something like this: WindowManager a = this.getWindowManager(); Display v = a.getDefaultDisplay(); String s = "Height: " + v.getHeight(); --> display height String b = "Widtht: " + v.getWidth(); --> display width ? On Jun 2, 7:23 am, "Kalyan Kondapally"

[android-beginners] Re: How to position a Image

2008-06-01 Thread Kalyan Kondapally
Hi Dolan, I think u miss udestood my Question.I have that in my xml file, before drawing my Layout which contains my list view.I would liek to check for some conditions and depending on it set the width of the layout(I mean reduce it ,not allow it to occupy the whole screen).For this i need to cal

[android-beginners] Re: How to position a Image

2008-06-01 Thread dolan kundu
Hi Kalyan, to set the width in whole screen, use android:layout_width="fill_parent" Thanks, Dolan. On Mon, Jun 2, 2008 at 10:28 AM, Kalyan Kondapally < [EMAIL PROTECTED]> wrote: > Hi Dolan, > > I would like to retrieve the Screen Size so that I could ajust the width of > my Layout and use the re

[android-beginners] Re: How to position a Image

2008-06-01 Thread Kalyan Kondapally
Hi Dolan, I would like to retrieve the Screen Size so that I could ajust the width of my Layout and use the remaining to place another image view. With this it fills the whole screen width isint it?? Regards, Kalyan On Mon, Jun 2, 2008 at 10:23 AM, dolan kundu <[EMAIL PROTECTED]> wrote: > > Hi

[android-beginners] Re: How to position a Image

2008-06-01 Thread dolan kundu
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

[android-beginners] Re: How to position a Image

2008-06-01 Thread dolan kundu
Hi Kalyan, To fix the actual size of the screen, try like this way: android:id="@android:id/list" android:layout_width="fill_parent" android:layout_height="384dip" android:layout_weight="1" android:layout_x ="0px"