
header.xml
<?xml version="1.0" enCoding="utf-8"?><linearLayout xmlns:androID="http://schemas.androID.com/apk/res/androID" androID:layout_wIDth="match_parent" androID:layout_height="wrap_content" androID:orIEntation="vertical" > <linearLayout androID:layout_wIDth="match_parent" androID:layout_height="wrap_content" androID:background="#9d1246" > <button androID:ID="@+ID/button_backfromreg" androID:layout_wIDth="wrap_content" androID:layout_height="wrap_content" androID:layout_marginBottom="5dp" androID:layout_marginleft="20dp" androID:layout_margintop="10dp" androID:background="@drawable/backbtn" androID:visibility="visible" /> </linearLayout></linearLayout>
footer.xml
<?xml version="1.0" enCoding="utf-8"?><linearLayout xmlns:androID="http://schemas.androID.com/apk/res/androID" androID:layout_wIDth="match_parent" androID:layout_height="wrap_content" androID:orIEntation="vertical" > <linearLayout androID:layout_wIDth="match_parent" androID:layout_height="wrap_content" androID:background="#9d1246" > </linearLayout></linearLayout>
<?xml version="1.0" enCoding="utf-8"?><linearLayout xmlns:androID="http://schemas.androID.com/apk/res/androID" androID:layout_wIDth="match_parent" androID:layout_height="match_parent" androID:background="#eaedf2" androID:orIEntation="vertical" > <include androID:layout_weight="1" layout="@layout/header" /> <linearLayout androID:layout_wIDth="match_parent" androID:layout_height="0dp" androID:layout_margin="30dp" androID:layout_weight="1" androID:orIEntation="vertical" > <EditText androID:ID="@+ID/editText1" androID:layout_wIDth="match_parent" androID:layout_height="wrap_content" androID:editable="false" androID:ems="10" androID:hint="Country" androID:textcolor="#655e5e" androID:textSize="15sp" > <requestFocus /> </EditText> <EditText androID:ID="@+ID/editText2" androID:layout_wIDth="match_parent" androID:layout_height="wrap_content" androID:editable="false" androID:ems="10" androID:hint="State" androID:textcolor="#655e5e" androID:textSize="15sp" /> <EditText androID:ID="@+ID/editText3" androID:layout_wIDth="match_parent" androID:layout_height="wrap_content" androID:editable="false" androID:ems="10" androID:hint="Place Keyword" androID:textcolor="#655e5e" androID:textSize="15sp" /> </linearLayout> <include androID:layout_height="0dp" androID:layout_weight="1" layout="@layout/footer" /></linearLayout>
我的问题是,使用上面的布局我看不到页脚.有人请帮助我.
提前致谢.
这是您更新的布局
<?xml version="1.0" enCoding="utf-8"?><linearLayout xmlns:androID="http://schemas.androID.com/apk/res/androID" androID:layout_wIDth="match_parent" androID:layout_height="match_parent" androID:background="#eaedf2" androID:orIEntation="vertical" > <linearLayout androID:layout_wIDth="match_parent" androID:layout_height="0dp" androID:layout_weight="1" > <include androID:layout_height="match_parent" androID:layout_wIDth="match_parent" layout="@layout/header" /> </linearLayout> <linearLayout androID:layout_wIDth="match_parent" androID:layout_height="0dp" androID:layout_margin="30dp" androID:layout_weight="1" androID:orIEntation="vertical" > <EditText androID:ID="@+ID/editText1" androID:layout_wIDth="match_parent" androID:layout_height="wrap_content" androID:editable="false" androID:ems="10" androID:hint="Country" androID:textcolor="#655e5e" androID:textSize="15sp" > <requestFocus /> </EditText> <EditText androID:ID="@+ID/editText2" androID:layout_wIDth="match_parent" androID:layout_height="wrap_content" androID:editable="false" androID:ems="10" androID:hint="State" androID:textcolor="#655e5e" androID:textSize="15sp" /> <EditText androID:ID="@+ID/editText3" androID:layout_wIDth="match_parent" androID:layout_height="wrap_content" androID:editable="false" androID:ems="10" androID:hint="Place Keyword" androID:textcolor="#655e5e" androID:textSize="15sp" /> </linearLayout> <linearLayout androID:layout_wIDth="match_parent" androID:layout_height="0dp" androID:layout_weight="1" > <include androID:layout_height="match_parent" androID:layout_wIDth="match_parent" layout="@layout/footer" /> </linearLayout></linearLayout>总结
以上是内存溢出为你收集整理的android – 如何为包含的布局设置权重?全部内容,希望文章能够帮你解决android – 如何为包含的布局设置权重?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)