Skip to content

Commit e320e83

Browse files
perf(ALL): 调整Toast显示位置
1 parent c49868e commit e320e83

File tree

1 file changed

+1
-1
lines changed
  • lite/src/main/java/com/pengxh/kt/lite/extensions

1 file changed

+1
-1
lines changed

lite/src/main/java/com/pengxh/kt/lite/extensions/String.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ fun String.show(context: Context) {
192192
textView.setPadding(
193193
20f.dp2px(context), 10f.dp2px(context), 20f.dp2px(context), 10f.dp2px(context)
194194
)
195-
toast.setGravity(Gravity.CENTER, 0, 100f.dp2px(context))
195+
toast.setGravity(Gravity.BOTTOM, 0, 90f.dp2px(context))
196196
toast.view = textView
197197
toast.duration = Toast.LENGTH_SHORT
198198
toast.show()

0 commit comments

Comments
 (0)