All Questions
21
questions
0
votes
1
answer
200
views
Kotlin Cancel Drag Action Mid Dragging
If a user is dragging a button and a condition becomes true the dragging must be cancelled and the item must return to its original position.
I am having a hard time finding a way to cancel dragging ...
1
vote
1
answer
383
views
DragShadowBuilder Not working in Android 11
Running this simple code on two android emulators:
Pixel 4 API 30,
Pixel 4 API 28
When I long-click the image-view on API 30 emulator the view gets invisible as per the expectations but the views ...
0
votes
1
answer
38
views
Drag button called view whats wrong and how to solve it
Hi guys can plz help me in this case
i want to drag a button called view ,
i set up the code like u see down there , but i still can't drag it , can u give me diffident solutions plz with a good ...
0
votes
0
answers
2k
views
drag and drop an image on android / chrome
I'm trying to get dragging an image on android (chrome) to work, but when I, for example, try the demo from w3schools I get the following
In words: Instead of let me drag the image around, chrome ...
4
votes
0
answers
176
views
Draggable Expandablelistview parent and child relationship Android
I have implement Expandable list view in navigation drawer.
My Question is I have drag and drop Work to Personal so now Work is personal child this is possible in android?
That is possible how?
...
0
votes
1
answer
869
views
mapbox android sdk - how to make a draggable marker
I'm using Android Mapbox SDK, and as far as I know, they haven't implemented draggable feature for markers yet. Is there any workaround to do this that works on SDK 5.1.0?
All the workarounds I've ...
0
votes
1
answer
320
views
Horizontal scrolling containing multiple draggable lists in Android
I'm creating an app with an intended layout being a series of column lists with the ability to drag a list item from one column to another. Additionally the entire layout should be horizontally ...
1
vote
1
answer
497
views
How to drag and align an item in Android custom view?
I created this custom view to add a layer at the top of app
There is a draggable circle in the view
public class LockView extends View {
public LockView(Context context) {
super(context)...
0
votes
1
answer
2k
views
Drag and Drop in Android: How to get the new position of a dropped View
Hi I got an simple drag and drop activity. It looks like this:
public class Test extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(...
0
votes
1
answer
169
views
Slide effect of element with finger on Android
I am trying to find out what is the best approach for sliding effect of some element on the screen on Android device.
I read about drag and drop of the elements, but I am not sure is that the correct ...
0
votes
0
answers
425
views
custom draggable icon in android
package com.example.drag_drop_practice;
import android.os.Bundle;
import android.app.Activity;
import android.view.MotionEvent;
import android.view.View;
import android.view.ViewGroup;
import ...
0
votes
1
answer
775
views
how to get index or position of listview control
Hello guys I am new to android programming. I want to create a puzzle game in which user will sort the html unsorted tags by dragging them on the screen. I am using a listview control to store the ...
0
votes
1
answer
353
views
Add Draggable Imageview to relative layout from custom class android
How can i Add Image View to my relative layout at particular postion from my custom class that extends relative layout and make that imageview draggable to particular portion of layout ?
below is my ...
-1
votes
1
answer
1k
views
Android, overlapping imageViews
I am creating programatically ImageViews and dragging them in the same layout.
I would like to disable overlapping for this ImageView. Is there a setting to be applied to disable overlap when I ...
0
votes
1
answer
794
views
Drag & Drop ListView Item on long press of it in Android
I'm using this library to implement Drag & Drop feature for my listview items. This works greatly but needs a handler(i.e an imageview or any other view to press) to drag the items. I need to ...