Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Sobot_module_Dev
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sobot_android
Sobot_module_Dev
Commits
0b07aad3
Commit
0b07aad3
authored
Dec 16, 2021
by
app_dev@sobot.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sobot common 自定义吐司 长时间显示
parent
314742d3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
SobotToastUtil.java
...c/main/java/com/sobot/common/ui/toast/SobotToastUtil.java
+17
-0
No files found.
sobot_common/src/main/java/com/sobot/common/ui/toast/SobotToastUtil.java
View file @
0b07aad3
...
@@ -88,6 +88,23 @@ public class SobotToastUtil {
...
@@ -88,6 +88,23 @@ public class SobotToastUtil {
}
}
}
}
/**
* 自定义的土司
*
* @param context
* @param str
*/
public
static
void
showCustomLongToast
(
Context
context
,
String
str
)
{
if
(
TextUtils
.
isEmpty
(
str
))
{
return
;
}
try
{
SobotCustomToast
.
makeText
(
context
,
str
,
Toast
.
LENGTH_LONG
).
show
();
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
/**
/**
* 自定义土司,显示固定时间,然后执行监听方法
* 自定义土司,显示固定时间,然后执行监听方法
...
...
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