2013-03-07 1 views
2

singleLine 옵션을 설정하지 않고 편집 텍스트에 actiondone을 설정해야합니다 (여러 줄에 입력해야 함). 내가 어떻게 해?singleLine 옵션이없는 EditText 용 actionDone

코드의 그 :

<EditText 
    android:id="@+edit_text/title" 
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    android:hint="Titolo" 
    android:imeOptions="actionNext" 
    android:singleLine="true" /> 

<EditText 
    android:id="@+edit_text/content" 
    android:layout_width="fill_parent" 
    android:layout_height="0dp" 
    android:layout_weight="1" 
    android:gravity="top" 
    android:hint="Inserisci la nota" 
    android:singleLine="false" 
    android:imeOptions="actionDone" /> 
+0

해결책? – dimetil

답변

0

이것은 나를 위해 일한 : 아직

<EditText 
     android:id="@+id/name" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:imeOptions="actionDone" 
     android:singleLine="false" /> 
+1

그것은 나를 위해 작동하지 않습니다. – giozh

+1

도 나를 위해 작동하지 않습니다. –

+0

텍스트를 입력 할 수는 있지만 EditText 필드를 세로로 확장하는 대신 가로로 스크롤하는 것입니다. 해당 텍스트를 저장하고 다른 곳에 표시하면 텍스트가 있지만 여러 줄 형식으로 표시되지 않습니다. –

관련 문제