i want realize a page like the one below, using xamarin.forms mixing up some renderers.
This is a pure Android example, and it works fine http://blog.iamsuleiman.com/toolbar-animation-with-android-design-support-library/
but how to achieve it with .forms?
As shown in the example code, the page is composed by a
CoordinatorLayout
. AppBarLayout
.. CollapsingToolbarLayout
... ImageView (etc...)
. RecycleView --> It should be fine use the .forms listview here, but how?
If you insist on forms project and not native I would go by inserting complete native page into xamarin forms project. You can find more info how to create a renderer for native page in forms: https://blog.xamarin.com/customize-your-xamarin-forms-app-with-pages-for-each-platform/
Related
I am using xamarin forms for my project.
I am using Picker in forms. When the picker items has long text, then it will wrap like multilines.
But it shows like below image:
I am using Renderer Page in android and add the below code:
Control.SetSingleLine(false);
But it is not working. Can anyone please help to resolve this issue.
I want to develop a custom popup that works exactly like a picker. The only difference I am looking out for is that I want a view or page to be in the popup content rather than the basic picker items.
Have you checked Rg.Plugins.Popup ?
https://github.com/rotorgames/Rg.Plugins.Popup
You can create your own pages and choose where and how they will popup. Animations ,click to close, timeout closing and many other features are supported.
Do we have a way to activate mouse gesture on UWP Desktop for a computer that does not have touch capability? On IOS (in the simulator) we can use the mouse to do PullToRefresh or CellSwipe on Listview.
I use Xamarin.forms
The problem here is that the ListView control in Xamarin.Forms doesn't Support PullToRefresh or CellSwipe on UWP. So you have to implement these functionalities by yourself and you can use the code provided by Shubham Sahu in the comments or you take a look at third pary libraries like Syncfusion. They provide also a ListView Control which is already able to handle PullToRefresh or CellSwipe on UWP.
I am trying to get better understanding of Xamarin.Forms renderers. I know what they are. They create a native view based on input from Xamarin Forms. You put in a Xamarin Forms ViewCell, and you get back a Android View or iOS UITableViewCell, or Windows DataTemplate. I get that.
But I have seen code using ExportRenderer and other code using ExportCell and I dont know what is the difference. When to use one over the other?
Xamarin documentation/page search is not finding either one.
They usage is identical:
[assembly: ExportRenderer(typeof(MyXamarinFormsElementType), typeof(MyNativeRendererType))]
[assembly: ExportCell(typeof(MyXamarinFormsElementType), typeof(MyNativeRendererType))]
In fact, in my code, I have a ListView with ItemCellRenderer and I tried adding either of these two assembly attributes and there is no visible difference.
As I said, Xamarin API provides zero information on this.
I am in process of learning Reactive UI for Xamarin and going through the documentation. However was not able to find that does it supports ViewModel to ViewModel Navigation. Is there any example application for same.
At the moment navigation support for Xamarin forms is somewhat limited. So is is not possible to select if a Page should be Pushed Modal or not.
After trying to use RxUI nagivation I surrendered and now use RxUI together with xamvvm framework to deal with Page/ViewModel creation and ViewModel based navigation.
Check it out https://github.com/xamvvm/xamvvm/wiki
Please have a look at this issue: https://github.com/reactiveui/ReactiveUI/issues/1048 There are ways to do it but you'll have to implement it yourself.
You can do it natively by following approach described here https://blog.kloud.com.au/2018/05/15/data-first-approach-in-xamarin-forms/