On Thu, Jun 30, 2011 at 5:06 AM, fixus <[email protected]> wrote:
> What is it for ?
>
To initialize the view if it's not already.
> For example I would like to put my own adapter in
> diffrect package, class. But I can`t cause getSystemService is from
> ListActivity.
>
No, it's from Context.
> Is this really neaded ?
>
Is what?
> Can I in other class make something liek this ?
>
> ListActivity la = new ListActivity()
> if (v == null) {
> LayoutInflater vi =
> (LayoutInflater)la.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
> v = vi.inflate(R.layout.row, null);
> }
>
Yes - you could have found this out by just trying it ;-)
-------------------------------------------------------------------------------------------------
TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
transit tracking app for Android-powered devices
--
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