android EditText blends into background

后端 未结 3 1712
小蘑菇
小蘑菇 2020-12-16 02:39

My app uses Theme.Holo.Light.DarkActionBar as the parent theme.

When I use my Android 3.2 tablet emulator, the EditText shape is almost impossible to se

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-16 03:37

    The other answers weren't actually solutions to my problem and I never figured out what was REALLY causing the issue. However, this is how I solved it: My workaround was to copy the .9.pngs and styling for the EditText widget from Ice Cream Sandwich and hardcoded into my app for Honeycomb and Ice Cream Sandwich.

    EDIT:

    I created a file called res/drawable-nodpi/edit_text_holo_light.xml with the following:

    
    
    
        
        
        
        
        
        
        
    
        
        
        
        
        
        
        
    
    

    Then I created a style in my styles.xml to set:

    @drawable/edit_text_holo_light
    

    Then I copied the .9.png files from the android sdk and put them in res/drawable-*. The filenames are listed in the above xml.

提交回复
热议问题