Conversation
Merge upstream changes
Merge GalNet News branch
Add Fortify page
Author
|
"What didn't go well" continued... I forgot to mention I tried binding EmptyView to a string property on my ViewModel. My idea was to show "Loading..." while downloading data and a message if there was an error but the text I set never showed. In a real app I would have spent more time on this and used a view rather than a string for these purposes. |
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Submission description
I used the challenge to experiment with a new UI for one of my published apps. (Android only)
GalNet News
Fortify
What went well
Initially I found the way CarouselView lays out the child views a bit confusing but after some experimentation it went well. So well that I created a second screen based on another part of the same app to experiment with multiple carousels.
I really like the options for customising how the items scroll.
What didn't go well
Adding to an ObservableCollection bound to a CarouselView from a thread caused an exception - Android.Util.AndroidRuntimeException: Only the original thread that created a view hierarchy can touch its views. Wrapping the add in Device.BeginInvokeOnMainThread() solved this problem. I don't have this issue when using a ListView in the original app.
On my Fortify page I wanted to have two items visible at a time but setting NumberOfSideItems="1" gives you three items on screen.
Updating from Forms 4.3-pre1 to 4.3-pre2 changed CarouselView.ItemsLayout. I needed to change ListItemsLayout to LinearItemsLayout to control how the items scroll. The docs have not been updated to reflect this change.
Missing or desired things
Optional position indicators and scroll buttons that can be customised in size, colour and shape.
The ability to have two items on screen at a time.