第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時(shí)綁定郵箱和手機(jī)立即綁定
已解決430363個(gè)問題,去搜搜看,總會(huì)有你想問的

在編輯文本中放置 $ 但不顯示在數(shù)據(jù)庫中

在編輯文本中放置 $ 但不顯示在數(shù)據(jù)庫中

qq_笑_17 2021-12-01 19:40:05
達(dá)到類似結(jié)果的最佳方法是什么?我對 android 開發(fā)/java 等很陌生,所以我要解決的第一部分是 $ 和每小時(shí)提示,它保留在編輯文本輸入的右側(cè)。然后我將處理布爾值是或否,它允許有 2 個(gè)具有最小速率和最大速率的編輯文本框,它們將能夠輸入到數(shù)據(jù)庫中。(如果您對此有任何提示或解決方案,將不勝感激)例子我的編碼嘗試。    <?xml version="1.0" encoding="utf-8"?><android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"    xmlns:app="http://schemas.android.com/apk/res-auto"    xmlns:tools="http://schemas.android.com/tools"    android:layout_width="match_parent"    android:layout_height="match_parent"    tools:context=".MechanicMore.MechanicHourlyRateActivity">    <TextView        android:id="@+id/HourlyText"        android:layout_width="359dp"        android:layout_height="28dp"        android:layout_marginEnd="25dp"        android:text="What is your hourly Rate?"        android:textColor="@android:color/black"        android:textSize="18sp"        android:textStyle="bold"        app:layout_constraintEnd_toEndOf="parent"        app:layout_constraintStart_toStartOf="parent"        app:layout_constraintTop_toTopOf="parent" />    <android.support.design.widget.TextInputLayout        android:id="@+id/textInputLayout2"        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:layout_marginTop="25dp"        android:layout_marginBottom="356dp"        android:hint="Per Hour"        app:layout_constraintBottom_toBottomOf="parent"        app:layout_constraintEnd_toEndOf="parent"        app:layout_constraintStart_toStartOf="parent"        app:layout_constraintTop_toBottomOf="@+id/HourlyText">
查看完整描述

1 回答

?
翻翻過去那場雪

TA貢獻(xiàn)2065條經(jīng)驗(yàn) 獲得超14個(gè)贊

你可以試試這個(gè)...


<RelativeLayout

    android:layout_width="200dp"

    android:layout_height="wrap_content"

    android:layout_gravity="center_vertical"

    android:layout_marginStart="10dp"

    android:layout_marginEnd="10dp">


    <android.support.design.widget.TextInputEditText

        android:id="@+id/editText"

        android:layout_width="match_parent"

        android:layout_height="wrap_content"

        android:layout_marginStart="10dp"

        android:layout_marginEnd="10dp"

        android:layout_toStartOf="@+id/rate"

        android:layout_toEndOf="@+id/dollarSign"

        android:background="#ffffff"

        android:gravity="center"

        android:text="@string/_25"

        android:textColor="#000000"

        android:textSize="18sp" />


    <TextView

        android:id="@+id/dollarSign"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:layout_alignParentStart="true"

        android:layout_marginStart="5dp"

        android:text="@string/dollar"

        android:textColor="#000000"

        android:textSize="18sp" />


    <TextView

        android:id="@+id/rate"

        android:layout_width="wrap_content"

        android:layout_height="wrap_content"

        android:layout_alignParentEnd="true"

        android:paddingStart="0dp"

        android:paddingEnd="5dp"

        android:text="@string/per_hour"

        android:textColor="@color/colorBlack"

        android:textSize="18sp" />


    <View

        android:layout_width="match_parent"

        android:layout_height="2dp"

        android:layout_below="@id/rate"

        android:layout_marginTop="5dp"

        android:background="#000000" />


</RelativeLayout>


查看完整回答
反對 回復(fù) 2021-12-01
  • 1 回答
  • 0 關(guān)注
  • 188 瀏覽

添加回答

舉報(bào)

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號