<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center" android:background="@drawable/robo">
<TextView android:id="@+id/TextView02"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Max Time(Sec)">
</TextView>
<EditText android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="100"
android:id="@+id/maximum"
android:inputType="number">
</EditText>
<Button android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Start"
android:id="@+id/startbtn"
android:focusable="true">
</Button>
<ImageButton android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:src="@drawable/icon"
android:id="@+id/imageButton1">
</ImageButton>
</LinearLayout>
0
A
回答
0
在LinearLayout中你不能改变位置一大堆 - 因为布局是线性(顺序)。但是你可以使用layout_margin稍微移动小部件。
我不知道你想做的事,但你应该考虑的FrameLayout(这将让你把图像的任何地方!)。我个人最喜欢的是RelativeLayout。在Android的
0
0
投入布局更加按键和隐藏或显示他们根据自己的需要
0
的观点是关系,不仅在RelativeLayout的,但其他人,所以你应该选择来描述您的应用程序布局的最佳方式,使用一个以上的常用。 要更改标签的位置,您最好使用AbsoluteLayout,然后使用android:layout_x =“”,android:layout_y =“”
0
您的确切要求是什么? 你可以把两个按钮,使一个可见的和其他无形的一个或副verse.or你可以把layout_margin所有direction.And试图把所有的组件在不同的布局。
相关问题
- 1. 在Android中更改按钮的位置
- 2. 如何在Android Audio Capture示例中更改按钮的位置?
- 3. 更改按钮的位置
- 4. 更改按钮的位置
- 5. 如何更改按钮控制位置?
- 6. 在Java/Swing中更改按钮位置
- 7. 更改按钮位置
- 8. 如何在按下时更改按钮的文本位置?
- 9. 按下时更改按钮的位置
- 10. 如何在谷歌街景中更改位置后退按钮?
- 11. 如何在方向更改后设置按钮位置固定
- 12. Android-如何在按下按钮时更改按钮的文字?
- 13. 更改按钮上文字在按钮上的位置
- 14. 如何禁用Packagemaker中的更改安装位置按钮
- 15. 如何更改响应式设计中按钮的位置?
- 16. 如何更改perl tk中按钮的位置?
- 17. 如何更改flex中按钮的显示x y位置
- 18. 如何更改Xamarin Zebble中的后退按钮位置?
- 19. 如何更改过渡动画中的按钮位置
- 20. 如何在点击后更改按钮的位置?
- 21. 更改面板按钮的位置
- 22. Bootbox js:更改Ok按钮的位置
- 23. 更改执行按钮的位置VB.NET
- 24. 更改单选按钮的位置
- 25. 更改Facebook的位置喜欢按钮
- 26. JButton:更改按钮的位置
- 27. 更改按钮位置的时间
- 28. 如何更改android中imageview的位置?
- 29. 如何我可以通过点击按钮在Android中随机更改按钮的位置
- 30. 如何在新位置的Android活动中放置按钮?
这里是我们的代码 – Pinki 2011-03-23 07:08:26
如果您发布的代码,XML或数据样本,** **请在高亮文本编辑器的线和编辑器工具栏上单击“代码示例”按钮('{}')很好的格式和语法突出显示它!如果您发布错误消息,**请**使用blockquotes('“')来正确格式化错误消息。 – 2011-03-23 07:11:27