Android :: Possibility To Get Border Around A LinearLayout / Rounded Edges?

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.

Android :: Possibility to get Border around a LinearLayout / rounded edges?


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 View Related

Android :: Drawable Images - Cropping Edges To Make Rounded

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

Android :: TextView Inside LinearLayout Stretches The LinearLayout

Aug 21, 2010

If I have 2 LinearLayouts split %50/%50 everything is fine. Weights are 1 and 1. As soon as I add a TextView inside the top LinearLayout, it stretches that layout. I use "wrap_content" as the documentation says I should when it comes to weights. As you can see the red and green should be split evenly and text on grey background should be inside red box.

Here is the code:..............

Now if I switch to "fill parent" as follows it actually works but it creates another problem. Here is the code (so far so good):

So looking at above we were forced to use "fill_parent" and we would think like we fixed the problem but here is the problem if we are using "fill_parent" (I took out the textview just to show the problem, textview doesnt make the problem go away anyways):

As you can see I assign the weights 3 (top red) and 2 (bottom green) but what actually happens is they get flipped: The red becomes 2 and bottom becomes 3. Just measure the pixels too see.

Here are the results of the 3 codes: http://imgur.com/iVt8g.jpg

View 4 Replies View Related

Android :: Bottom Of One LinearLayout Being Hidden By Other LinearLayout

May 25, 2010

I have a RelativeLayout that has two LinearLayouts in it. One is a bunch of TextViews and EditTexts that make up a form and the other is a ButtonBar that submits the form.

anyways, everything looks great in portrait, but when i switch to landscape mode the bottom TextView/EditText element is being hidden by the buttonbar.

screenshot to show the problem. as you can see some of the "email" textview and all of the email edit text are being hidden by button bar.

http://i45.tinypic.com/2dt7qmt.jpg

and xml:

CODE:............................

View 5 Replies View Related

Android :: Weird Gui Component Edges?

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

Android :: Disable / Edit Fading That A List View Has At Its Edges?

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

Android :: LinearLayout In LinearLayout

Jun 25, 2009

Why is the following code causing an exception? The Code throws a "mBaselineAlignedChildIndex of LinearLayout set to an index that is out of bounds" exception.

CODE:..............

If l2 is dont added to l1 than it works.

View 8 Replies View Related

HTC Desire :: Way To Replace Bubble On Edges?

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

HTC EVO 4G : Web Pages Clipped On Edges / Squished Together

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

Android :: Possibility Of A Curved Gallery

Sep 19, 2010

Is it possible to change the default arrangement of the Android Gallery? What i meant is can we make the Gallery in a curved path, where the images will be along the curved path and the same time it has all the properties of the Android gallery(which appears to be center locked and horizontal right now..)?

View 4 Replies View Related

Android :: Looking For Possibility Of Extend C2DM To Other Platform

Jul 7, 2010

We are looking for possibility of extend C2DM to other platform such as WM. And want to check the technology or protocol behind android 2.2 Cloud to Device Messaging.

View 2 Replies View Related

Android :: Possibility To Pause&resume A TimerTask ?

Jul 30, 2010

I'm calling this tasks:

CODE:.........

And here are the two TimerTasks:

CODE:........

As you can see, I just call a method after 5 resp. 10 seconds. From time to time I would like to pause the "countdown". This means i want that the time until the 5 seconds are passed isn't running anymore. And then in a later point in time, I would like to resume it. How can I achieve that?

View 1 Replies View Related

Sprint HTC Hero :: Excel Spreadsheet - Scrolled Up/down/left /right To All Edges And The Tabs Don't Appear

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

Samsung Captivate :: Is There A Possibility To Run Applets On Android / Blackberry?

Mar 12, 2010

This is what the Java site www.java.com says: "KVM, the virtual machine for mobile devices, is the counterpart of JVM (Java virtual machine). It is used to run applets and applications written with Java technology on mobile devices. KVM must be installed by the manufacturer. It is NOT available for download or installation by consumers". Now Android has a customized virtual machine called DVM (Dalvik Virtual Machine). Can we compare it with KVM? Wonder if we can further reprogram DVM to incorporate features of KVM to run applets on Android? Same goes for Blacberry, is there a possibility?

View 2 Replies View Related

Android :: Strange Looking Rounded Rectangles?

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

Android :: Have Rounded RelativeLayout As In Iphone?

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

General :: Call Button Broken - Any Possibility To Install Android

May 13, 2012

I have a HTC HD2 which had WinMo before. Long time ago I changed it to Android. Couple of days ago, I wanted to change to a new Android version so I deleted the whole OS on my Android to install a new one.I got stuck on the Magdlr option because I couldn't go select any option. I realized then, that my call button is broken! how it is possible to install Android, because WinMo sucks!!

View 4 Replies View Related

Android :: Obtain Rounded Rectangle For TextView?

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

Android :: Make An ImageView To Have Rounded Corners?

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

Android :: Way To Create EditText With Rounded Corners

Sep 5, 2010

Is there any way to create EditText that has rounded corners?

View 2 Replies View Related

Android :: DrawRoundRect Not Showing Rounded Corners - Nothing At All / Fix It

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

Android : Gridview Selector - Rounded Corners

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

Android :: How To Make Shape With Left-top Rounded Corner?

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

Android :: ViewGroup With Rounded Angles - Also Cover Content

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

Android :: Add Rounded Corner To A Drawable Using As A Background In Droid?

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

Android :: Reuse Hero Rounded List Item Look?

Aug 30, 2009

I've been asked to make an app that has a list with items looking similar to this snapshot from Hero: http://www.flickr.com/photos/jaxxdotorg/3640222441/in/set-72157619952...Is there a way to reuse this in any way or do I have to re-design it from scratch?

View 5 Replies View Related

Android :: Create ListView With Rounded Corners In Pohne?

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

Android :: Give Images Rounded Corners In Droid?

Nov 10, 2009

I would like to change an image I loaded to have round corners.

Any hints, tutorials, best practices you know of?

View 3 Replies View Related

HTC EVO 4G :: Possibility To Watch ABC TV Shows Episodes?

Jun 14, 2010

I've been trying to watch ABC TV show episodes on my Evo but it just sits there with the "Loading" screen. Anyone able to watch ABC.com TV shows?

View 3 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved