久久久久久久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 框到達末尾時,我希望它換行到下一行.現在,它只是繼續向右移動所有離開屏幕的內容.

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模板網!

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

相關文檔推薦

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 位小數的數字)
Changing where cursor starts in an expanded EditText(更改光標在展開的 EditText 中的開始位置)
EditText, adjustPan, ScrollView issue in android(android中的EditText,adjustPan,ScrollView問題)
主站蜘蛛池模板: 国产98色在线 | 日韩 | 亚洲成人av在线播放 | 1级毛片 | 欧美一区二区三区视频 | 欧美久久视频 | 二区三区视频 | 九九九久久国产免费 | 蜜桃精品噜噜噜成人av | 亚洲国产精品视频 | 中文在线视频 | 九九热最新地址 | 婷婷一级片 | 成人三级视频 | 亚洲欧美日韩精品久久亚洲区 | 久久99精品久久久久久琪琪 | 一区日韩 | 午夜播放器在线观看 | 国产精品99视频 | 久久国产精品亚洲 | 九色视频网站 | 在线国产一区二区 | 一级黄色毛片免费 | 国产精品久久久久久久久久尿 | 免费精品视频 | 日日夜夜草 | 日韩在线欧美 | 亚洲一区二区视频在线播放 | 伊人久久免费 | 亚洲国产精品视频一区 | 射欧美| 欧美一区二区三区日韩 | 中文字幕在线第二页 | 国产综合欧美 | 日韩毛片在线免费观看 | 日韩色在线 | 亚洲国产aⅴ成人精品无吗 综合国产在线 | 日韩欧美在线视频一区 | 国产精品久久久久久久久免费高清 | 秋霞电影院午夜伦 | 天天碰夜夜操 | 91在线观看免费 |