Hi,
I need to programm this XML in JAVA. Some I figured out, some not. Can
you help me on the missing ones?
<TextView android:layout_width="150px"
android:layout_height="wrap_content"
android:text="Bladidadi"
android:layout_gravity="center_vertical"
android:textColor="#ffffff" />
TextView tv = new TextView(this);
//android:layout_width="150px"
tv.setWidth(150);
//android:layout_height="wrap_content"
???
//android:text="Bladidadi"
tv.setText("Bladidadi");
//android:layout_gravity="center_vertical"
tv.setGravity(Gravity.CENTER_VERTICAL);
//android:textColor="#ffffff"
tv.setTextColor(Color.rgb(0xff, 0xff,0xff)); // tv.setTextColor
(0xffffff) doesn't work somehow
Greetings,
DaRolla
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---