Skip to content

Instantly share code, notes, and snippets.

@dinorahto
Created May 1, 2019 17:42
Show Gist options
  • Save dinorahto/5cf98ec9e6cff7969be7cf51ac96efe0 to your computer and use it in GitHub Desktop.
Save dinorahto/5cf98ec9e6cff7969be7cf51ac96efe0 to your computer and use it in GitHub Desktop.
Text Input Layout for Drawable Left without padding XML
<com.our.project.common.PasswordTextInputLayout
android:id="@+id/login_password_layout"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="35dp"
android:layout_marginStart="35dp"
android:layout_marginTop="2dp"
android:theme="@style/EditTextBlue"
app:errorEnabled="false"
app:hintEnabled="true"
android:hint="@string/login_password_hint"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toBottomOf="@+id/login_email_layout">
<android.support.design.widget.TextInputEditText
android:id="@+id/login_password_input"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:fontFamily="@font/bogle_regular"
android:imeOptions="actionDone"
android:inputType="textVisiblePassword|textNoSuggestions"
android:drawablePadding="4dp"
android:drawableStart="@drawable/password_icon"
android:textColor="@color/colorBlack"
android:textSize="14sp" />
</com.our.project.common.PasswordTextInputLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment