Tab Event

by Pinki » Fri, 23 Apr 2010 08:01:58 GMT


Sponsored Links
 Hi I want to add content to linear layout dynamically when i click on
tab .For that purpose i use the following code to create a new Linear
layout and new text view .
LinearLayout ll = new LinearLayout(this);
                                ll.setId(i);
                                ll.setLayoutParams(new
LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT));
                                ll.setPadding(0, 0, 0, 5);
                                ll.setClickable(true);

TextView name = new TextView(this);

                        name.setText(user_peoples.get(j).toString());
                                name.setWidth(100);
                                name.setId(++i);
                                name.setClickable(true);
                                name.setLayoutParams(new
LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT));

But it is not worked ,Give me some suggestion.Here Null Pointer
Exception is coming.Thanks in advance

--



Other Threads

1. mysql connection using Ksoap2 API

I am supposed to retrieve data from mysql database at server from
andoid mobile. I guess ksoap2 api would be suitable for it. I tried
alot, but found the enhanced copies of API's. Please reffer me to the
proper link of ksoap2 API, and also how to retrieve data.

-- 

2. help in android call logs

hi all,
please tell me how can i get call history in android app


-- 
Thanks
Ashutosh Mohle
Software Engineer
CS-KNIT-2010



Praying for the peace and love for all

-- 

3. Is there a WebDav client for Android

4. will the android emulator support opengles 2.0 in the future?

5. 1380 Paid Applications in One Free Torrent then How to SELL it?

6. TextView Html.ImageGetter Widget

7. which jar file can be used to play an audio file in android