Android :: Scrolling A ListView Changes Everything From White To Black
Jun 10, 2010
I have a custom list view and I want the background of the list to be white, so I do something like this which works great.
The problem is when you scroll the list the background of all the list items changes to black, which looks horrible.
I tried in my list view setting the background color to white. When I inflate the view I also tried setting the background color to white:
Both of these fix the problem of the scrolling background color, but now the item doesn't appear to be clickable even though it is. What I mean by that is the onClick still works fine, but the background doesn't flash to orange to let the user know he clicked it.
How can I have a white background in a list view, that stays white while scrolling, and does the normal list acitvity orange click background?
I have created a specific List which exists out of the following elements to create a scrollable list with every row containing a Image on the left side and some text on the right side.As long as the screen is shown statically (as in no movement) it will be shown correctly, but when I start scrolling through the list the background of the row-item (an "icon" as can be shown in the code) will be shown corretcly but the background of the "root" layout will become completely black when the scrolling stops the background will, most of the times, get back it's color.As I test I also added a TextView in that root-element with the same background, this one will detain it's color when the List is scrolled.
There must be a way to do this. How can you tell a ListView that has a header to not scroll it when the user scrolls the contents? I want it to stay in a "stuck" position so that the user can always see what column the content applies to.
I'm using a ListView with a transparent background. It works fine in Android 1.5 & 1.6, but in Android 2.0 and later, the ListView background turns white while scrolling. I want it to stay transparent, just like in 1.5 & 1.6.
Does anyone know what's going on, or better yet, how I can get this working correctly?
I have the beautiful weather widget on my home screen with the clock... Now I want the clock color to go from white to black, but for some reason it stays white even when I change font color to black in the appearance panel. I don't want to change skins as I like this particular clock.. Anyway to do this?
Well I managed to get my hands on an X from my local VZW store this morning. First impression of the screen is that it is very washed out when compared to my old Droid. Side by side, the original Droid shows colors very vividly while the Droid X almost looks like it just made it past black and white. Just wanted to get some opinions on the screen from others. I also managed to play with a Samsung Vibrant at a T-mobile store and it was very beautiful, almost makes me want to return the X and wait for the fascinate to come out on VZW.
Last night i was on the Ebay app on my desire i finished looking at some items i sold then i sat it down to let it charge. a few minutes later i got a text or email so i push the power button on top and this is what i saw.. Sorry for the quality. I have no idea what has caused this. I left the battery out over night and it still does it. I can still hear notifications and what not just cant see anything. The phone is less than a month old. I have never dropped it or anything. Its flawless, not a scratch on it. It seems like every time i get a new phone something odd like this happens to it. I also have been hearing alot of android phones have been causing ppl problems. I believe i can get it fixed through warranty. Has anyone have a clue what caused this? is it a hardware or software issue?
Verizon just sent me my new Eris after mine decided to stop connecting to google. Maybe I never noticed this before, or maybe it is a defect. But, if you go to an all white screen, do you see black pixels spread out evenly like a grid on your screen?
Currently running Adamz smoked glass theme, but the clock in the notification bar is black. Is there something out there that would change it? I've searched on the "other board" and read his whole thread, and someone even mentions it, but no answer that I saw.
What are options for using the web browser with white text on black? I really want this option because it is so much easier on the eyes and better for battery as well. I've tried this option in the e-reader for reading and it makes a world of difference although its something to get used to a bit.
I have had my Android since February, and finding a calendar that works for me has been a big problem - so, I decided to join this forum.My problems are two-fold.
1 - I have a Samsung Moment, and the calendar is black with white letters. It is VERY hard to read. Is there a way to change the color?
2 - Entering events takes so long that I usually just write an appointment on a piece of paper and enter it through Outlook later.
Is there an app that anybody can think of that allows a user to enter an event just by touching the screen and typing? Like Palm or even Outlook allows? That is so easy. I've tried IRT Calendar, Jorte, and various widgets, but nothing makes entering events easier. They all fix my first problem - they make it easier to read.. I can't stand the process of adding "new event", then selecting the date, time, naming the event, etc.
last week i tried to root my HTC and all sudden the camera turned black and white.
so i reset the phone to the defult and i still have the same problem.and an application called " superuser " haven't been deleted.also the software version is 2.2, and i tried to update but i couldn't!
Wasn't sure where to post this, because it is Epic specific with the AMOLED screen.Anyway, my e-mail is on Gmail, but the default white background / black text isn't friendly to the Epic display and battery life. Tried to find settings on the Epic, but there aren't any.
When I try to run the app Neocore my moment screen gets all black and white and the only thing that shows up are squares, I can't even see a picture of any kind. I don't know what else to do and also when I run the game raging thunder I get maybe 5 fps to the game. Can someone explain to me what is going on? Is it possible that my hardware on the phone is defective or maybe the update I got from samsung for the 2.1 is not gonna work with it?
I just unlocked/rooted/installed Cyanogen on my Motorola Atrix. I'm looking for a theme that will make menus black-on-white instead of the default white-on-black. The closest that I've found is the JAMT White theme, but the settings screen is still all white-on-black, even in the paid version.
I'm trying to make a layout that is something similar to how the android market is...where say under comments there is what appears to be a ListView but it does not scroll (the whole page scroll but not the comments). I'm not sure if its even a ListView but I want something that looks like the list view (ie. have those divider bars and what not but NOT SCROLLABLE). There are people suggesting to use a LinearLayout instead of a ListView but I also what the items to be clickable and open a new activity. Please help?
My current layout tree is like so <LinearLayout> <ScrollView> <RelativeLayout>
I am looking to put content inside the RelativeLayout.
I have a ListView with custom rows. When any of these rows is clicked, the ListView's data is regenerated. I'd like the list to scroll back to the top when this happens.
I initially tried using setSelection(0) in each row's OnClickListener to achieve this but was unsuccessful (I believe because the ListView loses its scroll position when its data is invalidated - so my call to setSelection is undone. I still don't understand how the ListView decides where to scroll to after invalidation, though).
The only working solution I know of was given by Romain Guy here: http://groups.google.com/group/android-developers/browse_thread/thread/127ca57414035301
It involves (View.post)ing the call to _listView.setSelection(0). I found this to perform quite poorly. The newly generated list shows up with its scroll location unchanged and there is a considerable delay before it scrolls back to the top.
Is there any better way to achieve this functionality?
Droid x has a bright white header (top banner area on the screen that displays the time, reception, and other icons) that stands out. I'm not too familiar with android but is there a way to change this to black similar to HTC phones? are there apps in the marketplace?