How do you rearrange buttons where you want them in Eclipse?

后端 未结 2 809
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-07 03:47

Hey guys I am having trouble with placing my buttons in my XML layout. I already have a background and was just trying to put 3 buttons near the middle and thats where I\'m

2条回答
  •  死守一世寂寞
    2021-01-07 04:05

    If you use Image button you can set your custom Image to src property or background property. If youi chose src you should add android:background="@null".

    But I would recommend to use background property while if you use 9-patch png (who knows maybe tomorow you will use 9-patch) they would not stretch if you set it in src.

提交回复
热议问题