Android :: Create Rectangle Shape With Only Two Rounded Edges?
Oct 14, 2010
I can create a shape that is a rectangle with all edges rounded. However, what I'm wanting is a rectangle shape with only 2 of the edges rounded. Is this possible?
I'm essentially hacking together a ListView that looks like a bubble with rounded edges. I'm looking to add a header that has the two top edges rounded and a footer with the two bottom edges rounded.
View 4 Replies
Jan 27, 2009
I'm not very experienced in Java. Is there an easy possibility to get a border and round edges around a LinearLayout? (perhaps with XML parameters)
Or do I have to draw my own widgets.
View 3 Replies
View Related
Feb 16, 2010
I have a small project in which I download images from Internet in the form of drawable and use them in Imageview for which I have provided functionality similar to an Imagebutton but without the gray edges. The question is that is there any functionality in Android (similar to IPhone) by which we can crop the drawable from edges to make them rounded edged drawable. Even if its a "not-tested-neither-recommended" method, do let me know. I would like to work on this a bit.
View 1 Replies
View Related
May 20, 2010
Does anyone know how to obtain the rounded rectangle effect from this picture? http://developer.android.com/intl/de/resources/articles/images/list_f...
Is it somewhere in samples?
View 3 Replies
View Related
Sep 22, 2010
Just wondering what that's all about I know typically the factory droid box is square and little. The box I got is long and rectangle. Its the original box. But why is it different from others?
View 15 Replies
View Related
Jun 16, 2010
I want to make a shape with with left-top rounded corner and left-bottom rounded corner...
View 2 Replies
View Related
Jul 25, 2009
I have got a problem. How can i create the following rectangle by using Rect class? I mean Diagonal Rectangle. Is it possible through Rect class?? if not then any other way?
View 4 Replies
View Related
Sep 5, 2010
Is there any way to create EditText that has rounded corners?
View 2 Replies
View Related
Nov 5, 2009
I was wondering if there was a way to create a ListView with rounded corners in Android...
View 2 Replies
View Related
Jun 21, 2010
I want to have a elmenent with a 2 color border outline. I can do a single color outline using the element, but this only allows me to draw a single line. I tried using 2 elements within my but that didnt work either. Is there a way to either draw a shape within a shape or draw 2 lines around my shape (which has rounded corners btw).
View 3 Replies
View Related
Oct 15, 2010
I developed my application and tested it on android emulator 1.6, 2.1 & 2.2 and on HTC Magic
its running PERFECTLY and the gui components look very neat...
However, when I tested it on Sony Ericsson Xperia X10 the gui components are looking fuzzy........
View 1 Replies
View Related
Nov 9, 2010
Scrollable views such as the ListView have a fade out of the content along the edges where there is more content in that direction. How can I turn this fading off? I know you can change the cacheColorHint as discussed here: http://developer.android.com/resources/articles/listview-backgrounds.html but that is not what I am looking for and will not achieve what I am looking for in this case.
I want to disable the fade completely or be able to reduce the size and or transparency of it. Is this possible?
View 1 Replies
View Related
Aug 4, 2009
I have just started looking at developing for Google Android and want to draw a rectangle with some text in it that I then want to position where i want on screen. I have got as far as drawing a rectangle on screen using a ShapeDrawable and RectShape I now want to put some text in the rectangle. How can I best do this? Should I be looking at somehow adding a textView to the RectShape? Or am i going down the the wrong avenue completely?
View 3 Replies
View Related
Sep 16, 2010
I need to setup vertices for a rectangle - I have a square example, how would I modify it to get a rectangle 5 times the width and half the height?
CODE:.......
Okay so I think I setup the vertices correctly but now I need to setup the normals textures and indices:
CODE:.........
How to set these up:
CODE:...............
View 1 Replies
View Related
Feb 9, 2010
How to draw a scalable rectangle around a bitmap And such that
1) The rectangle should scale based on the size of my bitmap.
2) The colour of my rectangle should change on my input.
View 2 Replies
View Related
Jun 14, 2010
Does the desire come with a screen protector already on it as on the edges of mine have started to bubble up. It does look like it has one, but can it be replaced?
View 3 Replies
View Related
Sep 4, 2010
Is there some setting that I should know about to display web pages correctly? Some sites will be all squished on the screen ( multiple panels will be overlapped )
Others have the sides of the screen cut off so that the scroll bar doesn't show up.
Changing the display resolution doesn't seem to help either.
( This is when viewing full pages, not mobile pages )
View 1 Replies
View Related
Apr 11, 2009
Is there any convenient method to draw a string (custom true type font) as big is possible inside a supplied rectangle or to calculate the font size of a paint object based on a string and some rectangle dimensions.
View 3 Replies
View Related
Jul 24, 2010
i have an activity and in the activity i have some buttons and textviews, and i would like to draw a rectangle with text inside. i saw some examples online but the all say to create my on view , override onDraw and the set this view as my layout, but i have my layout already.
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
TextView baramzona = (TextView) findViewById(R.id.TextView01);
baramzona.setText(R.string.baram_zona_textview);
final Button pocniparking = (Button) findViewById(R.id.ButtonStart);
final TextView momentalnazona = (TextView) findViewById(R.id.TextView02);
//momentalnazona.setText("Моментално се наоѓате во зоната");
pocniparking.setText(R.string.btn_Start_Parking);
pocniparking.setEnabled(false);
}
}
View 1 Replies
View Related
Feb 9, 2010
To draw a scalable rectangle around a bitmap
And such that
1) The rectangle should scale based on the size of my bitmap
2) The colour of my rectangle should change on my input
View 2 Replies
View Related
Sep 17, 2010
I am a beginner to android. I am building an application to work with QR code.i downloaded the source code for zxing1.5 from the link http://code.google.com/p/zxing/downloads/list. When i try to load application with different devices i found that the framing rectangle to be in various sizes in different place,unfit to the device.
View 1 Replies
View Related
May 21, 2010
I send my plant inventory spreadsheet to my gmail account each morning. It has six tabs (pages) of info on it.
I can't find the tabs when I view it on my hero. I've scrolled up/down/left /right to all edges and the tabs don't appear.
View 3 Replies
View Related
Nov 2, 2010
I'm using the following to draw rounded-corner rectangles in my Android application and it seems to be working alright but with one minor problem:
CODE:.......
(Adding labels to the rectF's defined above follows) ...
The strange thing is that the two ends of the rectangle aren't rounded over the same. The left-size quarter circles are noticeably smaller than the ones on the right.
Anybody experienced anything similar? It's weird enough that I might change my mind about the round corners if I can't do anything about it.... And if I knew how to do a screen capture from my Android, I would.
The rectangles in question are 78 pixels wide and 48 tall, if that helps (and since ykatchou may be onto something).
View 1 Replies
View Related
Oct 27, 2010
I want a RelativeLayout to have a rounded corner just like we have it in the Iphone.Please let me know how can we do this in Android.
View 2 Replies
View Related
Mar 17, 2010
In android, ImageView is a rectangle by default. Is it possible to make it a rounded rectangle (clipped off all 4 corners of my Bitmap to be rounded rectangles) in the ImageView? If yes, can you please tell me now can I do that?
View 4 Replies
View Related
Sep 28, 2010
The following code snippet draws a red rectangle:
RectF rectangle = new RectF(50, 100, 100, 50);
Paint paint = new Paint();
paint.setColor(Color.RED);
canvas.drawRoundRect(rectangle, 0, 0, paint);
However if i change rx and ry both to a positive value, say 5, than nothing is shown. Any ideas?
View 1 Replies
View Related
Apr 6, 2010
I am having a gridview. when i select it, the selector(orange color) will shows like square. i want to set that as rounded corners. how to do that?
View 1 Replies
View Related
Nov 10, 2009
Will messing around with my Droid, which I love!, I have noticed that the rectangle piece above the batter door gets very warm, and sometimes hot. Is this normal or is something wrong here? I have disabled wifi, bt, gps, the sync feature?, and dimmed the screen to low and nothing seems to fix it. It happens all the time, no matter what I am doing.
View 7 Replies
View Related
Sep 3, 2010
I like to have a ViewGroup (like LinearLayout) that has rounded angles. The angle can cover content of the ViewGroup.
View 6 Replies
View Related
Jun 30, 2010
I have a specific drawable that I use as background in my app. It is not a solid color.
Now I want to add rounded corners to this drawable.
I only found the rounded corner available in a shape with a gradient or a solid color as a background but not another drawable.
Is there another easy way of adding rounded corners to a drawable?
View 3 Replies
View Related