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. Android l25.7 zoom1 / ld

Hi all, i have problem with android into omap zoom1/ldp

it is :
yaffs tragedy: no more eraased blocks
!!!!!!!!! Allocator out !!!!!!!!!!!!!!!!!

any idea to solving this problem?

best regards,
Aldyth M

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

2. ant scripts to build apk file and load it in a emulator?

any sugegstions?

-- 

3. how to show the CPU usage on the real devices?

4. cursor.moveToFirst() blocking UI

5. Salam kenal...

6. Solution : How to install an .apk file from the windows machine onto the development board

7. R: Strange behavior of the panel for developers of Android Market.