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){
super(context);
TextView tv = new TextView(context);
tv.setLayoutParams(new ViewGroup.LayoutParams
(ViewGroup.LayoutParams.WRAP_CONTENT,ViewGroup.LayoutParams.FILL_PARENT));
tv.setTextColor(150);
tv.setText("THIS IS A TEST");
this.addView(tv);
}
}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---