Hi,
thanks for replay, but its not reflecting in my case ---
I want to set the height of ListView = 330 (in emulator case) i.e 65% of
total view (height)
ListView l1 = (ListView) findViewById(R.id.ListView01);
l1.setAdapter(new EfficientAdapter(this));
l1.setMinimumHeight(list_height);
list_height =getWindowManager().getDefaultDisplay().getHeight();
list_height = list_height*65/100;
my xml file -
<ListView android:id="@+id/ListView01"
android:layout_height="330px"
android:layout_width="fill_parent">
</ListView>
Q. my question is - how to set the ListView height through the code, not thr
the xml.
On Thu, Sep 16, 2010 at 5:23 PM, grace <[email protected]> wrote:
> getWindowManager().getDefaultDisplay().getWidth() and
> getWindowManager().getDefaultDisplay().getHeight()
>
> On Sep 16, 3:20 pm, "RKJ (Android developer)" <[email protected]>
> wrote:
> > Hi all,
> >
> > I want to get the height & width of emulator (which will reflect in
> > device also).
> >
> > --RKJ
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<android-developers%[email protected]>
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
--
Thanks & Regards
Rakesh Kumar Jha
Software Developer
Symphony Services Corp (India) Pvt Ltd
Bangalore
(O) +918030273740
(R) +919886336619
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en