How to create vertical list like the settings screen for android tv - android-tv

I want to create a simple one-columned vertical list like the list on the Settings App on Android tv (Check attached image). How do I achieve this on android tv using leanback?
I've tried using a regular Recyclerview like on an android phone and I didn't get the same feel even after implementing OnFocusChangeListener.
Someone suggested VerticalSupportFragment in this question but other people mentioned there were bugs getting it to reach the full width
Is there any other way to achieve this ?

Use androidx.leanback.widget.VerticalGridView
val adapter = MyAdapter()
adapter.setItems(list)
verticalGridView.adapter = adapter

Related

Xamarin - control that allows you to select from icons by swiping like iOS photo edit tools

I'm trying to find a control for Xamarin that allows you to pick a tool from a list of icons, but in a swipe format like in the iOS photo edit tools (image below).
I tried using CarouselView, but that only displays one item per swipe, and each item before and after - however I'd like around 5+ icons on screen, with the middle one selected.
If there isn't a control, I'll have to build one myself, but would prefer to use something that's already available if possible.
Thanks for any direction!
Oliver.
For me, the best practise for your case is to use the swipe gesture
https://learn.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/gestures/swipe
and write an expandable animation like this sample
https://github.com/devcrux/Xamarin.Forms-Expander

iOS app with Gluon, get app in full screen and keep screen alive

I am making a simple iOS application with two Views using gluon. In one of the views I need to be able to keep screen alive indefinitely, prevent it from rotating and have it full screen without the status bar showing. The other View should have the default behaviour(rotating normally, let screen go off when there is no touch input by the user and status bar should be showing).
I have seen some tutorials on how to do this on Android binding an interface to native code. Is this possible to do in iOS? I have looked around everywhere online and no one seems to have done this. Any pointers ? Thank you.

Qt Screenshot sharing app - How to select the area of a screen

I am trying to code an app in Qt for capturing and then sharing the screenshots. For now my application captures the screenshot, shows a preview and saves it. I am yet to do the upload part. but before that I would like to be able to select the area of the screen of which the screenshot needs to be captured.
I tried searching and I couldn't find any helpful articles or documents in Qt. So can anyone help me?
PS: The idea is to create a similar app like lightshot and several other similar tools.
Thanks in advance
There are two methods that you can use for this: -
1) Capture an image of the screen and then display that, full screen to the user, essentially allowing the user to crop the image.
2) A more commonly used method is to create a full-screen, topmost window that has no title bar and is transparent. This allows the user to drag out an area, which you can draw an outline to represent the area the user requires.
I recommend the 2nd method and creating a transparent window is simply a matter of changing the window flags, as you can see here.

Regardin Flex mobile alert

I am creating an application using flex mobile but could not find how to show alerts using flex.
So can anyone please tell how to show the alert in flex mobile , mx alert don't work in this and i could not find an alternative in spark.
Thanks
If you'd like to use the native alert popup (a title & message with 1-2 buttons like Ok|Cancel) I suggest using ANE Native Alert
You can either make your own pop ups, or if you don't want the hassle.
There is a Native Extension called AirAlert that will display the native pop ups. You can find it here:
Air Alert Git Hub Page
It works well on both platforms.

Swiping through content on Blackberry Playbook

I am creating a Playbook app in Adobe Flex/AIR.
I have a situation where there is too much content to show all on one page so I would like it where the content overflows vertically, the user can swipe to scroll down, like they were viewing a website on an Ipad.
I am extending the View class to make my screens, I could place every screen in a one element List or surround it all in a Scroller but surely there must be an inbuilt way to do this on the Playbook?
With the limited Blackberry documentation, I'm struggling to find the solution, any ideas?
Thanks
I'm developing my own Blackberry Playbook app myself. Here's some advice:
Take a look at the List View options available. You might be interested in using a TileList
Review listening for Swipe Events to update the position of your List (be it TileList or SectionList).
Check out the Blackberry Tablet documentation. It's not that limited!

Resources