开发者

Placing buttons where i want them in Android XML?

开发者 https://www.devze.com 2023-04-01 14:08 出处:网络
I am now having some problems when I want to create开发者_如何学Go my application for android that when I am making my layout in XML i am having trouble that in Eclipse its not latting me place the bu

I am now having some problems when I want to create开发者_如何学Go my application for android that when I am making my layout in XML i am having trouble that in Eclipse its not latting me place the buttons next to each other side to side it only let me place them under each other. And I did chech that fill parrent was not checked I used only wrap content, ut still it's not letting me place them side to side.

And I didn't find how i would fix this when i search on the web. But maybe here someone can explain what im doing wrong?


You probably have an outer LinearLayout with a vertical orientation (android:orientation="vertical" in the XML source). That puts each child of it below the last one. Change this to horizontal to align the buttons next to each other or use a different parent layout.

0

精彩评论

暂无评论...
验证码 换一张
取 消