
一张图片胜过万字. :)没有正确显示右角.谢谢!
<relativeLayout 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:layout_margin="15dp"tools:context=".MainActivity" > <GrIDLayout androID:layout_wIDth="fill_parent" androID:layout_height="fill_parent" androID:columnCount="2" androID:rowCount="2" androID:layout_weight="6" > <TextVIEw androID:text="Blala:" androID:layout_weight="1" /> <EditText androID:layout_wIDth="fill_parent" androID:layout_height="wrap_content" androID:layout_gravity="center" androID:singleline="true" androID:layout_weight="2" /> <TextVIEw androID:text="Blalalallalalalalallaa:" androID:layout_weight="1" /> <EditText androID:layout_wIDth="fill_parent" androID:layout_height="wrap_content" androID:singleline="true" androID:layout_weight="2" /> </GrIDLayout>更新:权重
解决方法:
回答:
您可以使用下一个布局:
<GrIDLayout xmlns:androID="http://schemas.androID.com/apk/res/androID" androID:layout_wIDth="fill_parent" androID:layout_height="fill_parent" androID:columnCount="2" ><TextVIEwandroID:text="Blala:" androID:layout_row="0" androID:layout_gravity="fill_horizontal" /><EditTextandroID:singleline="true" androID:layout_gravity="fill_horizontal" /><TextVIEwandroID:text="Blal234243a:" androID:layout_row="0" androID:layout_gravity="fill_horizontal" /><EditTextandroID:singleline="true" androID:layout_gravity="fill_horizontal" /></GrIDLayout> 总结 以上是内存溢出为你收集整理的Android GridLayout和EditText全部内容,希望文章能够帮你解决Android GridLayout和EditText所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)