Android Top Copy / Paste Toolbar

I need your help in the next issue in the Android developer. For some reason, when I extend ActioBarActivity, the cut / copy / paste buttons appear correctly when I click on the EditText component (see Image 1).

enter image description here

Unfortunately, if I extend the Activity, the toolbar does not display correctly. In Figure 2, you can see that the buttons are present, but they are white and the user cannot see them. I researched, but I'm not sure how to fix it.

enter image description here

If you need, I can share this code, but I think it can be easily reproduced.

Thanks in advance.

Floor

+4
2

, xml , "style", "android: actionBarStyle" , , .

: (: ), v-11 ( API 11) , file ( , ) "-v11", .

Folder structure

, Theme.AppCompat.Light.DarkActionBar, , "android". , , Android Studio stylex.xml(v21), Android 21 . "android" , actionBarStyle, android:actionBarStyle, , ActionBar 21, API 5.

, displayOptions Android , . :

  • useLogo
  • showHome
  • homeAsUp
  • showTitle
  • showCustom
  • disableHome

: background , .

The default theme resource file

Final result

+3

:

<item name="actionModeBackground">@color/actionBarBgColor</item>
+8

All Articles