Ich habe ein solches Material Feld image, aber ich brauche Cursor wie diese image ohne HinweisWie bewegt man den Cursor, ohne den Hinweis im Material edittext zu verschieben?
Ersatz ersetzen<android.support.design.widget.TextInputLayout
android:id="@+id/layout_password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:textColorHint="@color/colorTextGray"
app:passwordToggleEnabled = "true"
app:passwordToggleTint="@color/color_ic_visibility"
app:passwordToggleDrawable="@drawable/ic_visibility">
<EditText
android:id="@+id/password"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="45dp"
android:backgroundTint="@color/colorNotSelected"
android:hint="Пароль"
android:inputType="textPassword"
android:textColor="@color/colorTextGray"
android:fontFamily="sans-serif" />
</android.support.design.widget.TextInputLayout>
Haben Sie versucht, das Hinzufügen android: paddingStart zu editText? –
Ja. Aber danach bewegt sich auch das Floating-Label. Ich muss nur den Cursor ersetzen – Antony