Resizing ui components

Put your problem here if it does not fit any of the other categories.

Resizing ui components

Postby chitgoks » Tue Mar 11, 2008 3:09 am

hi this is my xml. the width of each cell is set to 50%. i wish to set it at like 30% and 70%

also, i want to set the height of the text field and width/height of the button. ive set layout_height to even px values but it has no effect. anyone got ideas? please advise. thanks

<TableLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_alignParentBottom="true"
android:stretchColumns="*">

<TableRow>
<TextView android:layout_width="fill_parent" android:layout_height="20px" android:text="firstname"/>
<EditText
android:textSize="12px"
android:editable="true"
android:autoText="true"
android:maxLength="50"
android:singleLine="true"
android:layout_width="fill_parent"
android:layout_height="20px"
/>
</TableRow>

<TableRow>
<Button android:id="@+id/go" android:text="@string/go_button_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:paddingTop="1dip" android:paddingBottom="1dip" />
</TableRow>

</TableLayout>

</LinearLayout>
Website/Java Games: http://www.chitgoks.com
Blogs:
http://tech.chitgoks.com
http://wuhtevah.chitgoks.com
http://disneyusa.blogspot.com
chitgoks
Developer
Developer
 
Posts: 36
Joined: Tue Mar 11, 2008 3:06 am

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 9 guests