久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

更改光標在展開的 EditText 中的開始位置

Changing where cursor starts in an expanded EditText(更改光標在展開的 EditText 中的開始位置)
本文介紹了更改光標在展開的 EditText 中的開始位置的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

我的 TextField 從其正常的單行寬度和高度擴展,但是當我更改文本字段的高度時,開始在 EditText 中輸入的光標始終位于擴展文本字段的中心,這就是它開始放置文本的位置也是.

I have TextField that is expanded from its normal single line width and height but the cursor to start typing in the EditText is always in the center of the expanded textfield when I change the height of the textfield and thats where it starts putting text too.

我怎樣才能像往常一樣將光標移到左上角,同時仍然保持更大的高度框?

How can I get the cursor to the top left corner like normal while still keeping a bigger height box?

這就是我的盒子的布局

<EditText
    android:id="@+id/editText1"
    android:layout_width="match_parent"
    android:layout_height="200dp"
    android:layout_alignParentLeft="true"
    android:layout_below="@+id/camera_picture"
    android:layout_marginTop="58dp"
    android:ems="10"
    android:inputType="textMultiLine" >

    <requestFocus />
</EditText>

推薦答案

在你的xml中設置這個

set this in your xml

android:gravity="top"

你也可以試試這個

android:gravity="top | left"

<EditText
    android:id="@+id/editText1"
    android:gravity="top"   <----------------
    android:layout_width="match_parent"
    android:layout_height="200dp"
    android:layout_alignParentLeft="true"
    android:layout_below="@+id/camera_picture"
    android:layout_marginTop="58dp"
    android:ems="10"
    android:inputType="textMultiLine" >

    <requestFocus />
</EditText>

這篇關于更改光標在展開的 EditText 中的開始位置的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Cut, copy, paste in android(在android中剪切、復制、粘貼)
android EditText blends into background(android EditText 融入背景)
Change Line Color of EditText - Android(更改 EditText 的線條顏色 - Android)
EditText showing numbers with 2 decimals at all times(EditText 始終顯示帶 2 位小數的數字)
EditText, adjustPan, ScrollView issue in android(android中的EditText,adjustPan,ScrollView問題)
Autosizing EditText(自動調整 EditText)
主站蜘蛛池模板: 国产精品毛片一区二区在线看 | 美女视频网站久久 | 激情欧美日韩一区二区 | 人人干人人爽 | 一区二区三区国产视频 | 亚洲国产精品一区二区三区 | 久久亚洲一区二区三区四区 | 国产欧美久久精品 | 在线视频h | 亚洲成人免费在线观看 | 99热精品久久 | 欧美一区在线视频 | 久久精品国产一区二区三区不卡 | av电影一区| 久久国产日本 | 在线观看视频一区 | 精品国产91亚洲一区二区三区www | 精品久久99 | 国产精品日韩高清伦字幕搜索 | www国产成人免费观看视频,深夜成人网 | 免费黄色a级毛片 | 欧美黑人体内she精在线观看 | www一级片| 日韩中文字幕久久 | 亚洲视频网 | 久久久一区二区 | 一区二区三区免费 | 天天干天天操天天看 | 国产毛片毛片 | 国产激情在线 | 国产精品久久久亚洲 | 91久久久久 | 欧美黄a | 色综合av | 国产成人亚洲精品自产在线 | 中文字幕在线一区 | 亚洲一区久久久 | 精品一区二区三区四区 | 日韩午夜影院 | 精品乱人伦一区二区三区 | 日韩国产中文字幕 |