我试着找一些教程,但不能这样,如果有人这样做,请帮助我.
解决方法 你在谈论一个简单的布局吗? Android中的“Widget”一词有多种含义.如果你的意思是布局,你可以使用linearLayout的androID:layout_weight属性为每个分配50%的空间.<linearLayout androID:layout_wIDth="match_parent" androID:layout_height="match_parent" androID:orIEntation="vertical" /> <ListVIEw androID:ID="@+ID/my_ListvIEw" androID:layout_wIDth="match_parent" androID:layout_height="match_parent" androID:layout_weight="1" /> <GrIDVIEw androID:ID="@+ID/my_grIDvIEw" androID:layout_wIDth="match_parent" androID:layout_height="match_parent" androID:layout_weight="1" /></linearLayout>总结
以上是内存溢出为你收集整理的android – Widget中的ListView GridView全部内容,希望文章能够帮你解决android – Widget中的ListView GridView所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)