android:layout_weight属性的简单使用
生活随笔
收集整理的這篇文章主要介紹了
android:layout_weight属性的简单使用
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
效果:
style.xml
<style name="etStyle2"><item name="android:layout_width">match_parent</item><item name="android:layout_height">wrap_content</item><item name="android:background">@drawable/corner_edit</item></style>activity_test.xml
<LinearLayout android:layout_marginTop="5dp"android:layout_width="match_parent"android:layout_height="wrap_content"android:orientation="horizontal"android:gravity="center_vertical"><TextView android:layout_width="98dp"android:layout_height="wrap_content"android:text="稅款所屬期"/><EditText style="@style/etStyle2"android:layout_weight="0.5"/><TextView style="@style/tvStyle"android:text="至"/><EditText style="@style/etStyle2"android:layout_weight="0.5"/></LinearLayout>?
?
轉(zhuǎn)載于:https://www.cnblogs.com/yshyee/p/3410833.html
總結(jié)
以上是生活随笔為你收集整理的android:layout_weight属性的简单使用的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 绝地求生现在多少钱啊?
- 下一篇: 做试管婴儿取卵痛不痛?