GithubHelp home page GithubHelp logo

Comments (5)

AriesHoo avatar AriesHoo commented on May 26, 2024

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

from fastlib.

sceneren avatar sceneren commented on May 26, 2024

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

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

from fastlib.

AriesHoo avatar AriesHoo commented on May 26, 2024

image
image
image

from fastlib.

AriesHoo avatar AriesHoo commented on May 26, 2024

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

from fastlib.

sceneren avatar sceneren commented on May 26, 2024

好了 我找到问题了

from fastlib.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.