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 2.1 problems

Hi,

I have an app on the Android Market, and I've usually tested the app on the
1.6 emulator. Whilst testing on the 2.1 Android version, user login is not
possible.

Why on earth would login be possible on the 1.6 and not on the 2.1?

I am unfamiliar with 2.1. Can anyone from Google shed any light as to where
I should be looking? or is this a bug on the Android 2.1. SDK?

Thanks

-- 

2. how to capture back key event for Popup window

hi,

I have one pop up window which will be launched when user click on an
image view. And I notice when I clicks back key, the pop up window
will disappear.

My question is where this pop up window goes, it it destroyed?

How can I intercept the back key event and do something?

Thanks.

-- 

3. Google I/O Device microSDHC card

4. 雼奠灔: Null Pointer Exception w hen using a button to change layouts

5. NeighboringCellInfo 3G CellID

6. Question about the CTS

7. Stuck Animation