11<?xml version =" 1.0" encoding =" utf-8" ?>
22<LinearLayout xmlns : android =" http://schemas.android.com/apk/res/android"
3- android : orientation =" vertical" android : layout_width =" match_parent"
4- android : layout_height =" match_parent" >
3+ android : id =" @+id/custom_view_root"
4+ android : layout_width =" match_parent"
5+ android : layout_height =" wrap_content"
6+ android : orientation =" vertical"
7+ android : paddingStart =" 8dp"
8+ android : paddingTop =" 8dp"
9+ android : paddingEnd =" 8dp"
10+ android : paddingBottom =" 4dp" >
11+
12+ <TextView
13+ android : id =" @+id/custom_view_label"
14+ android : layout_width =" match_parent"
15+ android : layout_height =" wrap_content"
16+ android : text =" Project name"
17+ android : textColor =" #0F172A"
18+ android : textSize =" 13sp"
19+ android : textStyle =" bold" />
520
621 <EditText
722 android : id =" @+id/edit_query"
823 android : layout_width =" match_parent"
24+ android : layout_height =" 52dp"
25+ android : layout_marginTop =" 8dp"
26+ android : backgroundTint =" #2563EB"
27+ android : hint =" Example: KAlertDialog Pro"
28+ android : inputType =" textCapWords"
29+ android : maxLength =" 40"
30+ android : paddingStart =" 12dp"
31+ android : paddingEnd =" 12dp"
32+ android : singleLine =" true"
33+ android : textColor =" #111827"
34+ android : textColorHint =" #94A3B8"
35+ android : textSize =" 15sp" />
36+
37+ <TextView
38+ android : id =" @+id/custom_view_hint"
39+ android : layout_width =" match_parent"
940 android : layout_height =" wrap_content"
10- android : layout_margin =" 20dp"
11- android : hint =" TODO" />
41+ android : layout_marginTop =" 8dp"
42+ android : lineSpacingExtra =" 2dp"
43+ android : text =" This custom layout is attached using setCustomView(). You can place any custom XML inside KAlertDialog."
44+ android : textColor =" #64748B"
45+ android : textSize =" 12sp" />
1246
1347</LinearLayout >
0 commit comments