How to remove button line in Spinner? - android

I used a spinner to display a list:
At the bottom of the list, there is this grey line. How i can remove it programatically??
Thanks

That only seems to appear on the HTC Evo, I'm not sure why it's there, but it's not something that I know of a work around for. If you run the same app on another device it should be fine. Hopefully this is something that will be fixed in an update.

Related

How to debug list view problems?

I have a list view with some complex layouts.
Some parts of the layouts are set visible/adjusted at runtime (i.e. not everything set by the xml).
It has caught my attention than in some "rare" cases there is a specific part (the same in all cases) that is rendered visually either a few seconds after looking at the list item or if I scroll down the list and then scoll back up again.
What I observe is that it seems like after a few seconds the list item is "redrawn" and the item suddenly appears.
I have added debug output to check for its visibility and according to the console log, the item is visible when the getView is called for that the first time.
So I have no idea what the issue might be.
How can I debug issues like this?
There is an option in the developer pane on your cellphone that flash every time a piece of screen change.
You can also use something like this https://github.com/JakeWharton/scalpel
If you are using an android device you can activate 'developer options' (you'll have to google how to do this for your device as it varies) like Luca said. These are really cool because you can see where changes appear on the screen and add layout borders etc which make it easier to see exactly what is happening. They can be really useful for debugging sometimes!
I had a similar problem and I tried removing most of my code and adding chunks back in to make sure they were working and eventually you should be able to locate at least the general area where the problem is.
Good luck! Sometimes these things can take a while!

Android ICS widgets - listviews goes blank randomly (when launcher restarts?) RemoteviesService bug?

I've widget with listview inside and few times per day the listview items just disappears. I find out that it can be due to launcher restart - so I tried a little test. I manually restarted launcher, and it just confirmed my suspicion - it's definitely because of launcher restart.
How to deal with this? The rest of widget (buttons, listeners, ...) are working, just listview items disappear and I can't even see empty_list layout, that I defined - that's why i must add to my widget manual refresh button, but it's not very good solution...
The problem you are encounterung seems to be a known issue: see link here: http://code.google.com/p/android/issues/detail?id=28216
There you can find some workaround on how to fix this.
ok except that it's ICS bug, it's partially also my fault - just always recreate widget content in onUpdate method and it will be ok ;)

ListView SectionIndexer's box is transparent

In my app I'm using a listview with a section indexer that displays the letter of the current selection. It's fine on a lot of devices, but when I use my app on a Galaxy Tab running Android 3.2 the letter is displayed without the little box. I don't know how to make it appear or change the color of this letter.
I tried to use android:textColorPrimary but I didn't find how to use it and I find no sample.
To see my problem, below is a screenshot. If you look carefully, the letter G is in white above the second element of the list.
This is kind of a strange answer, because I fixed it, but I'm not sure why. When I set FastScrollEnable = true later than in the contructor of my derived ListView I get this behaviour aswell. Although, my letter is almost completly off the screen.
I'll probably get downvotes for this answer, but it saved me after 6 hours of prodding around. I noticed it when I removed my prototype code from our main classes to change the FastScrollEnable from outside.

Can you explain the elements on this image

Could you tell me what is the circled element no.1 on this image? The one that look like a submenu, but it seams it's not a submenu.
What does the logo in the top left corner mean?
The selected area consists of
1) list view
The listview contains
1) ImageView at the left
2) textView with image background in the middle
3) imageview at the right
Thanks
Deepak
1st one element is the List View
2nd one is might be the symbol of Android HoneyComb but I am not sure about this..
The little bug in the notification bar means, this device can be used for debugging. It appears when the device is connected to a computer and the Debug option on the device is activated.
The menu you see can be everything as you can define custom layouts. So without the source, you'll never know. I don't think it is a ListView as it would be too cumbersome to implement it in that way.
Number one is a styled ListView.
Number two means that the USB Debug mode is on (and the USB cable is connected)
USB Debug mode is normally used by developers.
the image number 1 looks like list view and image number 2 is status bar(Notification bar)
may be listview, expandable list view, buttons and any kind of view
It look like a bug

Android - Button in Dialog out of screen

I created an AlertDialog which is longer than the actual screen size. Within my AlertDialog I have a ListView which I can scroll down to see all items.
My problem is with my Button: it is half displayed in the bottom of the screen.
Here is what it looks like :
It seems that the button is not considered to be within the View.
What should I do to keep the everything inbound?
Thank you. Leo
EDIT
As you said I might do something weird, I took a closer look at my code before posting you it.
I found that I didn't remove the builder.setMessage() that I used at the beginning. So after removing that line, it worked fine. Now the entire ListView is displayed!
As you said I might do something weird, I took a closer look at my code before posting you it.
I found that I didn't remove the builder.setMessage() that I used at the beginning. So after removing that line, it worked fine. Now the entire ListView is displayed!
Put a set height for your ListView so that the dialog isn't as tall. 80dp or so should be enough to show your button and enough of the ListView

Categories

Resources