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

如何使 EditText 框高度擴大

How to Make EditText Box Height Expand(如何使 EditText 框高度擴大)
本文介紹了如何使 EditText 框高度擴大的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

限時送ChatGPT賬號..

這是我的布局:

<?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>

當那個 EditText 框到達末尾時,我希望它換行到下一行.現(xiàn)在,它只是繼續(xù)向右移動所有離開屏幕的內(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.

推薦答案

類似另一個問題:

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" />

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

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

相關文檔推薦

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 位小數(shù)的數(shù)字)
Changing where cursor starts in an expanded EditText(更改光標在展開的 EditText 中的開始位置)
EditText, adjustPan, ScrollView issue in android(android中的EditText,adjustPan,ScrollView問題)
主站蜘蛛池模板: 午夜视频在线播放 | 色爱综合网| 永久黄网站色视频免费观看w | 欧美成人猛片aaaaaaa | 在线日韩欧美 | 欧美日韩无 | 在线中文字幕视频 | 黄色1级片| 日本69视频 | 欧美日韩免费在线 | 伊人成人在线视频 | 91性高潮久久久久久久久 | 国产传媒在线观看 | 国产欧美一区二区三区在线看蜜臀 | 日韩少妇视频 | 午夜激情福利视频 | 色综合小说 | 五月网站 | 亚色视频 | 国产在线观看一区二区三区 | 亚洲最大的网站 | 性一交一乱一伧老太 | 欧美日韩中文字幕 | 午夜av片| www.国产.com | 亚洲激情在线 | 九月色婷婷 | 久久精品久久久 | 亚洲免费观看视频 | 欧美视频一二三区 | 人人插人人射 | 日韩爱爱视频 | 国产乱码精品一区二区三 | 日本男人的天堂 | 国产一级黄色大片 | 国产99精品 | 亚洲影院在线 | av一级在线 | 久在线观看| 高清免费av | www国产在线观看 |