haunt / files / app / src / main / res / layout / item_debug_point.xml
item_debug_point.xml
| 1 | <?xml version="1.0" encoding="utf-8"?> |
| 2 | <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 3 | android:layout_width="match_parent" |
| 4 | android:layout_height="wrap_content" |
| 5 | android:orientation="horizontal" |
| 6 | android:gravity="center_vertical" |
| 7 | android:paddingHorizontal="12dp" |
| 8 | android:paddingVertical="4dp"> |
| 9 | |
| 10 | <ImageView |
| 11 | android:id="@+id/colorSwatch" |
| 12 | android:layout_width="28dp" |
| 13 | android:layout_height="28dp" |
| 14 | android:layout_marginEnd="10dp" |
| 15 | android:padding="2dp" |
| 16 | android:scaleType="fitCenter" |
| 17 | android:contentDescription="Point type icon" /> |
| 18 | |
| 19 | <LinearLayout |
| 20 | android:layout_width="0dp" |
| 21 | android:layout_height="wrap_content" |
| 22 | android:layout_weight="1" |
| 23 | android:orientation="vertical"> |
| 24 | |
| 25 | <EditText |
| 26 | android:id="@+id/nameEdit" |
| 27 | android:layout_width="match_parent" |
| 28 | android:layout_height="wrap_content" |
| 29 | android:background="@null" |
| 30 | android:singleLine="true" |
| 31 | android:textSize="15sp" |
| 32 | android:imeOptions="actionDone" /> |
| 33 | |
| 34 | <TextView |
| 35 | android:id="@+id/xyText" |
| 36 | android:layout_width="match_parent" |
| 37 | android:layout_height="wrap_content" |
| 38 | android:fontFamily="monospace" |
| 39 | android:textSize="11sp" |
| 40 | android:textColor="#888888" /> |
| 41 | |
| 42 | </LinearLayout> |
| 43 | |
| 44 | <ImageButton |
| 45 | android:id="@+id/deleteButton" |
| 46 | android:layout_width="36dp" |
| 47 | android:layout_height="36dp" |
| 48 | android:background="?attr/selectableItemBackgroundBorderless" |
| 49 | android:src="@android:drawable/ic_menu_delete" |
| 50 | android:contentDescription="Delete point" /> |
| 51 | |
| 52 | </LinearLayout> |