harjot-oberai / Croller

A circular seekbar for Android, with a control knob! (for the lack of a better word).
MIT License
1.23k stars 165 forks source link

Croller Seekbar doesnt show #18

Open pelldam opened 6 years ago

pelldam commented 6 years ago

hello there, am trying to use the croller seekbar but the problem i encountered is that when i set the layout_height="wrap_content" and layout_width="wrap_content".. so the croller seekbar wont displayed so if i set layout_height="match_parent" and layout_width="match_parent" it will displayed here is the code below ` <?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">

<com.sdsmdg.harjot.crollerTest.Croller
    android:id="@+id/croller"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_centerInParent="true"
    app:back_circle_color="#EDEDED"
    app:indicator_color="#0B3C49"
    app:indicator_width="12"

    app:label_color="@color/black"
    app:main_circle_color="#FFFFFF"
    app:max="1000"
    app:progress_primary_color="#0B3C49"
    app:progress_secondary_color="#EEEEEE"
    app:start_offset="45"
    android:layout_alignParentLeft="true"
    android:layout_alignParentStart="true"
    android:layout_marginLeft="20dp"
    android:layout_marginStart="20dp"/>

`

harjot-oberai commented 6 years ago

I used the exact same parameters as yours and didn't experience any issues. If user sets the width and height as wrap_content, then default value of 160dp is used.

Which android version are you testing on ?

pelldam commented 6 years ago

am using android studio 3.0 and i tested on android version 6.0 api 23 when i first used the library for the first version of my app it worked with the height wrap_content but when i later upgraded to another version of android studio that was when i experienced it