1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<?xml version="1.0" encoding="utf-8"?>
<android.support.constraint.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:orientation="horizontal"
    android:padding="15dp"
    android:focusable="true"
    android:focusableInTouchMode="true"
    xmlns:app="http://schemas.android.com/apk/res-auto">
 
    <android.support.design.widget.TextInputLayout
        android:id="@+id/setView"
        android:layout_width="100dp"
        android:layout_height="match_parent"
        app:layout_constraintHorizontal_weight="1"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toLeftOf="@id/weightView"
        style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
 
        <android.support.design.widget.TextInputEditText
            android:id="@+id/set"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:enabled="false"
            android:textColor="#000000"
            android:hint="세 트"/>
    </android.support.design.widget.TextInputLayout>
 
    <android.support.design.widget.TextInputLayout
        android:id="@+id/weightView"
        android:layout_width="100dp"
        android:layout_height="match_parent"
        app:layout_constraintHorizontal_weight="1"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintRight_toLeftOf="@+id/imageView"
        app:layout_constraintLeft_toRightOf="@+id/setView"
        style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
 
        <android.support.design.widget.TextInputEditText
            android:id="@+id/weight"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:enabled="false"
            android:textColor="#000000"
            android:hint="무 게"/>
    </android.support.design.widget.TextInputLayout>
 
    <ImageView
        android:id="@+id/imageView"
        android:layout_width="50dp"
        android:layout_height="60dp"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toRightOf="@+id/weightView"
        app:layout_constraintRight_toLeftOf="@+id/numView"
        app:srcCompat="@drawable/icon_x" />
 
    <android.support.design.widget.TextInputLayout
        android:id="@+id/numView"
        android:layout_width="100dp"
        android:layout_height="match_parent"
        app:layout_constraintHorizontal_weight="1"
        app:layout_constraintTop_toTopOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintLeft_toRightOf="@+id/imageView"
        style="@style/Widget.MaterialComponents.TextInputLayout.OutlinedBox">
 
        <android.support.design.widget.TextInputEditText
            android:id="@+id/num"
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:enabled="false"
            android:textColor="#000000"
            android:hint="횟 수"/>
    </android.support.design.widget.TextInputLayout>
 
</android.support.constraint.ConstraintLayout>
cs


지금 두가지 문제가 생겼습니다.수정 기능을 만드는데 수정은 잘됩니다만..수정완료하면 저기 이미지 아이콘이 사라집니다...

이미지 어떻게 넣어야할지 모르겠어요.. 수정하는 소스코드에서 inflater로 수정하는 다이얼로그의 값들을 얻어오는거라 거기는 이미지 아이콘이 없어서

아이디 값을 전혀 얻을 수가없어요..이거 어떻게해야하죠?


또한가지는 첨에 입력을 완료하고 수정이나 삭제를하려면 터치를 길게하면되는데 문제가

첨에 터치가 안되길래 이상하다 싶어서 이곳저곳 건드려보니 두번째사진의 빨간색친 부분정도에서 기능이 작동합니다..당황스럽게 그지없는데

이건 뭐가 잘못된걸까요..?