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.
Related
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 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
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'm currently developing an Android app for a client. Problem is their mockup screens contained a UI view that I'm unfamiliar with. In short, I'm not sure what approach/implementation to use.
This is what I'm trying to achieve:
The user taps on SALES TOOLS, and a popup of some sort appears with options leading to other features of the app.
Any suggestions on what implementation I can use?
There are lots of library Available in market
Please check this URL it may be help you links given below
Chrome Style Help Popups
Quick-action-pattern-in-Android
Another alternative would be "super-tooltips":
https://github.com/nhaarman/supertooltips
Use android.widget.PopupWindow to create popwindow for a view.
using it various method you can put the window where ever you want.
Use this link will satisfy your needs .
https://androidresearch.wordpress.com/2012/05/06/how-to-create-popups-in-android/
Basically, I don't know what functions & XML attributes to provide when programming a specific Android feature; eg, Android Search Widget with Edittext in the middle, magnifier glass on the right, and a custom icon on the left.
From where I can find out what methods, parameters & XML attributes to call when doing a specific Android task?
Fron what sources can we find out how to program specific Android feature? Are there some overall programming pictures to reference?
Praiser
Everything you need to know about Android development can be found at developer.android.com.