

When adding the powerspinner implementation, I am able to sync gradle successfully and am able to access the classes/methods of PowerSpinner just fine.Īs soon as I go to build though, I get a crash stemming from a "findViewById()" call in one of the auto-generated ViewBinding classes. How to code for setOnSpinnerItemSelectedListener, while searching i found only kotlin code.Ĭan anyone help to code it to get the position of selected item.

Stonetype_tSpinnerAdapter(iconSpinnerAdapters) IconSpinnerAdapter iconSpinnerAdapters = new IconSpinnerAdapter(stonetype_viewdb) IconSpinnerItemss.add(new IconSpinnerItem("Rock3", ContextCompat.getDrawable(getApplicationContext(), R.drawable.ic_map))) IconSpinnerItemss.add(new IconSpinnerItem("Rocks2", ContextCompat.getDrawable(getApplicationContext(), R.drawable.ic_map))) IconSpinnerItemss.add(new IconSpinnerItem("Rocks1", ContextCompat.getDrawable(getApplicationContext(), R.drawable.ic_map))) IconSpinnerItemss.add(new IconSpinnerItem("Rocks", ContextCompat.getDrawable(getApplicationContext(), R.drawable.ic_map))) IconSpinnerItemss.add(new IconSpinnerItem("Rock", ContextCompat.getDrawable(getApplicationContext(), R.drawable.ic_map))) IconSpinnerItemss.add(new IconSpinnerItem("View all", ContextCompat.getDrawable(getApplicationContext(), R.drawable.ic_map))) List iconSpinnerItemss = new ArrayList() Hi, i am using this spinner and my code is below View.mAttachInfo is null (view detached) View not part of a window view hierarchy Fragment#onDestroyView() callback (references to its views should be

Leaking: YES (ObjectWatcher was watching this because. │ View.mAttachInfo is null (view detached) │ View not part of a window view hierarchy │ Leaking: NO (Activity#mDestroyed is false) I tried setting the lifecycleowner genreSpinner.lifecycleOwner = this. I don't do anything else with it with code, it's just this. Whenever I add a to my fragment I get a notification from LeakCanary about a memory leak caused by the PowerSpinnerView. Please complete the following information: Support it by joining stargazers for this repository.

Saves and restores automatically the selected position. Sets dismiss when the popup item is selected.Ī duration of the debounce for showOrDismiss. Show arrow rotation animation when showing. By setting the lifecycle owner, the dismiss() method will be invoked automatically before destroying your activity or fragment.
