The user needs to enter their weight in the sign up page of my App, for which a horizontal scroll view is created, on which the center element data will be taken as the user's height in inches.
I tried implementing the Spinner Wheel Library from Android SpinnerWheel but it supports only int
values and does not support fractions.
I also tried the Android HorizontalScrollView with Center Lock library but it does not support auto scrolling.
Can anyone please suggest some examples or tips to implement the above mentioned scroll view with the center element value taken as the field entry?
Thanks in Advance!
You can use recycler view and set it to scroll horizontally instead of using any custom library.
RecyclerView recycler= (RecyclerView) itemView.findViewById(R.id.recycler);
LinearLayoutManager llManager = new LinearLayoutManager(mcontext, LinearLayoutManager.HORIZONTAL, false);
recycler.setLayoutManager(llManager);
Then to centeralize your desire location, Refer Recyclerview scrolling. And customise it as per your requirement
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With