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.setPadding(0, 0, 0, 5);

TextView name = new TextView(this);


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


Other Threads

1. Event to know about drag. Not dragging of object

Hello Android,

I want to get drag event(s) when user holds finger on screen and drags
it in any direction. The event need to repeatedly provide new touch
position until finger is released in the form of callbacks. This is
not related to dragging objects.

I could see this drag feature working on home screen of the phone to
move the home screen left and right. But couldn't figure out how it
works. Please provide information on which class and methods to be
referred for this



2. Google market policy spells doom for future app publishers?

At SlideME, we made the same decision on refunds. The reasoning is that
anyone can call their credit card company and say that the app didn't work
and then do a chargeback. This costs the developer $10 and there is no way
you can prove that the app worked. If you have some type of refund policy,
you can avoid these types of charges, which comes out far better for the
developer in the end.



3. Trackball Event

4. Problem with focus

5. RTSP Streaming on g1 phone

6. ListView with the CheckBoxPreference look

7. ACTION_CALL Permission Problem