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

Thumb vector drawable crashed app. #16

Closed
roninua opened this issue Nov 9, 2016 · 6 comments
Labels
bug

Comments

@roninua
Copy link

@roninua roninua commented Nov 9, 2016

I set vector drawable for thumb, normal, pressed, disabled a XML drawable.
I want to use my shapes, maybe vectorDrawable.

var thumbNormal = Resource.Drawable.thumb_normal;

drawable/thumb_normal.xml :

<?xml version="1.0" encoding="UTF-8"?> <shape xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="#bada55"/> <stroke android:width="10dp" android:color="#fff" /> <corners android:radius="10dp"/> <padding android:left="0dp" android:top="0dp" android:right="0dp" android:bottom="0dp" /> </shape>

Error when i open activity widh slider:
System.NullReferenceException: Object reference not set to an instance of an object.

@halkar

This comment has been minimized.

Copy link
Owner

@halkar halkar commented Nov 14, 2016

Thanks @roninua, I'll check it today.

@halkar halkar added the bug label Nov 14, 2016
@halkar

This comment has been minimized.

Copy link
Owner

@halkar halkar commented Nov 15, 2016

@roninua I can't reproduce your issue

Activity layout

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:orientation="vertical"
    android:layout_width="match_parent"
    android:layout_height="match_parent">
    <Xamarin.RangeSlider.RangeSliderControl
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:absoluteMinValue="10"
        app:absoluteMaxValue="50"
        app:valuesAboveThumbs="true"
        app:thumbNormal="@drawable/thumb_normal"
        app:thumbDisabled="@drawable/thumb_normal"
        app:thumbPressed="@drawable/thumb_normal" />
</LinearLayout>

thumb_normal

<?xml version="1.0" encoding="UTF-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
    <size android:width="40dp" android:height="40dp" />
    <solid android:color="#bada55" />
    <stroke android:width="10dp" android:color="#fff" />
    <corners android:radius="10dp" />
    <padding android:left="0dp" android:top="0dp" android:right="0dp" android:bottom="0dp" />
</shape>
@halkar

This comment has been minimized.

Copy link
Owner

@halkar halkar commented Nov 15, 2016

@roninua can you share small project reproducing issue?

@halkar

This comment has been minimized.

Copy link
Owner

@halkar halkar commented Nov 15, 2016

Or if you can provide me with full stack trace.

@halkar

This comment has been minimized.

Copy link
Owner

@halkar halkar commented Nov 17, 2016

@roninua ping!

@halkar

This comment has been minimized.

Copy link
Owner

@halkar halkar commented Nov 18, 2016

@roninua if you are still experiencing this issue please comment and reopen.

@halkar halkar closed this Nov 18, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.