Achieving smooth scrolling in a BlackBerry app - blackberry

I have developed a contacts screen in Blackberry. I have almost 40/50
contacts each being displayed in a HorizontalFieldManager on screen. All the HFM are on one parent VFM.
In one short I am able to see 5 records. My problem is when I scroll down to the 6th, 7th record the screen is not showing the record on which my focus is present. Then after reaching the 10th record I can see the records from 6th to 10th position.
I want a smooth scrolling, just like the one in Blackberry Messenger.

You can use ListField , you can implement ListFieldCallback interface and custom draw each row using drawListRow method.

Related

How to implement pagination or infinite scroll in FirebaseRecyclerAdapater

I am using RecyclerView to show search result. Everything works perfectly fine. The RecyclerView is implemented with FirebaseRecyclerAdapter.
Now, I want to implement pagination/infinite scroll in RecyclerView on scroll down.
Initial number of data on RecyclerView has to be 10 items, even though there are 100 items in the database.
When user swipe from bottom to top, RecyclerView has to add more data at the bottom of that 10th item.
RecyclerView has to load 10 more items every time it loads more data.
The Application must use FirebaseRecyclerAdapter.
Please let me know if there is anything you don't understand and please help me.
To implement infinite scroll with FirebaseUI use the FirebaseRecyclerPagingAdapter. You can configure page size there, and it will auto-load data in increments of that page size.

Modify WatchKit Table View to prevent pushing interface out of view

I am developing a stopwatch app for Apple Watch similar to the one that is preinstalled on the Apple Watch by default. I want to have a lap table similar to the preinstalled one that can scroll but doesn't push the control buttons outside of the user's view. Right now after I lap enough times, the stopwatch controls no longer be become accessible to the user without scrolling down. Is there any way to make the WatchKit Table view scroll in place by turning the digital crown and display say 3 entries at once without pushing the rest of the UI below the screen?
Currently in watchKit the tableViews scroll all the way out of the screen if they don't fit in. What you can do is
1) have the fourth tableView cell as a disclosure indicatory like this "V" while hiding the cell prior to the recent 3 and when this is clicked load the rest of the cells and have an extra cell to display "^" when all the cells are display . Clicking this will hide them back to the recent 3.
2) Navigate from the fourth cell to a new Interfacce controller displaying all lap data.

How can I change the behaviour of selecting a draggable cell with VoiceOver in Swift?

I'm very new to iOS and accessibility but I am trying to write an iOS app for visually impaired people that will also be user-friendly for sighted people.
It involves the moving of cells from one UICollectionView to another. The second UICollectionView is like a big square grid of cells and I have implemented drag and drop for sighted people. However, for blind people, I need some other way to move the cells as my testers, who are blind, tell me it's unlikely for them to use a drag and drop app.
The problem is if I turn VoiceOver on, the double tap gesture does nothing. If I double tap and hold, it selects a cell to be dragged, rather than just selecting an item to be moved and waiting to be told where to move it.
Is there some way to have drag and drop for when VoiceOver is off plus a different approach to moving the same item if VoiceOver on?
You can find some information about Drag & Drop using VoiceOver in the What's New in Accessibility WWDC 2017 video with a perfectly detailed summary.
accessibilityDragSourceDescriptors and accessibilityDropPointDescriptors seem to be the most important variables to be used.
I never implemented it myself but this site is the first place I would go to find the proper way to do it.

Objective c swipe a series of buttons left and right to reveal more buttons

I am very much new to iOS coding and Objective c. I am developing an App for learning it.
The app is from Github which i am modifying. The user can draw on the screen and can use different colors to select the pen color and can also erase the whole drawing. But i do not have much space on the mobile screen.
I was searching for something that allows me to slide a series of buttons to the left and right with swipe so i can have a lot more color for the user to chose from.
Here is an snapshot
As of now i can fit 5 colors and one erase all button. (Sorry about the GUI). I want let the users to slide the button left to righ to reveal more buttons.
There is somthing that can be done with table cell (from Github)
https://github.com/MortimerGoro/MGSwipeTableCell
But i do not want to use tableview.
Is there a library where i can do that ?
Look at UIScrollView. It will allow you to have more colors available and s very easy to to use.
You can have it free scroll, or have paging, which means it snaps to a page, similar to how the Photos app works.
https://developer.apple.com/library/ios/documentation/UIKit/reference/uiscrollview_class/index.html
Thank you #Gary,
I did find a library that did exactly what i wanted
Link : http://code4app.net/ios/LTInfiniteScrollView/54732343e24741f423b03ca0

How to make tables like NSTableView in the iphone

Is there a class or framework that lets you draw tables with rows and columns on the iPhone. Or do you have to draw the table yourself and place a textfield in each slot.
Use UITableView. It doesn't have columns because iPhone screen is much smaller than average screen of desktop computer. But if you want you can emulate them with custom UITableViewCells.
You need to draw the table yourself and place a text field in each slot. It's possible that you could find an open source implementation, but it's not very hard to write one based on a UIScrollView, I've done it.

Resources