2014-07-17 6 views
-1

내 텍스트가 TextView 짹짹에 너무 길면 텍스트의 끝이 화면 밖으로 나옵니다.TextView가 완전히 표시되지 않음

나는이 문제에서 발견 한 답을 적용하려고 시도하지만 작동하지 않습니다. 여기

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/layout" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:orientation="vertical" 
    android:padding="10dp" 
    android:background="@drawable/item_border_shadow"> 

    <TextView 
     android:id="@+id/tweet" 
     android:layout_width="match_parent" 
     android:layout_height="0dp" 
     android:layout_weight="1" 
     android:textColor="#000000" 
     android:textSize="18sp" 
     android:paddingBottom="10dp" /> 

    <LinearLayout 
     android:layout_width="match_parent" 
     android:layout_height="wrap_content" 
     android:orientation="horizontal" 
     android:paddingTop="10dp" 
     android:paddingBottom="20dp" 
     android:weightSum="4"> 

     <ImageButton 
      android:id="@+id/action_share_plusone" 
      android:layout_width="0dip" 
      android:layout_height="fill_parent" 
      android:background="@android:color/transparent" 
      android:src="@drawable/button_plusone" 
      android:layout_weight="1" /> 

     <ImageButton 
      android:id="@+id/action_facebook" 
      android:layout_width="0dip" 
      android:layout_height="fill_parent" 
      android:background="@android:color/transparent" 
      android:src="@drawable/button_facebook" 
      android:layout_weight="1" /> 

     <ImageButton 
      android:id="@+id/action_twitter" 
      android:layout_width="0dip" 
      android:layout_height="fill_parent" 
      android:background="@android:color/transparent" 
      android:src="@drawable/button_twitter" 
      android:layout_weight="1" /> 

     <ImageButton 
      android:id="@+id/action_share" 
      android:layout_width="0dip" 
      android:layout_height="fill_parent" 
      android:background="@android:color/transparent" 
      android:src="@drawable/button_social_share" 
      android:layout_weight="1" /> 

    </LinearLayout> 

</LinearLayout> 

이 어떻게 완전히 텍스트 뷰를 표시하려면이 문제를 해결할 수 있습니다 내 레이아웃입니까?

편집 1 : 나는 어떤 조치없이 완전히 표시되는 텍스트 (NO 스크롤, 아니 천막)

+0

이 추가를합니다. 그래서 그것은 수평으로 움직일 것입니다. – VVB

+0

선택 윤곽을 사용하고 싶지 않습니다. 애니메이션없이 텍스트 전체를 표시하고 싶습니다. – guillaume

+0

그런 다음 scrollview를 시도하십시오. – VVB

답변

0

당신의 텍스트 뷰의 트윗 당신은 이것에 대한 윤곽을 사용할 수 있습니다

android:singleLine="false" 
    android:scrollbars="vertical" 
+0

작동하지 않습니다. – guillaume

+0

시도해보십시오 .... layout_weight를 제거하고 layout_height를 "wrap_content"로 변경하십시오 – Pravin

+0

문제가 여전히 있습니다. – guillaume

관련 문제