Skip to content

Instantly share code, notes, and snippets.

@ercnksgl
Created September 15, 2022 18:43
Show Gist options
  • Save ercnksgl/24198a868c84607f8fd02db4635d520b to your computer and use it in GitHub Desktop.
Save ercnksgl/24198a868c84607f8fd02db4635d520b to your computer and use it in GitHub Desktop.
Custom component MainActivity
<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.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="com.ercnksgl.customcomponent.MainActivity">
<com.ercnksgl.customcomponent.custom.CustomEditText
android:id="@+id/customEditText"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:theme="@style/CustomEditTextTheme"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintTop_toTopOf="parent"
app:startIcon="@mipmap/ic_launcher"
android:title="@string/title_text" />
</androidx.constraintlayout.widget.ConstraintLayout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment