Commit d9f5c143 authored by mengcuiguang's avatar mengcuiguang
parents e3a373da 10de110d
......@@ -11,6 +11,7 @@ import com.mints.flowbox.R
import com.mints.flowbox.common.AppConfig
import com.mints.flowbox.common.Constant
import com.mints.flowbox.ui.activitys.base.BaseActivity
import com.mints.flowbox.ui.widgets.NumAnimUtil
import com.mints.flowbox.utils.ToastUtil
import com.mints.library.utils.CommonUtils
import com.mints.library.utils.ConstantUtil
......@@ -50,6 +51,8 @@ class AboutusActivity : BaseActivity(), View.OnClickListener {
MintsApplication.getContext(), "CHANNEL_NAME"
) + "\n 头条渠道:" + HumeSDK.getChannel(context)
)
// NumAnimUtil.startAnim(tvAboutasVersion,100f)
true
}
......
......@@ -14,10 +14,26 @@ public class NumAnimUtil {
//每秒刷新多少次
private static final int COUNTPERS = 100;
/**
* 进度100 时间2秒
* @param textV
*/
public static void startAnim(TextView textV) {
startAnim(textV, 100, 2000);
}
/**
* 进度随意 时间2秒
* @param textV
*/
public static void startAnim(TextView textV, float num) {
startAnim(textV, num, 2000);
}
/**
* 进度随意 时间随意
* @param textV
*/
public static void startAnim(TextView textV, float num, long time) {
if (num == 0) {
textV.setText(NumAnimUtil.NumberFormat(num, 2));
......@@ -81,7 +97,8 @@ public class NumAnimUtil {
}
public static String NumberFormat(float f, int m) {
return String.format("%." + m + "f", f);
return String.format("%." + 0 + "f", f);
// return String.format("%" + f);
}
public static float NumberFormatFloat(float f, int m) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment