Skip to content

Instantly share code, notes, and snippets.

@Audhil
Created April 17, 2018 16:15
Show Gist options
  • Save Audhil/3fdf32e2d9870820114f040d7a9d0d6a to your computer and use it in GitHub Desktop.
Save Audhil/3fdf32e2d9870820114f040d7a9d0d6a to your computer and use it in GitHub Desktop.
AlertDialogs with Extn funcs blog_6
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<android.support.constraint.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent">
<ImageView
android:id="@+id/close_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:contentDescription="@string/close"
android:focusable="true"
android:padding="20dp"
app:srcCompat="@drawable/ic_close_white_24dp" />
<ImageView
android:id="@+id/done_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:clickable="true"
android:contentDescription="@string/close"
android:focusable="true"
android:padding="20dp"
app:layout_constraintEnd_toEndOf="parent"
app:srcCompat="@drawable/ic_done_white_24dp" />
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="300dp"
android:background="@android:color/white"
app:layout_constraintTop_toBottomOf="@+id/done_icon">
<android.support.design.widget.TextInputLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="20dp">
<android.support.design.widget.TextInputEditText
android:id="@+id/notes_etxt_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@null"
android:gravity="top"
android:hint="@string/add_note"
android:maxLines="10"
android:padding="10dp" />
</android.support.design.widget.TextInputLayout>
</RelativeLayout>
</android.support.constraint.ConstraintLayout>
</layout>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment