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. Diffrece Between Android Kernel and Linux Kernel

Hi all

I want to know diffrence beween android kernel and linux kernel.
Can any one give me some information regarding that?

Thank you
Pankaj Gadhiya

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: 

2. Oot jogja numpang ngobrol...BConnect Tawarkan AHA

Ane pogung ..

Tadi habis maen ke gadget plus monjali

-- 
"Indonesian Android Community [id-android]" 

3. Streaming audio AAC format

4. WTT Motorola Milestone dengan Nexus 1

5. CyanogenMod6-test0.

6. OpenVG support in android

7. Handset Android apa yang cukup powerful untuk bisa buka file excel 10-15mb