Results 1 to 1 of 1
Thread: Rounded Rectangle
- 05-27-2010, 04:06 PM #1
Member
- Join Date
- Oct 2009
- Location
- Rotterdam
- Posts
- 52
- Rep Power
- 0
Rounded Rectangle
Hi
Is there a way to turn the rectangular view in the attachment into a nice rounded rectangle. Actually it's two rounded rectangles (one in the other).
The XML that generates this view is as follows:
The view is meant to be generated by the inflate() method to be placed in a larger view.XML Code:<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:orientation="horizontal" android:layout_margin="5px" android:background="#999" android:layout_height="50px" android:gravity="center_vertical" > <TextView android:textColor="#000" android:layout_height="fill_parent" android:layout_width="100px" android:gravity="center_vertical" android:text="TextView" > </TextView> <LinearLayout android:layout_width="wrap_content" android:layout_margin="5px" android:background="#666" android:layout_height="30px" android:gravity="center_vertical" > <TextView android:textColor="#FF0" android:layout_height="fill_parent" android:layout_width="75px" android:gravity="center_vertical" android:text="TextView" > </TextView> <ImageView android:layout_width="16px" android:layout_height="16px" > </ImageView> </LinearLayout> </LinearLayout>
I tried searching for the answer, but the answers are all very confusing.
I hope it's possible, since the layout would be much nicer this way :DLast edited by Arnold; 05-27-2010 at 04:10 PM.
Similar Threads
-
non-rectangle JPanel
By itaipee in forum AWT / SwingReplies: 4Last Post: 04-30-2009, 11:58 PM -
To get the points on the perimeter of a Rounded Rectangle
By rashibahal in forum New To JavaReplies: 6Last Post: 06-12-2008, 09:14 AM -
Rectangle Intersection
By Gwindow in forum Java 2DReplies: 1Last Post: 04-24-2008, 03:53 PM -
help with rectangle class
By darkgt in forum New To JavaReplies: 7Last Post: 11-14-2007, 06:19 PM -
Rectangle with rounded edges??
By orchid in forum Java 2DReplies: 1Last Post: 05-10-2007, 02:31 AM


LinkBack URL
About LinkBacks

Bookmarks