-1
2つの異なるテキストを1つのEditTextに表示します。1つのEditTextに2つのテキストを表示するには
誰もがこの上で私を助けることができます私はこの
<LinearLayout
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="wrap_content">
<EditText
android:textSize="25dp"
android:editable="false"
android:textColor="@color/white"
android:text="+91"
android:layout_marginTop="20dp"
android:theme="@style/Regestration_edit_text"
android:id="@+id/rhs_country_code"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<EditText
android:textColorHint="@color/white"
android:textSize="25dp"
android:hint="Mobile Number"
android:layout_marginTop="20dp"
android:theme="@style/Regestration_edit_text"
android:id="@+id/rhs_mobile_number"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</LinearLayout>
ようにしようとしましたか?
を描画可能なです。 –
'editText.setText(" + 91 "+ mobileNumber); ' –
ありがとう@MuhammadBabar –