返回
顶部

修改密码

Android ScrollView 中 TextView 多行显示问题

+1

-1

收藏

+1

-1

点赞0

评论0

今天遇到一个问题:Textview中多行文本,最后一行不显示 将TextView中 android:layout_width="fill_parent" 改为wrap_content 就好了摘自 水墨青花的专栏
今天遇到一个问题:Textview中多行文本,最后一行不显示
 
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"   
    android:layout_height="wrap_content"
    android:padding="6dip"   
    android:scrollbarAlwaysDrawVerticalTrack="true">
 
    <LinearLayout        www.2cto.com
        android:layout_width="fill_parent"
        android:minWidth="240dip"
        android:layout_height="wrap_content"
        android:orientation="vertical"
        android:padding="6dip"> 
 
         <TextView
            android:id="@+id/news_content"
            android:textSize="16sp"
            android:paddingTop="10dp"          
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:gravity="center_horizontal"
            android:visibility="gone"/>
</LinearLayout>
</ScrollView>
 
将TextView中  android:layout_width="fill_parent" 改为wrap_content 就好了

摘自 水墨青花的专栏

扫一扫在手机打开

评论
已有0条评论
0/150
提交
热门评论
相关推荐
今日要闻
换一批
热点排行