Android 5.0 - ProgressBar cannot be displayed over a Button

后端 未结 6 1775
孤城傲影
孤城傲影 2020-12-11 00:04

I think the title is pretty explicit about my problem... So here is my layout :

            

        
6条回答
  •  清歌不尽
    2020-12-11 00:24

    It is better to set android:translationZ more than 2dp. Your view/widget will disappear when you press the button. I explained the reason here.

    
    1dp
    
    2dp
    

    Button have these two values and defined in the framework.

提交回复
热议问题