I'm looking for a way to apply some attributes in my views but without using xml file.
Using xml Syntax Highlighting
- <LinearLayout
- id="@+id/widget25"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"
- xmlns:android="http://schemas.android.com/apk/res/android"
- >
- <AnalogClock
- id="@+id/widget28"
- android:layout_width="50px"
- android:layout_height="50px"
- android:layout_gravity="center_vertical"
- />
- <TimePicker
- id="@+id/widget29"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_gravity="center_vertical"
- />
- </LinearLayout>
Parsed in 0.002 seconds, using GeSHi 1.0.8.4
Here is the XML code of what i'm trying to do in java. Mainly the android:layout_gravity="center_vertical" of the time picker and the android:layout_width="fill_parent" of the linear layout.
Anyone can help me ?
Thanks
Regards, Agent00





.