Adding Drag & Drop functionality to elements - android-studio

I want to make some elements of my app able to be dragged and dropped by the user, so that the user can customize the position and design his own UI.
What I mean by drag and drop is that for example, when you hold and drag the icons or widgets on your phone, you can customize their position. So I want to make some text or images of my app function just like that.
Thanks for the help!

Related

Use Control key and drag to select objects in fabricjs

The default way to select a group of objects interactively in fabricjs is to drag, which displays a blue selection rectangle and then, when the mouse is released, selects all the objects in the rectangle.
Because I am using the drag action to pan the background canvas, I want to change the way to select to use only Control + drag, i.e. hold down the control key while dragging. In all other respects, the behaviour should be the same as the default. Is this possible? How?
The reason for wanting to use Control + drag is that it then matches what the user needs to do in another part of the app I'm building.

Creating a custom layout for horizontal buttons with wrapping

I wasn't sure what to title this without explaining it all there. Essentially, I want to populate part of a screen with a bunch of buttons. The buttons should have text from an ArrayList (or other structure) and they should be aligned horizontally to each other from the left to the right of the screen. When there is no more room to the right, it starts a new row. I've attached an example. Example layout here
I know how to make custom list adapters for my objects and how to make listeners for parts within the list items, but I'm just not sure how to make the "list" of buttons go horizontally with wrapping to the next line.
It seems https://github.com/google/flexbox-layout might help you.
You can use FlexboxLayoutManager as adapter, or simply place all the buttons inside FlexboxLayout, they will wrap automatically depending on their width.

Angular2 Kendo ui drag and drop

I been trying to implement a drag and drop feature in kendo-grid for angular2 to change the order of the columns within a grid.
I noticed there's a kendo-sortable for drag and drop, but I'm failing to see how I can implement the kendo-grid with this feature.
Here is one way you can do this http://plnkr.co/edit/ehL52SiMkLBGb34sC8Dd?p=preview
The column chooser component is using the SortableComponent and allows you to reorder column, which are reflected in the Grid.

How to create nested tiles in Power View

I am currently able to use the tile feature in Power View to view data much more quickly. However I haven't figured out a way to have nested tiles to further drill down into the relevant data.
For example, I want a tile strip at the top of my view of all the different "Projects." Once I click on a tile, I want to see all the relevant data for that project and have part of that container have a strip of tiles to show "Risks, Issues, Action Items, etc." and other items in a list. See image in this link (it is a non-working dashboard, but showing you all to get a better idea of the hierarchy).
Does any one know how to do this? I know I can use slicers instead for one of the levels or view filters but I want to be able to use tiles for both.
If you use a slicer within your tile it will almost do what you want. However, you wouldn't get the nice icons for warning & error to be the source of selection. You could make it more visual by separately having a table that includes the images so that when a user selects a slicer value, it shows the appropriate icon.
HTH,
-Lukasz
In the September Power BI update they've added te possibility to: Drill Up/Down for column and scatter charts in Reports.
Check out: Changelog

UIPanGestureRecognizer on UItableCellView

I have added UIPanGestureRecognizer on UITableCellView. I want to drag one cell and reorder it inside uitableview. Basically I want to achieve the functionality given in iPad keynote slide reordering.

Resources