0

裏面我有這樣我的主要線性佈局內的滾動視圖:滾動型切割主要佈局

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
     xmlns:bootstrapbutton="http://schemas.android.com/apk/res-auto" 
     xmlns:app="http://schemas.android.com/apk/res-auto" 
     android:orientation="vertical" 
     android:layout_width="match_parent" 
     android:layout_height="match_parent" 
     android:gravity="center" 
     android:padding="8dp"> 

<ScrollView 
    android:layout_width="match_parent" 
    android:layout_height="0dp" 
    android:layout_weight="1" 
    android:scrollbars="none"> 
      <LinearLayout 
       android:orientation="vertical" 
       android:layout_width="match_parent" 
       android:layout_height="wrap_content" 
       android:gravity="center"> 

         ---content--- 

       </LinearLayout> 
      </ScrollVIew> 
    </LinearLayout> 

當我滾動TextView的「全名」被切斷,無法正確顯示。

enter image description here

我已經找遍了所有的解決方案,並還嘗試以下兩種:

android:fillViewport="true" 
android:clipToPadding="false" 

但它並沒有奏效。任何解決方案?

回答