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

如何使 EditText 框高度擴(kuò)大

How to Make EditText Box Height Expand(如何使 EditText 框高度擴(kuò)大)
本文介紹了如何使 EditText 框高度擴(kuò)大的處理方法,對(duì)大家解決問(wèn)題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!

問(wèn)題描述

限時(shí)送ChatGPT賬號(hào)..

這是我的布局:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:orientation="vertical" >

    <EditText
        android:id="@+id/etTweetReview"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:layout_marginBottom="10dp"
        android:layout_marginLeft="10dp"
        android:layout_marginRight="10dp"
        android:ems="10"
        android:hint="Discuss up to 140 characters"
        android:imeOptions="actionDone"
        android:inputType="textCapSentences"
        android:lines="2"
        android:maxLength="140"
        android:paddingBottom="10dp"
        android:singleLine="false" />

    <Button
        android:id="@+id/theReviewBarButton"
        android:layout_width="200dp"
        android:layout_height="wrap_content"
        android:layout_gravity="center_horizontal"
        android:layout_marginBottom="5dp"
        android:text="Submit Review"
        android:textSize="22sp" />

    <Spinner
        android:id="@+id/spinnerSort"
        android:layout_width="120dp"
        android:layout_height="wrap_content"
        android:layout_marginLeft="5dp"
        android:layout_marginRight="5dp" />

    <ListView
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/android:list"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_marginLeft="5dp"
        android:scrollbars="none"
        android:layout_marginRight="5dp"
        android:layout_marginTop="8dp" >
    </ListView>

</LinearLayout>

當(dāng)那個(gè) EditText 框到達(dá)末尾時(shí),我希望它換行到下一行.現(xiàn)在,它只是繼續(xù)向右移動(dòng)所有離開屏幕的內(nèi)容.

When that EditText box gets to the end, I want it to wrap to the next line. Right now, it just keeps going right moving everything left off screen.

推薦答案

類似另一個(gè)問(wèn)題:

Android Word-Wrap EditText 文本

這是一些示例 XML 代碼:

Here's some example XML code:

<EditText
    android:id="@+id/edtInput"
    android:layout_width="0dip"
    android:layout_height="wrap_content"
    android:layout_weight="1"
    android:hint="@string/compose_hint"
    android:inputType="textCapSentences|textMultiLine"
    android:maxLength="2000"
    android:maxLines="4" />

這篇關(guān)于如何使 EditText 框高度擴(kuò)大的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

相關(guān)文檔推薦

Cut, copy, paste in android(在android中剪切、復(fù)制、粘貼)
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 位小數(shù)的數(shù)字)
Changing where cursor starts in an expanded EditText(更改光標(biāo)在展開的 EditText 中的開始位置)
EditText, adjustPan, ScrollView issue in android(android中的EditText,adjustPan,ScrollView問(wèn)題)
主站蜘蛛池模板: 精品三级在线观看 | 黄a网站| 欧美aⅴ片 | 国产午夜精品一区二区三区 | 国产精品成人一区二区三区夜夜夜 | 精品亚洲一区二区三区四区五区高 | 亚洲一区二区精品视频在线观看 | 亚洲www啪成人一区二区麻豆 | 免费一级片 | 狠狠插天天干 | 国产精品美女在线观看 | 日韩成年人视频在线 | 人人艹人人| 国产亚洲二区 | 中文字幕精 | 久久国品片 | 国产精品视频区 | 精品欧美乱码久久久久久1区2区 | 欧美日韩精品一区二区三区四区 | 精品亚洲一区二区三区 | 亚洲精品免费在线观看 | 精品亚洲一区二区 | 亚洲香蕉| 黄色一级毛片 | 国产精品久久一区二区三区 | 中文字幕一区二区三区精彩视频 | 精品国产精品 | av电影一区二区 | 国产欧美一区二区三区在线播放 | 日本天天操 | 久久久久亚洲精品国产 | 精品乱码一区二区 | 日韩亚洲一区二区 | 成人av电影在线观看 | 日韩中文字幕一区 | 久久久久久国产精品免费免费男同 | 国产在线播放av | 午夜久久av | 欧美v片| 精品欧美乱码久久久久久 | 欧美日韩在线成人 |