如您在圖像中看到的那樣如果屏幕完成,EditText名稱字段中的文本將垂直移動。我想這個水平移動,誰能幫助我,請Android Edittext水平滾動
我用我的活動XML的代碼如下:
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:id="@+id/et_name_signup"
android:paddingLeft="5dp"
android:layout_marginTop="2dp"
android:background="@android:color/transparent"
android:scrollHorizontally="true"
/>
你能告訴我你想要什麼嗎? –
實際上,如果屏幕布局結束,我們希望文字垂直增加,既不向下(水平),也向下移動。你可以在名稱部分看到。我張貼了一個圖像 – bufferking
檢查此android:singleLine =真或android:maxLines =「1」 –