作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试更改我正在处理的 Android 项目上 AppCompatSeekBar 的颜色。
这是我使用的代码
<android.support.v7.widget.AppCompatSeekBar
android:id="@+id/seekbar"
android:progressTint="@android:color/white"
android:layout_width="match_parent"
android:layout_centerInParent="true"
android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:layout_height="50dp"
android:thumb="@drawable/closeprogress"
/>
看起来像这样
我想要的是将搜索栏右侧部分(在气球之后)的颜色更改为蓝色。现在我只能将栏的“填充”部分更改为白色。
最佳答案
如果你的应用程序的 api 级别 >= 21,你可以使用
android:progressBackgroundTint="#0000ff"
(蓝色)
我看到你使用 android:progressTint="@android:color/white"
关于android - 更改 AppCompatSeekBar 的颜色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37006643/
我正在做一个带有 SeekBar 的音乐播放器应用程序,我想删除 SeekBar 两端的额外填充。我试
我正在尝试更改我正在处理的 Android 项目上 AppCompatSeekBar 的颜色。 这是我使用的代码 看起来像这样 我想要的是将搜索栏右侧部分(在气球之后)的颜色更改为蓝色。现在我只能将
我是一名优秀的程序员,十分优秀!