dynamically add view to view flipper

by Andy Droid » Sat, 05 Sep 2009 09:38:57 GMT

Sponsored Links
 Trying to dynamically add a view to a ViewFlipper.  I want to extend
ViewFlipper so I can modify it.  Here is the code.  The child does get
added, but it doesn't show up.  Any ideas?  thanks

public class DCMFlipper extends ViewFlipper {

        DCMFlipper(Context context){
                TextView tv = new TextView(context);
                tv.setLayoutParams(new ViewGroup.LayoutParams
                tv.setText("THIS IS A TEST");

dynamically add view to view flipper

by nimph » Sat, 05 Sep 2009 09:50:52 GMT

 Something like this should do it:

     setDisplayedChild(getDisplayedChild() + 1);



Sponsored Links

Other Threads

1. Augmented Reality

sorry, I did not learn to write English.

I wonder if someone is developing or studying about augmented reality. known 
*Qualcomm's SDK* or Wikitude API ?

I want someone to discuss and share ideas.


2. when paid apps will be available to buy in greece ?

when paid apps will be available  to buy in greece ?

if i live in greece can i make paid apps and sell them (via android
marketplace) ?



3. Update WTS: nexian journey dgn/ tanpa paket 3

4. PAGING User Milestone/Droid : Milestone gw error.. need Help..

5. how to avoid cut off of words in TextView

6. [WTA] Aplikasi Aktif, tapi saya tak mengakrifkanya. .

7. Android SDK and AVD Manager - permission denied: connect