I want to play a sound when the user touch the button and have the sound stop when the finger is lifted. This is my trial code which works as I wanted ...
I want to play a sound when the user touch the button and have the sound stop when the finger is lifted. This is my trial code which works as I wanted ...
I have a basic understanding of Java, but am completely new to Android Studio. I tried making a program that increases a counter when a button is held ...
I want to execute some action if user click the space(created by margin) between two items in RecyclerView, however I did not found a way to do that. ...
I'm using a gesture detector to capture scroll events from a scroll view: When using compileSdkVersion 30, my app would crash on the onScroll funct ...
This is my first game app. I've built a card game, players can tap or drag a card. I've noticed that when a player taps a card, it appears tha the onT ...
I need some help how to solve my problem. I have a recyclerview and its items contain an ImageView. I wanna move imageview with my fingers. I create a ...
I have a radioGroup(dir_index) sitting on top of a cardview(directionCard) [In essence, the radiogroup is a subsidiary of the cardview]. Now, at an un ...
Here is some seemingly classical code, that I have in a small android app. It is handling some button, so nothing special going on; but this is the qu ...
I have a SurfaceView in my activity xml and I want to get some informations when the SurfaceView is clicked. For that I have a class like below my ...
I have a plus and min button that work when pressed. Now I want to make them when you hold/press it down it goes up/down more then 1 at a time. This ...
I can't seem to find a simpler way to only highlight a RecyclerView item when pressed but while this code I have come up with seems to work ok it will ...
I'm building an OpenGL ES app and I use an onTouchListener to detect touch events, as suggested by the android development website (https://developer. ...
I have the following kotlin code, and I can't get the onTouch\click listener called. I am using an emulator and i click the fragment many times in man ...
I am setting an onTouchListener on a linear layout and on touch of the layout user can drag the layout around the screen and reposition the layout. Th ...
While holding down button with one finger and I navigate to another Fragment with a different finger, MotionEvent.ACTION_UP doesn't fire after lifting ...
Hey and sorry for my bad English... I have a ListView in my ListFragment with a custom Adapter. In my Layout I have an Button. The Button and the who ...
I am working on a app to unlock a door by sliding an Imageview upwards and holding it for a a few seconds. I have designed a layout in a ConstraintLay ...
I have following image, consisting of three colors (white, grey, black): On touch, I want to find out, which of these areas has been clicked - wh ...
I basically want to detect a long touch to my frameLayout, once detected I'll call an alert message that I have in a method. My activity contains a ...
I'm using a wearable device and I'm making an app for it. I have a timer and some other things that begin when I click a start button. Thing is the st ...