2017-12-09 1 views
1

필자는 스크롤바없이 높이와 너비가 고정 된 여러 줄 텍스트를 편집 할 수 있습니다. 스크롤바가 남아 있고 나는 그것을 원하지 않는다. 글고 치기위한 이 내 코드 :스크롤 바를 사용하여 고정 높이와 너비로 텍스트를 편집하는 방법은 무엇입니까?

<EditText 
      android:id="@+id/write_text" 
      android:layout_width="@dimen/_200mdp" 
      android:layout_height="wrap_content" 
      android:gravity="center" 
      android:textAppearance="?android:attr/textAppearanceMedium" 
      android:textColor="@color/colorWhite" 
      android:textStyle="bold" 
      android:layout_centerInParent="true" 
      android:inputType="textMultiLine|textCapWords" 
      android:background="@null" 
      android:textSize="@dimen/xxxl_fontsize" 
      android:lines="3" 
      android:maxLines="3" 
      android:minLines="1" 
      android:maxLength="144" 
      android:scrollHorizontally="false" 
      android:scrollbars="none" 
      /> 

나는 많이 시도했지만 스크롤 나는 하나가 나를 도울 수

스크롤

없이 inputType="textMultiLine|textCapWords"로 고정 높이와 폭을 원 남아있다.

+1

을 받고? – Ibrahim

+0

두 기능이 충돌합니다. 고정 높이이며 스크롤하지 않습니다. 그렇게하면 최대 글자 수 한도가 정해집니다. 그렇지 않니? – ADM

+0

inputType = "textMultiLine | textCapWords"로 고정 된 높이와 너비가 있고 3 줄만 표시되지만 @Ibrahim이 스크롤됩니다. –

답변

0

당신은 heiht의 warp_content을하지해야합니다. 그리고 당신은 이미 무엇을

android:layout_height="@dimen/yourHeight" 
+0

답장을 보내 주셔서 감사합니다.하지만 이전에 그렇게 했었고 inputType = "textMultiLine | textCapWords"라는 고정 된 높이와 너비를 가지고 있으며 3 줄에 있지만 스크롤이있었습니다. –

관련 문제