AriesHoo / FastLib

一个Android项目级快速开发框架,节约大部分写常用功能时间以实现更多项目业务功能及体验上的优化。使用说明见wiki
https://github.com/AriesHoo/FastLib/wiki
Apache License 2.0
492 stars 95 forks source link

全局配置的加载的FastLoadingDialog无法修改提示文字 #32

Closed sceneren closed 5 years ago

AriesHoo commented 5 years ago

你全局是咋设置的?你调用的地方咋写的

sceneren commented 5 years ago

全局配置: CustomProgressLoadingDialog dialog = new CustomProgressLoadingDialog(activity); return new FastLoadDialog(activity, dialog) .setCancelable(true) .setCanceledOnTouchOutside(true); 自定义dialog的布局:

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:id="@+id/loading"
  5. android:layout_width="wrap_content"
  6. android:layout_height="wrap_content"
  7. android:layout_gravity="center"
  8. android:background="@drawable/dialog_ffmpeg_loading_bg"
  9. android:gravity="center"
  10. android:minWidth="100dp"
  11. android:minHeight="100dp"
  12. android:orientation="vertical"
  13. android:padding="15dp">
  14. <com.timqi.sectorprogressview.ColorfulRingProgressView
  15. android:id="@+id/progressView"
  16. android:layout_width="40dp"
  17. android:layout_height="40dp"
  18. app:bgColor="#FDF0CB"
  19. app:fgColorEnd="@color/color_theme"
  20. app:fgColorStart="@color/color_theme"
  21. app:percent="0"
  22. app:startAngle="0"
  23. app:strokeWidth="3dp" />
  24. <TextView
  25. android:id="@+id/message"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:layout_marginTop="10dp"
  29. android:text="@string/processing"
  30. android:textColor="#414141"
  31. android:textSize="14sp" />
AriesHoo commented 5 years ago

image image image

AriesHoo commented 5 years ago

也没见你哪里调用了setMessage方法啊。

sceneren commented 5 years ago

好了 我找到问题了