I would like to create a listview (empty at the beginning) and each time i click the add btn to add a new item! Could someone help me with that! I could not find an example online
@JMHdez thanks your reply ! I simple added the btn to the toolbar and as you said i have a listview inside my stacklayout
What have you tried? What does the code you have right now look like?
You surely must have some idea of how to solve it!
@GeraldVersluis I have just created a list with mvvm design and now am working with the onitemtapped event! Is that kind of listview usefull for what i want to do?
I think the button should be outside the listview... to add an item to your listview you have to use a ObservableCollection and add an item to your observableCollection list.
@AlessandroCaliaro I would like to use a floating action btn! any good demo for both platforms?
@AlessandroCaliaro i tried this one FAB but android crashes
I actualy working on app that i used something like that:
I solve the problem using an AbsoluteLayout as content and inside of layout i put a ListView and a button, using AbsoluteLayout.LayoutBounds and AbsoluteLayout.LayoutFlags you can set the position of elements.
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies