Hi all,

I am adding listview programmatically.
My code is as follow.

<------- start

LinearLayout llIn2 = new LinearLayout(this);
llIn2.setOrientation(LinearLayout.VERTICAL);

llIn2.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.FILL_PARENT));

ListView lv = new ListView(this);

lv.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT,
LayoutParams.FILL_PARENT));
lv.setAdapter(new ArrayAdapter<String>(getApplicationContext(),
android.R.layout.simple_list_item_1, alPlaces));

llIn2.addView(lv);

this.setContentView(llIn2);

<------end

now i want to change the size and color of text.

[there is know method like lv.settextsize / lv.settextcolor ]

Any kind of help will be grateful

Thanks,
Pawan

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

Reply via email to