Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MiYaFastCashier
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jiangjiantao
MiYaFastCashier
Commits
9e8aa7d6
Commit
9e8aa7d6
authored
Mar 28, 2022
by
zhaopengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update ui
parent
4250d78b
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
2 deletions
+22
-2
CommonDialog.kt
.../main/java/com/miya/fastcashier/ui/dialog/CommonDialog.kt
+4
-2
dialog_common.xml
app/src/main/res/layout/dialog_common.xml
+18
-0
app_bg_common_empty.png
app/src/main/res/mipmap-hdpi/app_bg_common_empty.png
+0
-0
No files found.
app/src/main/java/com/miya/fastcashier/ui/dialog/CommonDialog.kt
View file @
9e8aa7d6
...
@@ -58,12 +58,14 @@ class CommonDialog : Dialog {
...
@@ -58,12 +58,14 @@ class CommonDialog : Dialog {
tvMessage
=
findViewById
(
R
.
id
.
tvMessage
)
tvMessage
=
findViewById
(
R
.
id
.
tvMessage
)
tvNegative
=
findViewById
(
R
.
id
.
tvNegative
)
tvNegative
=
findViewById
(
R
.
id
.
tvNegative
)
tvPositive
=
findViewById
(
R
.
id
.
tvPositive
)
tvPositive
=
findViewById
(
R
.
id
.
tvPositive
)
tvNegative
?.
clickWithTrigger
{
var
vNegative
:
View
=
findViewById
(
R
.
id
.
vNegative
)
var
vPositive
:
View
=
findViewById
(
R
.
id
.
vPositive
)
vNegative
?.
clickWithTrigger
{
if
(
onClickListener
!=
null
)
{
if
(
onClickListener
!=
null
)
{
onClickListener
!!
.
onNegativeClick
()
onClickListener
!!
.
onNegativeClick
()
}
}
}
}
t
vPositive
?.
clickWithTrigger
{
vPositive
?.
clickWithTrigger
{
if
(
onClickListener
!=
null
)
{
if
(
onClickListener
!=
null
)
{
onClickListener
!!
.
onPositiveClick
()
onClickListener
!!
.
onPositiveClick
()
}
}
...
...
app/src/main/res/layout/dialog_common.xml
View file @
9e8aa7d6
...
@@ -44,6 +44,15 @@
...
@@ -44,6 +44,15 @@
android:background=
"#E8E8E8"
/>
android:background=
"#E8E8E8"
/>
<View
android:id=
"@+id/vNegative"
android:layout_width=
"0dp"
android:layout_height=
"0dp"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintEnd_toStartOf=
"@+id/vVerticalLine"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/vHorizontalLine"
/>
<TextView
<TextView
android:id=
"@+id/tvNegative"
android:id=
"@+id/tvNegative"
android:layout_width=
"wrap_content"
android:layout_width=
"wrap_content"
...
@@ -56,6 +65,15 @@
...
@@ -56,6 +65,15 @@
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintStart_toStartOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/vHorizontalLine"
/>
app:layout_constraintTop_toBottomOf=
"@+id/vHorizontalLine"
/>
<View
android:id=
"@+id/vPositive"
android:layout_width=
"0dp"
android:layout_height=
"0dp"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintStart_toEndOf=
"@+id/vVerticalLine"
app:layout_constraintBottom_toBottomOf=
"parent"
app:layout_constraintTop_toBottomOf=
"@+id/vHorizontalLine"
/>
<TextView
<TextView
android:id=
"@+id/tvPositive"
android:id=
"@+id/tvPositive"
app:layout_constraintEnd_toEndOf=
"parent"
app:layout_constraintEnd_toEndOf=
"parent"
...
...
app/src/main/res/mipmap-hdpi/app_bg_common_empty.png
View replaced file @
4250d78b
View file @
9e8aa7d6
10.4 KB
|
W:
|
H:
23.2 KB
|
W:
|
H:
2-up
Swipe
Onion skin
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment