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

请问有没有方法改变选择器的背景颜色呢? #2

Closed
PiterPeng opened this issue Aug 21, 2018 · 1 comment
Closed

请问有没有方法改变选择器的背景颜色呢? #2

PiterPeng opened this issue Aug 21, 2018 · 1 comment

Comments

@PiterPeng
Copy link

项目主体风格是紫色,但背景一直是白色,这俩颜色放一起不美观呀

@duanhong169
Copy link
Owner

选择器本身就是一个View,可以直接设置背景颜色的。比如在xml里

<top.defaults.view.PickerView
    android:id="@+id/pickerView"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    app:isCyclic="false"
    android:background="#ff0000"/>

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

2 participants