There is a particular functionality from Android that I would like to implement in a Xamarin.Forms/Xamarin.Android project
It is a List or Grid or some Layout that have a Scroll Index, like this:
I already create a ListView with this "FastScroll Index" via Custom Renderer, which contains an Adapter and also a scroll listener.
Is there any chance to get something like in the image?
Related
I have just started developing with Xamarin, and in me getting familiar with the different views/ui controls - given that ListView has an ItemTemplate property, which seems I can use to "embed" any combination of views I want - should I then go with ListView or Grid when I care about displaying different views in a single row ?
I mean, using a ListView with a StackLayout as template, with Stack orientation set to Horizontal... vs a grid ?
Looking at the Xamarin.Forms Control Gallery it states the following:
ListView: https://developer.xamarin.com/guides/xamarin-forms/controls/views/
An ItemView that displays a collection of data as a vertical list.
Grid: https://developer.xamarin.com/guides/xamarin-forms/controls/layouts/
A layout containing views arranged in rows and columns.
Therefore from those two definitions you can derive the following:
If you have a list of Employees I would use a ListView
Where as if I have a login Form where I need to display a username and password box it would be correct to use a Grid. Using a list be more difficult and give less flexability.
Obviously the final decision is up to you
Can anyone tell me how I might add buttons, or other components, to a title/tool bar without using the items array? For months I've been struggling to find a way to make the bar on all my views contain the same user buttons and icons.
It's a struggle mostly on List item detail views where only a back button shows. I want the back button but also own buttons on the same bar. This is so my app has a uniform look and accessible functionality across the entire build.
Toolbar and TitleBar extend Ext.Container.
In Sencha Touch containers always store their components inside the items array.
If you want to have a toolbar that always look the same just create your own by extending Ext.Toolbar. Use the initialize method of such extended Toolbar to add the buttons/icons.
To use it with a list you can create a wrapping container, which contains the extended toolbar and the list.
Attached is the screenshot of the UI that I would like to have in my app. When I click on the listitems on the fragment on the left side I see a arrow pointing(question mark in red) on the list item which was clicked, I would like to know how can we achieve this in UI layout. Any special settings to be set?
I was looking at the same feature.
To implement similar, I'd suggest showing an image on the selected item in the list, this would require code rather than Layout XML, It would be controlled by the list fragment when an item is selected. That way you get the visual effect that the two fragments are related via the arrow image.
Did you end up giving it a go for yourself?
I have list of object that I want each item to be rendered with some renderer that include a delete and edit buttons with some text.
What is the best way to make the list of object re-order-able in drag/drop fashion so the user can drag on item on top of another to change the order of the list.
Basically, just use a List, or DataGrid, with an itemRenderer that displays the buttons. Look into the DragEnabled, DragMoveEnabled, and DropEnabled properties for the click and drag sorting.
Look into using itemEditors for the edit functionality.
At the risk of sounding self indulgent, our DataSorter component is designed for sorting lists. It is modeled after the Netflix movie queue / YouTube Playlist editor, but can be easily modified or extended as needed. Free developer editions are available from the web site and you can check out our API Explorer sample.
Our product team has requested custom cursors during drag/drop operations. They have provided me with three images to implement:
Open-Hand-Grabber.png: displays when a user hovers over an item that they can drag
Closed-Hand-Grabber.png: item is being dragged
Closed-Hand-Grabber-No-Drop: item dragged over an area where it cannot be dropped
I have embedded these images into the Flex application and I am now trying to implement the desired behavior.
My first thought was to listen to the drag/drop events and set the cursors using the CursorManager.setCursor() method. This solution seems very code intensive and I feel that there must be an easier way to skin the various drag/drop cursor states.
Any ideas?
Check out the various cursor styles available on the DragManager class:
copyCursor
defaultDragImageSkin
linkCursor
moveCursor
rejectCursor
http://livedocs.adobe.com/flex/3/langref/mx/managers/DragManager.html