Closed risnawan closed 4 years ago
@risnawan can you please show me the code? it looks like you are trying to pass a null value to custom indicator
Hi @tamtom , thank you in advance for making a helpful library. I follow from readme
pluto = findViewById(R.id.slider_view);
pluto.setCustomIndicator(findViewById(R.id.custom_indicator));
but error error: incompatible types: View cannot be converted to PlutoIndicator I don't know what steps I passed.
then I try and error like initialization PlutoIndicator
pluto = findViewById(R.id.slider_view);
PlutoIndicator plutoIndicator = new PlutoIndicator(this);
plutoIndicator = findViewById(R.id.custom_indicator);
pluto.setCustomIndicator(plutoIndicator);
but I'm still stuck
when i try to use custom_indicator i found this error
kotlin.UninitializedPropertyAccessException: lateinit property helper has not been initialized at com.opensooq.pluto.PlutoView.setCustomIndicator(PlutoView.kt:155)
can any one help me plaese?
@risnawan make sure you have updated Android version and if cant try to cast the view to PlutoIndicator @MohamedHamole7 follow the example in the project it should work if not please past the stacktrace
Hi,
I follow the readme and example instructions to add a custom indicator, but there is an error like this below