Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TintProgressBar不变色,其余组件变色正常 #38

Open
NightXlt opened this issue Oct 8, 2017 · 4 comments
Open

TintProgressBar不变色,其余组件变色正常 #38

NightXlt opened this issue Oct 8, 2017 · 4 comments

Comments

@NightXlt
Copy link

NightXlt commented Oct 8, 2017

下面是我的布局代码,机型是mi6 android版本是7.1
`
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:fresco="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.facebook.drawee.view.SimpleDraweeView
android:id="@+id/playbar_img"
android:layout_width="43dp"
android:layout_height="43dp"
android:layout_marginBottom="16dp"
android:layout_marginLeft="8dp"
android:layout_marginStart="8dp"
android:layout_weight="0"
fresco:layout_constraintBottom_toTopOf="@+id/guideline"
fresco:layout_constraintLeft_toLeftOf="parent"
fresco:placeholderImage="@mipmap/placeholder_disk_210"
fresco:placeholderImageScaleType="fitXY"/>


<com.bilibili.magicasakura.widgets.TintImageView
android:id="@+id/play_list"
android:layout_width="43dp"
android:layout_height="43dp"
android:layout_marginBottom="16dp"
android:layout_marginEnd="4dp"
android:layout_marginRight="4dp"
android:background="?attr/selectableItemBackgroundBorderless"
android:onClick="click_last"
android:src="@mipmap/playbar_btn_playlist"
fresco:imageTint="@color/theme_color_primary"
fresco:layout_constraintBottom_toTopOf="@+id/guideline"
fresco:layout_constraintRight_toLeftOf="@+id/control"/>

<com.bilibili.magicasakura.widgets.TintImageView
    android:id="@+id/control"
    android:layout_width="41dp"
    android:layout_height="46dp"
    android:layout_marginBottom="16dp"
    android:layout_marginEnd="4dp"

    android:layout_marginRight="4dp"
    android:background="?attr/selectableItemBackgroundBorderless"
    android:src="@mipmap/playbar_btn_play"
    fresco:imageTint="@color/theme_color_primary"
    fresco:layout_constraintBottom_toTopOf="@+id/guideline"
    fresco:layout_constraintRight_toLeftOf="@+id/play_next"/>

<com.bilibili.magicasakura.widgets.TintImageView
    android:id="@+id/play_next"
    android:layout_width="43dp"
    android:layout_height="43dp"
    android:layout_marginBottom="16dp"
    android:layout_marginEnd="4dp"
    android:layout_marginRight="4dp"
    android:background="?attr/selectableItemBackgroundBorderless"
    android:onClick="click_next"
    android:src="@mipmap/playbar_btn_next"
    fresco:imageTint="@color/theme_color_primary"
    fresco:layout_constraintBottom_toTopOf="@+id/guideline"
    fresco:layout_constraintRight_toRightOf="parent"/>
<android.support.constraint.Guideline android:id="@+id/guideline"
                                      android:layout_width="wrap_content"
                                      android:layout_height="wrap_content"
                                      android:orientation="horizontal"
                                      fresco:layout_constraintGuide_begin="60dp"
/>
<com.bilibili.magicasakura.widgets.TintProgressBar
    android:id="@+id/song_progress_normal"
    style="@style/Widget.AppCompat.ProgressBar.Horizontal"
    android:layout_width="0dp"
    android:layout_height="10dp"
    android:layout_marginBottom="5dp"
    android:progress="0"
    android:max="100"
    app:layout_constraintBottom_toTopOf="@+id/guideline"
    app:layout_constraintHorizontal_bias="0.533"
    app:layout_constraintLeft_toLeftOf="parent"
    app:layout_constraintRight_toRightOf="parent"
    app:progressIndeterminateTint="@color/theme_color_primary"/>

</android.support.constraint.ConstraintLayout>`

这是我的项目地址:https://github.com/NightXlt/NetEaseMusic

@xyczero
Copy link
Member

xyczero commented Oct 15, 2017

在其他机型上也无法变色吗?还是说只在7.1上

@NightXlt
Copy link
Author

在其他机型也这样

@Hankkin
Copy link

Hankkin commented Jul 8, 2018

这个问题还没有解决么

@xyczero
Copy link
Member

xyczero commented Jul 8, 2018

这里暂没有机型复现

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants