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

Separator color always black #24

Open
jkwiecien opened this issue Jan 13, 2021 · 3 comments
Open

Separator color always black #24

jkwiecien opened this issue Jan 13, 2021 · 3 comments

Comments

@jkwiecien
Copy link

jkwiecien commented Jan 13, 2021

Not sure if it's onli API29, but that's my target. Separator color is always black no matter what color I set it, however, it appears right on the layout editor - just not on the actual build. I'm setting color in xml.

@jkwiecien
Copy link
Author

I reproduced it at sample project just by modyfing activity_main.xml quickly:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:layout_margin="30dp"
    android:gravity="center"
    android:orientation="vertical">

    <Button
        android:id="@+id/default_number_picker_button"
        style="@style/Button"
        android:text="@string/alert_default_title" />

    <Button
        android:id="@+id/simple_number_picker_button"
        style="@style/Button"
        android:layout_marginTop="16dp"
        android:text="@string/alert_simple_title" />

    <Button
        android:id="@+id/custom_number_picker_button"
        style="@style/Button"
        android:layout_marginTop="16dp"
        android:text="@string/alert_custom_title" />

    <com.github.stephenvinouze.materialnumberpickercore.MaterialNumberPicker
        android:layout_width="70dp"
        android:layout_height="wrap_content"
        app:mnpSeparatorColor="@android:color/holo_orange_dark"
        app:mnpTextSize="17dp" />
</LinearLayout>

@jkwiecien
Copy link
Author

Did further investigation and looks like it's related to one of these, which are newer in mine:

  • ANDROID_BUILD_SDK_VERSION=29
  • distributionUrl=https://services.gradle.org/distributions/gradle-6.5-bin.zip
  • implementation 'androidx.appcompat:appcompat:1.2.0'

@viacheslav-chugunov
Copy link

I also head same problem, when used picker in XML on android API 33.

Solution to get around this problem:
https://stackoverflow.com/questions/44517686/android-how-to-remove-divider-lines-in-number-picker

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