xamarin.android

Xamarin.Forms custom Android NavigationPageRenderer title and subtitle

这一生的挚爱 提交于 2020-01-01 10:01:10
问题 Currently working on a project where I want to use AppCompat and have a requirement setting title and subtitle on most of the pages. It doesn't work using AppCompat at all - neither setting the properties nor using a custom view. When not using AppCompat both works as expected. The full source code is available here so just run the app if you're curious :) using System.ComponentModel; using Android.App; using Android.Widget; using App1.Droid.Renderers; using Xamarin.Forms; using Xamarin.Forms

How can I link from an e-mail to a Xamarin Android app without additional dependencies?

陌路散爱 提交于 2020-01-01 07:10:29
问题 I want to link to my app from an e-mail. The Xamarin documentations describes how to link to an app: http://developer.xamarin.com/recipes/cross-platform/app-links/app-links-android/ However, it does that by referring to an additional component (Rivets) and it focuses on linking by code: Rivets.AppLinks.Navigator.Navigate("http://location/of/your/html/file.html"); and it requires to publish a page: Publish this page somewhere on the internet, or at a location your Android app can reach. This

In monodroid or monotouch what should I use instead of app.config for configuration strings?

…衆ロ難τιáo~ 提交于 2020-01-01 04:19:20
问题 I want to store development vs production connection strings and configuration strings in a monodroid project. I would normally store it as app settings in a web.config or an app.config, but how should I do it in monodroid and monotouch projects? I would also like for it to switch configurations automatically between debug and release builds just as visual studio does with *.config files. In an iOS app I could store these in a plist but I'd like a cross platform solution in mono. How would I

How to implement Marker Clustering for Google Maps in Xamarin

戏子无情 提交于 2020-01-01 03:45:46
问题 I have implemented Google Maps successfully in my App. I have to implement Marker Clustering for Xamarin Android. The link here gives a good explanation regarding how to implement but i am not able to understand how to refer the package. I got few source files but it is not helping as i am not aware how to refer the jar files. The documents i got is related to Java but not C#. Here are the few links: https://github.com/googlemaps/android-maps-utils https://forums.xamarin.com/discussion/13569

In Xamarin Forms 3.1, when using tabbed page with 4 tabs, how can I prevent “sliding” effect of tab bar on Android?

时光总嘲笑我的痴心妄想 提交于 2020-01-01 03:37:36
问题 I have an app with four pages, and I want it to look similar to my (non-Xamarin) iOS app, so to have toolbar at the bottom. Here is my MainPage.xaml file: <?xml version="1.0" encoding="utf-8" ?> <TabbedPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:XaBLE1" x:Class="XaBLE1.MainPage" Title="Safe-T Sim" HeightRequest="768" WidthRequest="512" BarBackgroundColor="#F1F1F1" BarTextColor="Gray" xmlns:android="clr

Xamarin.Android - does native code compilation make reverse engineering harder?

时光怂恿深爱的人放手 提交于 2020-01-01 02:48:26
问题 We are considering porting our C# .NET application to Android, and I have started reading about Xamarin.Android and the Mono framework. I am just beginning with Android development. I notice on the main http://xamarin.com/android page that it states: Native Code High-performance compiled code with full access to all the native APIs. Does this imply that the generated code will be native code that is more difficult to reverse engineer? We would like to create amongst other things a class

Searching for the best PCL profile for cross-platform development

一世执手 提交于 2019-12-31 21:34:11
问题 I am working on extending number of supported platforms for my app, it used to support .NET4/Windows Store/Windows Phone, but I hope to also cover Mono for Android and iOS. I've put all business logic, models and view models to portable class libraries (PCL) but it's a big dilemma what subset of platforms I should target. Each combination causes something to fail. Here are the results for 4 platforms that I might use: Profile 78 (NET45+WP8+Store): no problem with TPL,await/async and support

How to register my own Application subclass in Xamarin.Android?

偶尔善良 提交于 2019-12-31 10:32:19
问题 I have public class MyApp : Application In Java I would add a line to the manifest and pass it the namespace and name of my application: <application android:icon="@drawable/icon" android:label="@string/app_name" android:name="com.devahead.extendingandroidapplication.MyApplication"> In Xamarin, there is the [Application] attribute but the documentation states that the Name member is not supported. So how do I get my subclass registered? Where to apply the attribute to? If I add the attribute

How to register my own Application subclass in Xamarin.Android?

戏子无情 提交于 2019-12-31 10:31:48
问题 I have public class MyApp : Application In Java I would add a line to the manifest and pass it the namespace and name of my application: <application android:icon="@drawable/icon" android:label="@string/app_name" android:name="com.devahead.extendingandroidapplication.MyApplication"> In Xamarin, there is the [Application] attribute but the documentation states that the Name member is not supported. So how do I get my subclass registered? Where to apply the attribute to? If I add the attribute

Contextual Action Bar with RecyclerView in xamarin android?

拜拜、爱过 提交于 2019-12-31 06:59:07
问题 Can any one tell how to implement RecyclerView Contextual Action Bar on long tap of listItem Selection on xamarin android? 回答1: Can any one tell how to implement RecyclerView Contextual Action Bar on long tap of listItem Selection on xamarin android? Take Xamarin Official RecyclerViewer for example, you can follow the below steps to implement a contextual action bar on the recyclerview: Create a simple menu resource for your action bar( Resource/menu/ContextualMenu ): <?xml version="1.0"