How to implement an android:background that doesn't stretch?

前端 未结 11 1167
太阳男子
太阳男子 2020-11-28 02:51

I found this great thread describing how to \"eat the cake and have it too\", i.e. use image for a Button instead of ImageButton (which doesn\'t al

11条回答
  •  日久生厌
    2020-11-28 03:40

    You can use a FrameLayout with an ImageView as the first child, then your normal layout as the second child:

    
    
    
      
    
      
    
      
    
    
    

提交回复
热议问题