I am following the standard example of how to add a RatingBar. To control the number of stars I tried to use android:numStars="5". The problem is that the number of stars doesn't seem to do anything at all. In portrait-layout I get 6 stars and when I flip the phone I get about 10 stars. I tried to set the number of stars in my Activity (myBar.setNumStars(5) ) that loads the xml but there was no success with that option either.
So my question is how do I define my layout so that it will only show five stars? Set numStars doesn't seem to work.
In a layout (linear, vertical) hierarchy I've got several view and one of them is a WebView. Is there a way to let the webview resize itself, to match it's content size? By the way the space left vary from one device to another (emulator vs Milestone vs Hero)..
Whenever I use a RatingBar view in my layout, I suddenly get all kinds of compile errors. I'm using Android 2.0, but I've also tried 2.0.1, and 2.1, without joy. I also get a message:
Shader 'android.graphics.BitmapShader' is not supported in Layout Editor, and an odd warning which may or maynot be related: warning: Ignoring InnerClasses attribute for an anonymous inner class that doesn't come with an associated EnclosingMethod attribute.
I've tried using the RatingBar both within a tablelayout and outside it, but it behaves the same way.
I have a ListView that uses different XML files to create Views and make items out of. One of these XML files contains a RatingBar. Everything displays and looks excellent. I'm trying to attach an onClick handler to the RatingBar to launch a new Activity. My RatingBar is of style ?android:attr/ratingBarStyleSmall; so it's just an indicator (I want the small RatingBar click to take the user to an Activity where they can do various ratings).
My problem is the onClick handler for the RatingBar never gets executed. What makes it more interesting is that I've used the same code to make a LinearLayout clickable and it works fine. My Adapter's getView looks as such:...............
Is there such an app? Its a major PIA to sort through hundreds of findings looking for 5-star apps with a reasonable number of downloads and reviews to qualify it.. An "organizer" of sorts would help a great deal. (non-rooted phone)
I want to add a contact just to my phone and not to my gmail account.Whenever I start to add a contact (phone, 208544.menu, +contact, create new contact,) the next thing it forces me to do is to choose an account to create the new contact under and it lists my 3 gmail accounts.I have no option to just put it on the phone.Any ideas here?We do the same thing on the Incredible but it gives us the gmail account and the phone to choose from but not on the Motorola.
I want to download an image (of unknown size, but which is always roughly square) and display it so that it fills the screen horizontally, and stretches vertically to maintain the aspect ratio of the image, on any screen size. Here is my (non-working) code. It stretches the image horizontally, but not vertically, so it is squashed. Code...
I am displaying a table of values in my android application, and would like the columns to be distributed evenly in terms of size , instead of sizing according to content. Been playing around with stretchColumns but couldn't manage to figure out the right combination.
So I have the full version. I looked around and didn't see an answer. First off, I can't find a contact for the dev, or a FAQ on how to use it. I have had it for a few months and everything is great, but now when I am on the phone in the car on the dock and on my BT, I unclip the phone and it should change to my profile that still has the BT enabled. For some reason, my call screen is still blue (BT), but the handset engages and the bluetooth cuts out.
I have a requirement where few of my image views form border areas of an application, the application will be running on many screen sizes. I'll be creating a uniform image for the smallest size possible, which can be repeated as many times as needed, and still presents the same image. i want the image view to replicate the image contained whenever it is increased.
Perhaps I was able to describe my problem. Is anything like this possible?
I tried 9-patch images, but I couldn't find nice articles on it which could explain how to create useful images with it which could suite my need.
I have a RelativeLayout defined in xml and I call the setContentView(R.layout.relativeLAyout) for displaying in Activity. Now, if I want to resize this RelativeLayout then can it be done and if yes, then can someone let me know how? The inner components can be resized relatively to the parent.
I have a layout in which I resize an image by doing a transformation with prescale. After the scale the image has the right size, but the layout container around it cuts its size of. I want the layout container arround it to show to complete image. I just tried invalidate on the image, the container as well as requestLayout().
What is the best approach when using default Android drawables? Should I use android.R.drawable or should I copy the drawables in my project and use R.drawable?
Is there any risk, that in a newer version of Android, some of the default drawables are removed or resized? Or, affect in some negative way, the look of my app? Also, which of the drawables in the Android source code are considered "stable" and should be relied on?
I'd rather not copy the drawables because I think that the look of the app should be consistent with the Android version used. So, for example, for version 1.6 it should use the default Android bitmaps for version 1.6.
It is so strange.when I take a photo in portrait format on my X it looks perfect, fills the screen and is nice and sharp.The problem is when i go ahead and set that photo as my wallpaper.At that point it pulls up this box that forces me to crop it down and this just kills the quality.things look much more blurry and less sharp.What can I do to have the wallpaper look just like the photo after I snap it?
Can anyone make/find and resize a cool looking DX wallpaper for this? By that I am talking about D-generation X from WWF. I love the Default Wallpaper and the Live Droid one but I think that is killing my batter and D-generation X is a cool logo..Maybe even change the colors from Green to Red..let me know post your cool wallpapers! THIS IS NOT THE WRONG FORUM I HAVE A DROID X TOO.
So I just installed launcher pro and installed my cuztomized docks but now I cant resize my widgets? I want to resize my quick contacts but it will not let me do it. I cant even resize any of my widgets.