我想問下,為什么,菜單和主頁是水平放的,而不是上下放的,是有代碼控制的嗎?

果然是醬
2014-11-05
2 回答
舉報(bào)
0/150
提交
取消
我想問下,為什么,菜單和主頁是水平放的,而不是上下放的,是有代碼控制的嗎?
2014-11-05
舉報(bào)
2014-11-06
你好,水平的呀,內(nèi)部的LinearLayout方向是水平的,你可以下載源碼查看布局文件~
2014-11-06
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
? ? xmlns:tools="http://schemas.android.com/tools"
? ? android:layout_width="match_parent"
? ? android:layout_height="match_parent"
? ? android:orientation="vertical"
? ? tools:context=".MainActivity" >
LinearLayout:android:orientation="vertical"上下的