首页 > 移动平台 > 详细

android5.0 Adapter weight的问提

时间:2015-11-16 17:44:41      阅读:266      评论:0      收藏:0      [点我收藏+]
<LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="0dp"
                android:layout_weight="1"
                android:orientation="horizontal">

                <TextView
                    android:id="@+id/focus_esate_list_name"
                    android:layout_width="0dp"
                    android:layout_height="match_parent"
                    android:layout_weight="1"
                    android:singleLine="true"
                    android:textColor="@color/gray_dark_text"
                    android:textSize="@dimen/text_size_xm" />

                <TextView
                    android:id="@+id/focus_esate_property_type"
                    android:layout_width="wrap_content"
                    android:layout_height="match_parent"
                    android:layout_gravity="center_vertical"
                    android:gravity="center|top"
                    android:paddingLeft="@dimen/padding_m"
                    android:textColor="@color/orange_text"
                    android:textSize="@dimen/text_size_xxs" />

            </LinearLayout>

只需要调用一下forceLayout()即可



android5.0 Adapter weight的问提

原文:http://my.oschina.net/u/867543/blog/530996

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!