feat: 翻译
This commit is contained in:
@@ -11,6 +11,7 @@ import com.chwl.library.utils.SizeUtils
|
||||
import com.example.lib_utils.UiUtils.isRtl
|
||||
import com.example.lib_utils.ktx.getString
|
||||
import com.hjq.toast.ToastUtils
|
||||
import java.util.Locale
|
||||
|
||||
|
||||
fun View.setMargin(start:Int?=null,top:Int?=null,end:Int?=null,bottom:Int?=null,isDP:Boolean = true) {
|
||||
@@ -134,7 +135,7 @@ fun Double?.toNumString(byte:Int = 2) : String {
|
||||
if (floatNum == 0.0) {
|
||||
return intNum.toString()
|
||||
} else {
|
||||
val format = String.format("%.${byte}f", this)
|
||||
val format = String.format(Locale.ENGLISH,"%.${byte}f", this)
|
||||
if (format.endsWith(".00")){
|
||||
return intNum.toString()
|
||||
}else if (format.contains(".") && format.endsWith("0")){
|
||||
|
Reference in New Issue
Block a user