Adjusting the size of an ImageButton in Android

前端 未结 6 784
-上瘾入骨i
-上瘾入骨i 2020-12-29 07:14

Is there any way to do this? I have tried padding the image and setting the width/height of the view, but neither seems to work. Here is an example:



        
6条回答
  •  执念已碎
    2020-12-29 07:38

    Can you explain your question more widely so that we can more understood.

    As per my understanding You want to set your ImageButton Height/Width. But it doesn't work is it? I want to ask you that, if you write any specific height/width then also it doesn't work?

    I copied your code in my files and I changed the height/width manually then it will work.

    Please explain your question.

    Thanks.

提交回复
热议问题