1

Android context menu: Incorrect pressed state color

view story
linux-howto

http://stackoverflow.com – I have a very annoying problem with the android context menu: Randomly the pressed-state-color of a (pressed) entry in a context menu is wrong (darker as it should). now after hours I can reproduce this behaviour with the following code: public class MainActivity extends Activity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); Button b = new Button( this ); b.setText("TEST BUTTON"); b.setOnClickListener(new OnClickListener() { @Override public void onClick(View v) { v.showConte (HowTos)