@@ -12,6 +12,7 @@ import android.widget.ImageButton
12
12
import android.widget.TextView
13
13
import android.widget.Toast
14
14
import androidx.fragment.app.DialogFragment
15
+ import droid.grupocelio.gavine.R
15
16
16
17
class AccountDialog : DialogFragment () {
17
18
@@ -35,13 +36,12 @@ class AccountDialog : DialogFragment() {
35
36
36
37
}
37
38
38
- override fun onCreateView (inflater : LayoutInflater ? , container : ViewGroup ? , savedInstanceState : Bundle ? ): View ? {
39
- val view = inflater!! .inflate(R .layout.layout_dialog , container, false )
39
+ override fun onCreateView (inflater : LayoutInflater , container : ViewGroup ? , savedInstanceState : Bundle ? ): View ? {
40
+ val view = inflater!! .inflate(R .layout.view_action_bar , container, false )
40
41
41
- val btnCancel = view.findViewById<View >(R .id.buttonCancel) as Button
42
- val btnAccept = view.findViewById<View >(R .id.buttonAccept) as ImageButton
42
+ val btnCancel = view.findViewById<View >(R .id.dialog1) as Button
43
43
44
- val textViewContent = view.findViewById<View >(R .id.textViewContent ) as TextView
44
+ val textViewContent = view.findViewById<View >(R .id.dialog2 ) as TextView
45
45
textViewContent.text = content
46
46
47
47
// FontUtils.setTypeface(getActivity(), textViewQuestion, "fonts/mangal.ttf");
@@ -51,11 +51,6 @@ class AccountDialog : DialogFragment() {
51
51
dismiss()
52
52
}
53
53
54
- btnAccept.setOnClickListener {
55
- Toast .makeText(activity, " User Accepted Action" , Toast .LENGTH_SHORT ).show()
56
- dismiss()
57
- }
58
-
59
54
return view
60
55
}
61
56
0 commit comments