xamarin.android

Entry show and hide password

烈酒焚心 提交于 2020-04-09 19:38:18
问题 I want an entry to have an icon before the placeholder, and a icon in the end of the entry, to show and hide the text in the entry, i had an entry with the show and hide icon using this tutorial: https://www.techierathore.com/2017/09/xamarin-forms-tip-implement-show-hide-password-using-effects/ But now I want to have icons before the entry too, I can do that with this tutorial: https://xamgirl.com/image-entry-in-xamarin-forms/ But if i add the effect of the first tutorial to the custom entry,

Entry show and hide password

荒凉一梦 提交于 2020-04-09 19:37:21
问题 I want an entry to have an icon before the placeholder, and a icon in the end of the entry, to show and hide the text in the entry, i had an entry with the show and hide icon using this tutorial: https://www.techierathore.com/2017/09/xamarin-forms-tip-implement-show-hide-password-using-effects/ But now I want to have icons before the entry too, I can do that with this tutorial: https://xamgirl.com/image-entry-in-xamarin-forms/ But if i add the effect of the first tutorial to the custom entry,

Android Xamarin Background service - Get GPS Location every x minutes?

这一生的挚爱 提交于 2020-04-06 12:06:57
问题 I'm developing an app using Xamarin, and I need a background service that gets the user's GPS location at recurring intervals (say, every 15 minutes). This project (https://github.com/xamarin/mobile-samples/tree/master/BackgroundLocationDemo) is the closest I can find to example code, and it claims that the location continues to update, even with the app in the background. Out of the box, this doesn't seem to be the case. Here's the log once the application moves into the background, and then

Show image from URL Xamarin.Forms

杀马特。学长 韩版系。学妹 提交于 2020-04-05 17:49:19
问题 I am using this code to show image with URL .xaml <?xml version="1.0" encoding="UTF-8"?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="LandAHand.VolunteerView"> <ContentPage.Content> <AbsoluteLayout BackgroundColor="Maroon"> <Image x:Name="backgroundImage" AbsoluteLayout.LayoutBounds="0,0,1,1" AbsoluteLayout.LayoutFlags="All" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Aspect="AspectFill"/> <

Show image from URL Xamarin.Forms

南楼画角 提交于 2020-04-05 17:46:11
问题 I am using this code to show image with URL .xaml <?xml version="1.0" encoding="UTF-8"?> <ContentPage xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="LandAHand.VolunteerView"> <ContentPage.Content> <AbsoluteLayout BackgroundColor="Maroon"> <Image x:Name="backgroundImage" AbsoluteLayout.LayoutBounds="0,0,1,1" AbsoluteLayout.LayoutFlags="All" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" Aspect="AspectFill"/> <

Xamarin forms custom splash screen

痴心易碎 提交于 2020-03-26 03:32:15
问题 On my Splash screen, I want to put the App version for both Android and iOS at the bottom 回答1: To make a custom Splash Screen, try this out Create SplashScreen.axml in your resource directory in Droid project `<?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <ImageView . .PLACE YOUR IMAGE CODE HERE . /> <TextView android:id="@+id/AppVersion" android:text=

Programmatically set the background color of a list view item

自古美人都是妖i 提交于 2020-03-24 00:05:45
问题 In my app, I have to automatically set the background color of a ListView item, based on the string content of that list view item. Currently, the app is using the below code: private void UpdateListView(string itemFromList, ListView listView) { int itemListPosition = listViewAdapter.GetPosition(itemFromList); listView.SetItemChecked(itemListPosition, true); View child = listView.GetChildAt(itemListPosition); if (child != null) { for (int i = 0; i < listViewAdapter.Count; i++) { View

Xamarin Android CookieManager doesn't store all cookies

江枫思渺然 提交于 2020-03-23 12:33:26
问题 I am using Android Web View in my Xamarin Project to perform third party authentication. Once the login is successful I need to extract the authentication cookies. This cookies I am storing in persistent storage and then I am using them for passing to subsequent requests. For example: Android App >(opens) webview > Loads (idp provider) url > User provides credentials and saml request is sent to my backend server > backend server validates saml and returns authentication cookies. It returns

CustomRelativeLayout Layout_with and layout_height in PDFTron not working

眉间皱痕 提交于 2020-03-23 07:49:20
问题 Hi I have this CustomRelativeLayout in a PDFViewerCtrl in an Android Xamarin project: <pdftron.PDF.Tools.CustomRelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto" android:layout_width="250dp" android:layout_height="250dp" app:posX="50" app:posY="150" app:pageNum="1" android:background="#33AFAFFF" app:zoomWithParent="true"> <View android:layout_width="match_parent" android:layout_height="match_parent" android:background=

How to change Default Display Alert background Color in Styles.Xml for Xamarin Forms

徘徊边缘 提交于 2020-03-22 09:03:11
问题 I need to change Default Display Alert background Color in Styles.Xml for Xamarin Forms? Please Anyone help me? I don't want Any plugins or etc. I just need to Change default Display alert background Color 回答1: <ActivityIndicator x:Name="activityIndicator" Margin="0,50,0,0" VerticalOptions="Center" HorizontalOptions="Center" Color="Black" WidthRequest="30" HeightRequest="30" ></ActivityIndicator> <Label x:Name="lblLoadingText" TextColor="Black" VerticalOptions="Center" HorizontalOptions=