I'm learning Xamarin (Forms) at the moment and I want to create a special component for my app so I'm looking for some guidance to get me started.
I'm imagining a component which has a main button in the middle, with text that could be "Birds" followed by the number of birds spotted this week.
Then, for each species spotted this week, there would be a line leading to the species name and the aggregated number of how many of that species have been spotted (so x number of lines). Basically a kind of a grouping diagram which acts like buttons.
I drew it up in mspaint, just without numbers.
I imagine my first step working with Xamarin Forms is to create the component in both Android Studio and Xcode, then package it as an component.
Can my idea be done in both Android and iOS? If so, would you please provide some tutorials on creating something like it, because I haven't come across something that I can use to get started yet.
UPDATE: SkiaSharp looks like the way I should be going.. https://developer.xamarin.com/guides/cross-platform/drawing/introduction/
Xamarin allows you to build mobile apps completely in C# so you don't need native development tools (like Android Studio and Xcode) all development can be done completely in Visual Studio (Mac or PC).
You can totally make what you're describing with Xamarin Forms! In order for you to do it, you must make a Custom Render. See this guide on Xamarin's website for making a custom renderer.
Related
My goal is to create app on Android/Windows using MAUI, and as I want to be able to add to this app more functionality by plugins, I want to create some simple plugin system.
This plugins should be able to subscribe to domain events, add components (like menu items and "pages" components that will be shown in app after menu click), communicate with each other.
So, is there any way to do it cross-platform?
If it was only windows, I would just create plugins dlls, on app start up I need to load them, find every IPlugin or similar, initialize them, etc.
But where to store it on Android? How to compile/load this plugins on Android? (and in future not only Android, but iOS & Mac too)
P.S. I'm super new to MAUI stuff, and need to learn a lot, so appreciate full answers
P.P.S. Not a native English speaker, sorry for mistakes
This is my first time doing Xamarin Form or PCL. In Xamarin Form, I can see there are few controls and pages available. Can we still able to design android layout in resource folder and called setContentView in onCreate function.
Sure you can - you're fully able to mix-and-match any Xamarin.Classic code within Xamarin.Forms . You'll have to create the Android design inside the .Droid folder and understand that this functionality will only be available on Android.
To make it work, you'll have to create a Custom Renderer. Forms will use this Custom Renderer to embed the Xamarin.Classic code inside the Forms application. I suggest you to read the documentation about this subject, or check out this video.
Take note that - if you're doing this - you're not fully using the power of Xamarin.Forms. Forms is created in such a way it should be easy to create cross-platform apps with loads of re-use. Creating Custom Renderers will make it work for one platform, but not magically for the other. The OnCreate functionality is something is available in the Xamarin.Forms lifecycle as well, which does work cross-platform.
I hope this guides you to the right direction - good luck!
I have a UWP application and I want it to be able to run into Android and also IOS using Xamarin.forms. Is there anyway to port it and run it on both of them?
Short answer: no.
Long answer: Xamarin Forms is "Xaml" too, but works on top of a completly different framework.
If you have used a good architecture, you can use all your viewmodels (or whatever your ui logic is called) and just put a Xamarin.Forms UI on top of that. With a little luck, you can reuse a lot of the structure from your existing xaml, but as most names are different, it is almost a complete rewrite. Or you could put a native UI with Xamarin.Plattform UI on top of your code.
So if you want to go cross platt form, you have to add at least one completely new UI.
I started with Android Studio and would like to get started.
I do not like fiddling around with GUIs and would like to play lego with ready-made pages and common standard interfaces.
Where can I find Android GUI XMLs to copy&paste or download to get started?
Does anyone know a good Android resource site, something like templatemonster for Android GUIs?
For example I need:
a settings page with switches, range sliders and a couple of fields, nicely arranged and already profesionallly looking
a user profile page
an inbox/outbox
a speech bubble view
list/grid view with images
a login/signup/lost password menu
You can use library for GUI and many other purpose the best place is Android assets studio
And there is a page that haves tricks for GUI is Android cheat sheet
And Android assets studio for images
If you get stuck visit Android's official site
Grabbed by JRummy's Blog
I'm creating my first app in iOS and I'm very accustomed to developing in eclipse for Android. My first step is that I need to create a dashboard as the homescreen. I'm a little "confused" as of which layout I should choose in xcode. In android I always select the most basic of settups, and I end up with a blank activity and a blank layout. That's where I would like to start, since that's what I'm used to. I'm wondering if any experienced iOS dev can point me in the right direction into which template to start with.
It seems really easy to just say to use an empty application, but If I'm going to have to do a lot more settup that is not worth my time, then please enlighten me.
You' probably want to go with a single view application. This will give you a template with a view controller and a blank interface file (your choice of xib or storyboard) that you can build from. From there you can add what ever you want.
Using this template you will immediately be able to build your app to the simulator or to your device. However, if you already have an idea of how you would like your app to work, you could choose tab based if your app should have multiple tabs and most of the work will be done for you, or a utility based app will give you two view controllers, one of which will be presented modally. Etc, etc...