I am looking to create a UI experience almost identical to swiping through images in the Camera Roll on the iPhone. I have 5 images that I simply want to be able to swipe through. This view will be the first view of a Tab Bar Controller that I have in place. This is my first iPhone (iOS) app attempt so if anyone feels this question needs to be broken down into smaller chunks, please let me know.
Here's an example of the paging control for MonoTouch I developed some time ago: https://github.com/escoz/monotouch-controls
Take a look at the PagedViewController. That code is actually used in my app, Quicklytics.
Use Pagecontroller.
In this example they have add label, instead of that you add your imageView.
EDIT:
For Monotouch.
The Photos module of Nimbus is exactly what you are looking for.
http://docs.nimbuskit.info/NimbusPhotos.html
The MonoTouch bindings can be found here.
https://github.com/theonlylawislove/MonoTouch.Nimbus
Related
I want do create something like TabbedPage but as a View with scrollable "menu" ( I will have about 8 tabs). How can I achive this? I was thinking about doing CarouselView and somehow to make a tabbed header, but I dont know how to make it good. Or maybe there is a plugin for TabbedView ( I spent few hours and I didn't find anything). Thanks in advance.
James Montemagno made a a brilliant blog on how to implement this a couple of years ago.
That sorts out the Carousel View. Now to write the tabbed header I wrote 1 of these a couple of years back. What you need to do is make a stacklayout with orientation horizontal, make the width bigger than the screen width and then every new page you visit you can translate the top bars x coordinates to the left or right. and change the image in the bar so that it looks highlighted.
Have a real play with this, see if you can make the transitions between pages smooth and the translation look sleek. I managed to do it so Im sure you will be fine.
I would provide code but unfortunately it was for a client and I cannot share his intellectual property.
Xamarin.Forms does not provide a TabView control but only a TabbedPage which seems to be no good in your case. There are commercial third party libraries that offer such a control out of the box (e.g. from SyncFusion). I looked quite a long time into this issue. Finally, I went for creating my own implementation which is based on a data bindable StackLayout with a horizontal line of buttons. Only the ContentView that is associated with the selected button is shown all other ones are hidden.
Check out this link on the old Xamarin forums here
I think this is exactly what you're looking for here. I had do a few things to get the sample to run like upgrade the version of Xamarin.Forms, then delete the nuget package for carousel view prerelease since its since rolled in with Xamarin.Forms.
I have a sample code from xamarin.com:
How to click the Button and take a photo without preview?
Maybe you have an articles, or videos. I'm new at Xamarin, so it will be awesome, if i'll get as more details as possible.
This article will get you started with a stream of the camera to a surface in your app. It shows you how to get to the Camera class, which in turn has a TakePicture method that you could use for your problem.
Please also take a look at this answer on SO on a similar question (native Android, but the same concepts apply), which suggest showing the preview on a 1x1 surface because you can't really prevent the preview on Android as far as I know.
PS: don't forget to add the correct permissions in your manifest for Camera access.
I create the application on iOS using Xamarain.iOS, where one of the functions is erase the object from a photo of room and insert another element on this place. The application is in the process of planning and I looking for some libraries that will assist. Currently I found only openCV, but I have a problem with binding it to Xamarin.iOS. Over the binding I am still working, but I wanted to know if there are any alternatives to openCV. I was very long time looking for any library that would assist and maybe someone knows a better option.
I want do something like this: https://itunes.apple.com/us/app/easy-eraser-remove-unwanted/id839750800?mt=8
Check whether below sample is useful or not
https://github.com/craighowarth/WipeAwayView
It is used to erase the upper layer to reveal the underneath image or view.
Hope it helps you...!
I'm trying to add a media viewer page on my app (very similar to the photo app on WP), so my first idea was to open a new Pivot Page with one photo on each page, but it overload the memory when there is to much photos and I don't have the zoom in / zoom out fonctionnality.
Then I found this cool example provided by Microsoft who do exactly what I wanna do :
http://code.msdn.microsoft.com/wpapps/Basic-Lens-sample-359fda1b
The problem is, I've tried many things, but I can't get it to work. Do you have any idea how I could use this cool Media Viewer ? What classes should I import? How to implement it in my project?
The Media Viewer class is indeed not that simple!
I've also started to tweak it so it would fit my purpose, the solution isn't finished, but you can already take a look at it here: https://github.com/Depechie/ImageSliderMediaClass
I changed the class so that it would act as one horizontal image scrolling overview, without the zooming capability.
All the info i found about page fliping is just source code that i'm having trouble implementing to my code.
this tutorial
kinda explains the logic behind page fliping but the code is for windows form and not WPF.
i dunno how to approach it because as i understood bitmaps are not used the same in WPF.
anyone has a good tutorial or could give me some pointers?
What im trying to do is i have an image that fills entire screen and i want to flip it to to next image ( like a book) that will also take the entire screen.
(Not 2 images on a screen)
Help?
To anybody that suggests using C++ or DirectX, I'm not interesting in learning those skills. Only C# code please.
The WPF bag o'tricks has a page flip sample with code.
The github source
https://github.com/thinkpixellab/bot
Specifically, look at the TransitionPresenter sample in the demo project where there are multiple transitions defined, one being page flipping.