GithubHelp home page GithubHelp logo

TintProgressBar不显示 about magicasakura HOT 4 CLOSED

bilibili avatar bilibili commented on July 20, 2024
TintProgressBar不显示

from magicasakura.

Comments (4)

xyczero avatar xyczero commented on July 20, 2024

代码能贴出来看一下吗?还有机型和系统版本

from magicasakura.

liaosiyang avatar liaosiyang commented on July 20, 2024
<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical">

    <com.bilibili.magicasakura.widgets.TintProgressBar
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:indeterminate="true"
        app:progressIndeterminateTint="@color/theme_color_primary"/>

    <com.bilibili.magicasakura.widgets.TintProgressBar
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:indeterminate="true" />
</LinearLayout>

上面的TintProgressBar不显示,下面的可以,我新建了一个工程测试了的:https://github.com/liaosiyang/MyApplication

from magicasakura.

xyczero avatar xyczero commented on July 20, 2024

项目中的Application里面没有实现ThemeUtils的switchColor接口,所以TintProgressBar没取到颜色,已提交新的pr到demo项目中了

from magicasakura.

liaosiyang avatar liaosiyang commented on July 20, 2024

额 是我蠢了 我Application里面的replaceColor方法没重写,直接返回0了,所以颜色是白色就显示不出来了

from magicasakura.

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.