Skip to content

Instantly share code, notes, and snippets.

@dinorahtovar
Created August 7, 2018 15:44
Show Gist options
  • Save dinorahtovar/24dc3508a95f59677e38bcbacc37082f to your computer and use it in GitHub Desktop.
Save dinorahtovar/24dc3508a95f59677e38bcbacc37082f to your computer and use it in GitHub Desktop.
Custom Text Input Layout without padding implementation in 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.wallet.bcg.ewallet.common.PasswordTextInputLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment