I need to programm this XML in JAVA. Some I figured out, some not. Can
you help me on the missing ones?
Using xml Syntax Highlighting
- <TextView android:layout_width="150px"
- android:layout_height="wrap_content"
- android:text="Bladidadi"
- android:layout_gravity="center_vertical"
- android:textColor="#ffffff" />
Parsed in 0.001 seconds, using GeSHi 1.0.8.4
Using java Syntax Highlighting
- 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
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
Greetings,
DaRolla



