Hi StackOverflow Community.
I am struggling to add a text label along with a custom image pin in Xamarin forms custom map project.
Currently, i followed up the official Xamarin forms the documentation of how to implement custom pins on the map.
But want to extend a little more this functionality as showing also a label right below the pin is Critical for the application.
I wasn't lucky to find any custom solution for this
Could you please assist?
Below you can find the website solution I am using with google maps. Something like that needs to be created also for the Xamarin app
Related
I need to design bottom navigation bar like I attached image using xamarin.forms common code for both android and IOS. Can anybody refer any link or library tool to do this?
You should check the xamarin community toolkit, this is certainly possible to create with the tabview.
https://learn.microsoft.com/en-us/xamarin/community-toolkit/views/tabview
So I am creating an app in Xamarin forms. I am an experienced .net developer but my Xamarin forms knowledge is still in the early stages.
I want to create a new custom control (Scheduler / Timeline control) that looks like the following picture:
My first idea was to start from controls already existing in Xamarin forms like Grid,...
But now I am thinking, if it is maybe better to start from Android and IOS controls instead?
Is there somebody who has experience in making custom controls like this for Xamarin Forms, and can you point me in the right direction?
I have for some days been reading on different forums about the issue of selecting a text and copying the text natively from a label in xamarin forms and it seems to be no straightforward way of implementing this.
My problem is that I need to present a large amount of data from a book in a label and the user should be able to select and copy a chunk of text from the label.
I moved on to present the data in an Editor component instead but then the user can edit the text in the Editor. Making the Editor component read-only doesn't solve the problem either.
Any suggestions would be greatly appreciated!
I recently faced the same business requirement. An Editor with Renderers customization on each platform was the solution for me.
In short, Android renderer leverages CustomSelectionActionModeCallback and CustomInsertionActionModeCallback properties of EditText to customize context menu for text selection and insertion, while iOS renderer is pretty straight-forward and sets Selectable and Editable properties of UITextView.
Check out my post with full code for Xamarin.Forms. You can also read posts on native Android and native iOS for more details.
I have the same requirement and I implemented CustomLabelRenderer for Android and iOS platform.
Is it possible to mix iOS Storyboards and Xamarin Forms within one application? I have a bunch of views that are easier to be created in Forms, but some which are heavily customized so we would need to create some of them in native code.
I would like to use Storyboards to create the native parts, but can't seem to find a way to navigate from a Forms page to a Storyboard and vice versa.
I don't mind doing it from code, just need to know the direction to look into and if it's even possible.
You can create native views using the concept of Custom Renderers (see links below). The idea is that you create a Xamarin Forms Control that's shared between all platforms and which old common properties (like colors, general data etc), and do the native rendering on the iOS/Android/WP projects.
So, for your storyboard, you can create it usign Xamarin.iOS, and render using a Custom Renderer. The link posted by #GSerg in the comments have some information and examples, but you can take a closer look at the oficial documentation as well:
Introduction to Custom Renderers
Customizing Controls on Each Platform
Customizing Control Rendering in Xamarin.Forms (video)
Also, for more real world examples you can take a look at the Xamarin Forms XLabs project.
Thanks to Rafael Steil's answer. I looked at the links and a few more samples.
Notably:
Custom Renderer Map
Using Xamarin Forms alongside Storyboard
And I created a sample project to show the back-and-forth navigation between Xamarin Forms and pages created in Storyboards. You can find it over here:
Xamarin Forms Mixed with Native
I creating my first appcelerator app and looking for some info on whether something is possible, and if so is it easy to implement.
I'm using Titanium SDK 2.0.1.
I'm trying to create a layout similar to the Stream window in the Google+ app for Android:
1: A large header (Can the navbar property of Ti.UI.createWindow be adjusted?)
2: Two tabs under the header (Would like to be able to adjust height of them if possible? Are there alternatives to Ti.UI.createTabGroup if this is not possible?)
The main content I can figure out easily enough I reckon.
Any examples or links on how to achieve this layout would be great.
Thanks
There is no way to do that type of NavBar in Android using the native Ti.UI.Window properties, but you can just create your own NavBar using a view and stick to the top of the window. For the tabs, I'd look at http://www.tomaspersson.com/2012/03/20/titanium-viewpager-module-now-available/ - I'm not sure it will have all the options you need, but it is a good starting point. Good luck!