Android how not to mark certain view in the row, but not the row itself in listview?

You need to override bindView of your SimpleCursorAdapter: SimpleCursorAdapter myAdapter = new SimpleCursorAdapter(...) { public void bindView(View view, android.content. Context context, Cursor cursor) { final LinearLayout layout = view. FindViewById(R.id.

Somelinearlayout); // Add an onclick handler to the LinearLayout layout. SetOnClickListener(new OnClickListener() { // Add click handler that alters the background }); } }.

Thanks Austin, but i'm afraid I didn't explain myself propely. I don't want the color to change according to the state of the checkbox. My question is about the moment of the click.

For send after I click the row changes its color. – theWizard Jul 28 at 14:01 See my editing - add an onClick or onFocus listener to the linear layout and alter the background accordingly - ie. When in focus you set the background one way and revert it when losing focus.

– Berdon Jul 28 at 14:04.

Set Background of CheckBox too with similar state list.. just like row_state. Xml and probably you can do this..

I also tried not calling the super on the onClick event, and setting the stackFromBottom on the list view from the code, both true and false, but none of those seemed to make any difference. What's a more satisfactory, intuitive way to do this?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions