This xml in my layout file displays a line...
<ImageView android:layout_width="320dp"
android:layout_height="2dp"
android:background="@drawable/bg_line"/>
This code in my activity fails (notice the similarity to the xml above)....
ImageView lbl=new ImageView(this);
lbl.setLayoutParams(new LayoutParams(320,2));
lbl.setBackgroundResource(R.drawable.bg_line);
layout.addView(lbl);
All of my other code generated views display fine, just the line doesn't.
What gives?
--
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