android-wheel

wheel menu bar how can I give click action to icons

可紊 提交于 2019-12-13 19:37:33
问题 Before I asked this question. They said add method. I added but how can I give click event icon0. It is problem for me still.. first question and these icons are not in xml. They are on draw able folder. this is gives methods can we use it And this is my trying package com.myproject.gama; import java.util.Arrays; import com.digitalaria.gama.wheel.Wheel; import com.digitalaria.gama.wheel.WheelAdapter; import android.app.Activity; import android.content.res.Resources; import android.graphics

How to get selected text using android spinner wheel?

雨燕双飞 提交于 2019-12-08 08:42:49
问题 I am using Android Spinner Wheel and I already set code for that. AbstractWheel wheelHorizontalView1 = (AbstractWheel) findViewById(R.id.wheelHorizontalView1); NumericWheelAdapter minAdapter = new NumericWheelAdapter(this, 1, 15,"%01d"); minAdapter.setItemResource(R.layout.wheel_text_centered_dark_back); minAdapter.setItemTextResource(R.id.text); wheelHorizontalView1.setViewAdapter(minAdapter); Here is how it looks like: So, my question is how to get 3 as my selected text ? Here is xml if

Android kankan-wheel modification

醉酒当歌 提交于 2019-12-08 07:24:21
问题 I am making a slot machine app and using kankan's wheel for the same. I want to modify the library such that when the rotation stops the item it will point shoud be the one that I set . I have done this but there is a glitch that shows that we have changed the actual image to the one that we want . How to achieve this? Update: I have researched a lot on this and if I am right , android scroll is based on duration and distance not items . From kankan's wheel library I can get current item .Now

How to get selected text using android spinner wheel?

不羁岁月 提交于 2019-12-08 01:31:24
I am using Android Spinner Wheel and I already set code for that. AbstractWheel wheelHorizontalView1 = (AbstractWheel) findViewById(R.id.wheelHorizontalView1); NumericWheelAdapter minAdapter = new NumericWheelAdapter(this, 1, 15,"%01d"); minAdapter.setItemResource(R.layout.wheel_text_centered_dark_back); minAdapter.setItemTextResource(R.id.text); wheelHorizontalView1.setViewAdapter(minAdapter); Here is how it looks like: So, my question is how to get 3 as my selected text ? Here is xml if needed, <RelativeLayout android:layout_width="match_parent" android:layout_height="wrap_content" android