android 线性布局 底部,java – 如何在android线性布局中对齐父底部?
我有一個線性布局
我想在它的底部創(chuàng)建一個切片.
我知道有一些選擇,但我有點(diǎn)困惑
1)android:layout_gravity:“bottom” – >由于某種原因,這對我不起作用.
2)android:gravity_weight =“0”并給它之前的兄弟:android:gravity_weight:“1”
3)android:height =“wrap_content”并給它之前的兄弟:android:height:“match_parent”
我知道如何使用relativeLayout執(zhí)行此操作,但我想練習(xí)linearLayout
你會建議什么?
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@color/blue_bg"
android:orientation="vertical" >
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="10dp"
android:layout_marginTop="5dp"
android:src="@drawable/signup_illu_why" />
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight=""
android:orientation="horizontal" />
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:src="@drawable/signup_skip_icon" />
總結(jié)
以上是生活随笔為你收集整理的android 线性布局 底部,java – 如何在android线性布局中对齐父底部?的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: android后台文件下载库,andro
- 下一篇: android程序db文件用什么编辑器,