In a swift Google search, I do find a couple of similar questions to pointing to Xamarin Forms. I need to do this in Xamarin.Android. This documentation talk about the Xamarin Android navigation bar but it doesn't say if it even possible to customize it. Which is the right approach for me to make a custom navigation bar with back and next buttons??
Thank you
If you are working with Xamarin.Core so you can Google without specifying Xamarin. You will have a small extra work to "convert" the Java code to C# code.
Here for example a tutorial to create a custom Action Bar for Android :
https://www.journaldev.com/9952/android-custom-action-bar-example-tutorial
Don't forget that Xamarin is just a wrapper that allows you to create Android application using C# language.
All the Android framework is available and you can use it.
Related
Does Android use or have native buttons for something like NEXT or CONTINUE - I'm working on a 2 step process and want to use what Android has NATIVELY vs Custom design.
For example, IOS has the native TOP NAVIGATION that you can change.
In this instance, we are using a CONTINUE button up top. This is a native option with IOS. Does Android have anything like this? If so, what does it look like and where is it placed. I cannot find anything on this.
Thank you in advance!
No android do not have native button.
You have to make your custom xml for action bar and add next/continue buttons.
A good way to learn about what action bar/ App bar provides and what it doesn't visit Material.io.
I would suggest using a floating action button (FAB).
I think this is as close as it gets for a native next button, although it can be used for many things.
For android design components I would recommend you having a look at Material.io. There you will get in depth explanations for almost all android design patterns!
I wish to display notifications as shown in the image link below using Xamarin Forms shared project. Is there a way to add text/number over the icon of the toolbar item?
Follow this link to view example since i cant post images.
This is not possible out of the box in Xamarin Forms at the moment (v1.4). You can however create a custom renderer in your iOS and Android project that does the trick.
This article might help you: Creating a Cross-Platform Application Bar for Xamarin
On TabBarItem (for iOS) there is a possibility to set BadgeValue which probably is what you are looking for. This property does not exist on ToolBarItem.
Another, uglier, solution is to add images with different numbers and in your view model select the appropriate image.
How can I add an icon next to the search orb, just as displayed below? I'd like to display a login page when the user clicks on the icon.
You can't, if you want to use the standard widgets offered by the Leanback library, such as BrowseFragment.
There is a way of creating your own version of the BrowseFragment widget, so that it is fully customizable and you can add as many buttons as you like, but it is definitely not easy to do. I've written a series of posts on this subject, which you can find here:
Building for Android TV
There is also a demo project that already gives you a starting point for the custom interface. The code can be found on this GitHub repo (episode_4 is probably what you're looking for).
I would like to implement a drop down menu from the ToolBar like in the Ios version of Google+:
But as as a beginner in android development, I don't know which component should I use, anybody can help me with that ?
Those SO question you've mentioned in the comments are true: You should not implement an exact copy of that iOS navigation in Android. If you choose to develop an app for Android then you better make it look like an Android app (because that is what your users will expect).
However, that does not imply Android lacks of similar navigation pattern. What you are looking for is ActionBar dropdown navigation and can be found on this official docs. That link should be enough to get you started. :)
I am new to android development. I want to implement something like this image shown that whenever image is clicked on action bar, a pop up type of thing is shown. I want to know what feature of android is this and how can it be implemented.
The Navigation Drawer pattern is officially described in the Android documentation!
Check out the following links:
Design docs can be found here.
Developer docs can be found here.