How to show the text on a ImageButton?

后端 未结 11 1442
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-04 08:42

I have an ImageButton and I want to show a text and an image on it. But when I try on emulator:



        
11条回答
  •  猫巷女王i
    2020-12-04 09:35

    It is technically possible to put a caption on an ImageButton if you really want to do it. Just put a TextView over the ImageButton using FrameLayout. Just remember to not make the Textview clickable.

    Example:

    
        
        
    
        
        
    
    

提交回复
热议问题