Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all 77050 articles
Browse latest View live

Problem with C# layout

$
0
0

Hey Developer!

yesterday i made a post where i asked how to add elements to an excisting layout, now i have another problem :sweat:

i can only add one label to a stacklayout when i do this:

            foreach (var user in werknemer._werknemers)
            {
                StackLayoutPeople.Children.Add(new Frame
                {
                        Content = new Label { Text = user.Voornaam }

                });

            }

i seem to get an error everytime i try to add something :sweat:
(i'm a rookie when it comes to C# layout)


XAML & Future WYSIWYG GUI tool

$
0
0

Is it safe to assume that there will be an Xamarin Forms WYSIWYG editing tool similar to Xamarin iOS and Android's? If so, then it would be prudent to do everything in raw XAML right now eh?

how to create Single Select and multi select event in ListView using Xamarin forms

$
0
0

I want to create List View link any email list in Xamairn Forms for Android and iOS.
1) single select item:- on a single click of a cell, it should go inside that cell mins detail page of that single cell.
2) multi-select situation item:- if we click on cell for 1 or 2 seconds or Long press then can able to select multiple cells and to any operation like delete or move

I already have list page and item detail page (which display selected single cell data)
on multi-select, I don't want to show detail page only need to select multiple items and perform the operation on that selected option like delete or move
Like any mail list ex. Gmail app

Difference for Entry IsPassword and Keyboard=Numeric (Android)

$
0
0

Hello

my login page has two entries.
Both of them are Keyboard="Numeric"

The second one has additionally IsPassword="True"

On my second entry the keyboard only shows numbers.
But on the first one without IsPassword, it also shows "- + , * /" etc.

Im Testing on a tablet. Maybe the layout on a phone is different.

"DebugType" parameter is not supported by the "XamlCTask" task problem...again

$
0
0

Ok, this is becoming annoying. Almost every existing Xamarin project is broken and even if I manage to fix it, two days later it will break again.
The error is cryptic.
It offers no solution.
I want to disable it.

Advice is needed.

Please help me create a sample about background task in xamarin.forms?

$
0
0

Hi everybody.
In my app need a task auto run every 15min. I have successed with UWP background task.
But I have visit Xamarin Document of X.iOS and X.Android. I can not completed understand it.
Please make a simple sample about background task run every 15min in xamarin.forms
THANK YOU VERY MUCH.

How to connect localhost of windows to iphone simulator in mac

$
0
0

I have xamarin.forms application for iOS and local database is created in sql server 2012 on windows 10,now i am trying to connect the localhost to the of windows to the iphone simulator.

i tried : Connecting through IP address of the windows Pc.

Connected mac and windows under same wifi.

Disabled firewall.

none of them worked.

The code i am trying to connect is:
private string Uri = "http://192.168.0.16:62271/";//Windows Ip address:localhost port number
private string GetDishesUrl = "api/DishDetails/GetDishDetails?id=5";
try
{
var httpClient = new HttpClient();

            httpClient.BaseAddress = new Uri(Uri);

            var response = await httpClient.GetAsync(new Uri(Uri + GetDishesUrl));

            var stringAsync = await response.Content.ReadAsStringAsync();

            if (response.IsSuccessStatusCode)
            {
                var responseJson = stringAsync;

                return JsonConvert.DeserializeObject<List<DishDetails>>(responseJson);
            }
        }
        catch(Exception ex)
        {
            return null;
        }

when i disabled firewall and trying to connect to mac then i am getting responseas null and also the exception also as null and in safari while giving Ip address along with GetDishesUrl getting as Bad Request-Invalid Hostname,How to acheive this local host connection? I already placed this this but i did get it to be worked.

Multi-line text on buttons - how to get consistent across platforms?

$
0
0

When the Text property of a Button is set to text that contains more than one line (i.e. has a carriage return/linefeed in the middle), what gets displayed is different on each platform.

On iOS, only the first line is displayed.
On Android, all lines are displayed, but centered.
On Windows Phone, all lines are displayed, but left-justified.

This is easily reproduced, by using the FormsGallery sample and tweaking the code in the ButtonDemoPage as below:

        Button button = new Button
        {
            Text = "This is a short line\r\nThis is a longer second line of text",
            BorderWidth = 1,
            HorizontalOptions = LayoutOptions.Center,
            VerticalOptions = LayoutOptions.CenterAndExpand
        };

Is there any plan to make these behaviours consistent across platforms? If so, is there a timescale for this?
I know that I could write custom renderers to do this, but it seems such a basic thing that consistent behaviour should be built in, that I would expect this to appear in Xamarin.Forms itself at some point.

Thanks,

John H.


PCL Storage System.NotImplementedException

$
0
0

Dear all,

I have installed PCLStorage nuget package to all of Portable Project, Android Project and iOS Project. Then i have get this piece of code from github page of PCL Storage:

public async Task PCLStorageSample() { IFolder rootFolder = FileSystem.Current.LocalStorage; IFolder folder = await rootFolder.CreateFolderAsync("MySubFolder", CreationCollisionOption.OpenIfExists); IFile file = await folder.CreateFileAsync("answer.txt", CreationCollisionOption.ReplaceExisting); await file.WriteAllTextAsync("42"); }

Then called this method after click of a button and see this error:

System.NotImplementedException: This functionality is not implemented in the portable version of this assembly. You should reference the PCLStorage NuGet package from your main application project in order to reference the platform-specific implementation.

I searched a lot and can not find a solution. I need your helps.

Thanks,

Onur

correct way doing authentication

$
0
0

I downloaded a few Xamarin sample projects, and read the authentication + accesstoken part. wonder what is the correct way doing authentication (using CrossSetting or AccountStore?)

A. currently I manually save user data into AccountStore

public void Login()
        {
            var customProperties = new Dictionary<string, string> { { "AccessToken",App.User.AccessToken } };
            var account = new Xamarin.Auth.Account(App.User.Username, customProperties);
            AccountStore.Create().Save(account, App.AppName);
            App.SuccessfulLoginAction.Invoke();
        }

then fetch the user token and validate it at app.start();

B. but as I read the code from https://github.com/pierceboggan/Moments
the authentication is done using Plugin.Settings.CrossSetting

insert auth data
await BlobCache.Secure.SaveLogin(account.Username, account.Password, "default",
DateTimeOffset.Now.AddDays(30));

                                    CrossSettings.Current.AddOrUpdateValue<string>("profileImage", User.ProfileImage);
                                    CrossSettings.Current.AddOrUpdateValue<string>("profileName", User.Username);

                                    // Store token / credentials
                                    await BlobCache.LocalMachine.InsertObject<string>("authenticationToken", AccountService.Instance.AuthenticationToken,
                                        DateTimeOffset.Now.AddDays(30));

validate auth data

    void FetchAuthenticationToken()
            {
                var expiration = CrossSettings.Current.GetValueOrDefault<DateTime>("tokenExpiration");
                if (expiration != null && DateTime.Compare(expiration, DateTime.Now) > 0)
                {
                    AuthenticationToken = CrossSettings.Current.GetValueOrDefault<string>("authenticationKey");
                }
            }

I do not have so much mobile development experience, wondering how CrossSettings API + Akavache API work together delivering the auth function here.
Is that so that CrossSetting + Akavache let us write the auth code in Shared project, instead of Native one, but solutionA and solutionB is the same thing?

DatePicker Formats

$
0
0

Is there documentation for the different format options for a DatePicker when using Xamarin forms.

In the one of the guides I found I could set the Format ="D"

Is there a list somewhere that shows the other formats (other than "D"). I checked the api but didn't see a list of formats.

I appreciate the help.

Change the popup Date Format to DatePicker

$
0
0

Hi guys,
I am trying to change the popup DatePicker format.
Please see the image.

I need to sow this in Day/Month/Year
Example.

Mon, 25 Sep, 2017

24 Aug 2016

This my xaml:

<DatePicker.Format>d/M/yyyy</DatePicker.Format>
<DatePicker.MinimumDate>


Jan 1 1950


</DatePicker.MinimumDate>

This does't work. it showing Month/Day/Year

Thanks,

PayPal.Forms Express Checkout

Debugging UWP app hangs on Xamarin.Forms.Forms.Init(e) on Windows Insider Build 17025

$
0
0

I filed this with the Windows Insider Team, but it seemed like I should post it here as well:

My Xamarin UWP app won't debug on build 17025. It hangs on the call to Xamarin.Forms.Forms.Init(e) during the bootstrapping phase. To troubleshoot, I created a new blank Xamarin app and tried to debug it. This app also appears to hang during the call to Forms.Init(). Both apps will still debug when deployed to my UWP mobile device running 15063.

I will try reverting back to the previous insider build to see if this is an issue only with build 17025.

Getting Error: java.lang.IllegalArgumentException: already added : Landroid/support/v4/accessibility

$
0
0

Getting error
"/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(3,3): Error: java.lang.IllegalArgumentException: already added : Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat; (App2.Droid)"
Here is the build

Touching "obj/Debug/android/bin/packaged_resources".
Target _CompileJava:
/usr/bin/javac -J-Dfile.encoding=UTF8 -d obj/Debug/android/bin/classes -classpath /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v7.1/mono.android.jar:obj/Debug/library_projects/FormsViewGroup/library_project_imports/formsviewgroup.jar:obj/Debug/library_projects/OkHttp/library_project_imports/okhttp-2.3.0-jar-with-dependencies.jar:obj/Debug/library_projects/Xamarin.Android.Support.Compat/library_project_imports/classes.jar:obj/Debug/library_projects/Xamarin.Android.Support.CustomTabs/library_project_imports/classes.jar:obj/Debug/library_projects/Xamarin.Azure.NotificationHubs.Android/library_project_imports/bin/classes.jar:obj/Debug/library_projects/Xamarin.Facebook/library_project_imports/AudienceNetwork.jar:obj/Debug/library_projects/Xamarin.Facebook/library_project_imports/bolts.jar:obj/Debug/library_projects/Xamarin.Facebook/library_project_imports/bin/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.Android.Support.Animated.Vector.Drawable/23.3.0.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.Android.Support.Design/23.3.0.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v4/23.3.0.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v4/23.3.0.0/embedded/libs/internal_impl-23.3.0.jar:/Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v7.AppCompat/23.3.0.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v7.CardView/23.3.0.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v7.MediaRouter/23.3.0.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v7.MediaRouter/23.3.0.0/embedded/libs/internal_impl-23.3.0.jar:/Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v7.RecyclerView/23.3.0.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.Android.Support.Vector.Drawable/23.3.0.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.GooglePlayServices.Ads/8.4.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.GooglePlayServices.Base/8.4.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.GooglePlayServices.Basement/8.4.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.GooglePlayServices.Gcm/8.4.0/embedded/classes.jar:/Users/apple/.local/share/Xamarin/Xamarin.GooglePlayServices.Measurement/8.4.0/embedded/classes.jar:obj/Debug/library_projects/Xamarin.Android.Support.Annotations/library_project_imports/support-annotations.jar -bootclasspath /Library/android-sdk-mac/platforms/android-25/android.jar -encoding UTF-8 "@/var/folders/7t/xrtdy5dn3fb9_gr6p8xyfknc0000gn/T/tmp41afb3a7.tmp"
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Creating "obj/Debug/_javac.stamp" because "AlwaysCreate" was specified.
Target _CompileToDalvikWithDx:
Creating directory "obj/Debug/proguard".
/usr/bin/java -Xmx1024m -jar /Library/android-sdk-mac/build-tools/25.0.2/lib/dx.jar --no-strict --dex --output=obj/Debug/android/bin obj/Debug/android/bin/classes /Library/Frameworks/Mono.framework/External/xbuild-frameworks/MonoAndroid/v7.1/mono.android.jar obj/Debug/library_projects/FormsViewGroup/library_project_imports/formsviewgroup.jar obj/Debug/library_projects/OkHttp/library_project_imports/okhttp-2.3.0-jar-with-dependencies.jar obj/Debug/library_projects/Xamarin.Android.Support.Compat/library_project_imports/classes.jar obj/Debug/library_projects/Xamarin.Android.Support.CustomTabs/library_project_imports/classes.jar obj/Debug/library_projects/Xamarin.Azure.NotificationHubs.Android/library_project_imports/bin/classes.jar obj/Debug/library_projects/Xamarin.Facebook/library_project_imports/AudienceNetwork.jar obj/Debug/library_projects/Xamarin.Facebook/library_project_imports/bolts.jar obj/Debug/library_projects/Xamarin.Facebook/library_project_imports/bin/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.Android.Support.Animated.Vector.Drawable/23.3.0.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.Android.Support.Design/23.3.0.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v4/23.3.0.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v4/23.3.0.0/embedded/libs/internal_impl-23.3.0.jar /Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v7.AppCompat/23.3.0.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v7.CardView/23.3.0.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v7.MediaRouter/23.3.0.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v7.MediaRouter/23.3.0.0/embedded/libs/internal_impl-23.3.0.jar /Users/apple/.local/share/Xamarin/Xamarin.Android.Support.v7.RecyclerView/23.3.0.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.Android.Support.Vector.Drawable/23.3.0.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.GooglePlayServices.Ads/8.4.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.GooglePlayServices.Base/8.4.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.GooglePlayServices.Basement/8.4.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.GooglePlayServices.Gcm/8.4.0/embedded/classes.jar /Users/apple/.local/share/Xamarin/Xamarin.GooglePlayServices.Measurement/8.4.0/embedded/classes.jar
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoIcsImpl;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoStubImpl;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatIcs;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompatJellyBeanMr2;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/animation/AnimatorCompatHelper;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/animation/AnimatorListenerCompat;
Uncaught translation error: java.lang.IllegalArgumentException: already added: Landroid/support/v4/animation/AnimatorProvider;

UNEXPECTED TOP-LEVEL EXCEPTION:
java.lang.RuntimeException: Translation has been interrupted
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:613)
    at com.android.dx.command.dexer.Main.runMonoDex(Main.java:311)
    at com.android.dx.command.dexer.Main.run(Main.java:277)
    at com.android.dx.command.dexer.Main.main(Main.java:245)
    at com.android.dx.command.Main.main(Main.java:106)
Caused by: java.lang.InterruptedException: Too many errors
    at com.android.dx.command.dexer.Main.processAllFiles(Main.java:605)
    ... 4 more
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1965,3): error : java.lang.IllegalArgumentException: already added :  Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat;

Done building target "_CompileToDalvikWithDx" in project "App2.Droid.csproj" -- FAILED.

Done building project "App2.Droid.csproj" -- FAILED.

Build FAILED.

layout1.xml : warning XA0101: @(Content) build action is not supported
/Users/apple/Projects/WeAtApps IOS/Backup/App2 - Android/App2/App2.Droid/App2.Droid.csproj(677,5): warning : App2.Droid.csproj is Multilingual build enabled, but the Multilingual App Toolkit is unavailable during the build. If building with Visual Studio, please check to ensure that toolkit is properly installed.

AdViewRenderer.cs(26,16,26,35): warning CS0114: 'AdViewRenderer.CreateNativeControl()' hides inherited member 'ViewRenderer<View, View>.CreateNativeControl()'. To make the current member override that implementation, add the override keyword. Otherwise add the new keyword.
MainActivity.cs(47,13,47,95): warning CS0618: 'MobileAds.Initialize(Context, string)' is obsolete: 'deprecated'
MainActivity.cs(114,30,114,37): warning CS0168: The variable 'ignored' is declared but never used
RegistrationIntentService.cs(69,30,69,31): warning CS0168: The variable 'e' is declared but never used
NotificationHubImpl.cs(149,34,149,35): warning CS0168: The variable 'e' is declared but never used
NotificationHubImpl.cs(182,34,182,35): warning CS0168: The variable 'e' is declared but never used
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2021,3): warning MSB3247: Found conflicts between different versions of the same dependent assembly. In Visual Studio, double-click this warning (or select it and press Enter) to fix the conflicts; otherwise, add the following binding redirects to the "runtime" node in the application configuration file:
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Support.V4.OS.CancellationSignal+IOnCancelListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Support.V4.OS.CancellationSignal+IOnCancelListenerImplementor, Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : References to the type 'Android.Support.V4.OS.CancellationSignal.IOnCancelListenerImplementor' will refer to 'Android.Support.V4.OS.CancellationSignal+IOnCancelListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Support.V4.View.ActionProvider+ISubUiVisibilityListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Support.V4.View.ActionProvider+ISubUiVisibilityListenerImplementor, Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : References to the type 'Android.Support.V4.View.ActionProvider.ISubUiVisibilityListenerImplementor' will refer to 'Android.Support.V4.View.ActionProvider+ISubUiVisibilityListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Support.V4.View.ActionProvider+IVisibilityListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Support.V4.View.ActionProvider+IVisibilityListenerImplementor, Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : References to the type 'Android.Support.V4.View.ActionProvider.IVisibilityListenerImplementor' will refer to 'Android.Support.V4.View.ActionProvider+IVisibilityListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Support.V4.View.IOnApplyWindowInsetsListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Support.V4.View.IOnApplyWindowInsetsListenerImplementor, Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : References to the type 'Android.Support.V4.View.IOnApplyWindowInsetsListenerImplementor' will refer to 'Android.Support.V4.View.IOnApplyWindowInsetsListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Support.V4.View.IViewPropertyAnimatorListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Support.V4.View.IViewPropertyAnimatorListenerImplementor, Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : References to the type 'Android.Support.V4.View.IViewPropertyAnimatorListenerImplementor' will refer to 'Android.Support.V4.View.IViewPropertyAnimatorListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Support.V4.View.IViewPropertyAnimatorUpdateListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Support.V4.View.IViewPropertyAnimatorUpdateListenerImplementor, Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : References to the type 'Android.Support.V4.View.IViewPropertyAnimatorUpdateListenerImplementor' will refer to 'Android.Support.V4.View.IViewPropertyAnimatorUpdateListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : Duplicate managed type found! Mappings between managed types and Java types must be unique. First Type: 'Android.Support.V4.View.MenuItemCompat+IOnActionExpandListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'; Second Type: 'Android.Support.V4.View.MenuItemCompat+IOnActionExpandListenerImplementor, Xamarin.Android.Support.v4, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1668,3): warning : References to the type 'Android.Support.V4.View.MenuItemCompat.IOnActionExpandListenerImplementor' will refer to 'Android.Support.V4.View.MenuItemCompat+IOnActionExpandListenerImplementor, Xamarin.Android.Support.Compat, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null'.
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(1965,3): error : java.lang.IllegalArgumentException: already added : Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat;
493 Warning(s)
1 Error(s)

Time Elapsed 00:01:01.76

---------------------- Done ----------------------


How can use Behaviors in code behind in xamrin form

$
0
0

i am new in Xamarin , i have a question about using behaviors in code behind
i use these code in Xaml and it works fine but i don't know how can i create entry and label in code behind and attach the behaviors to them like Xaml

      <StackLayout ">
            <Entry
                Text="{Binding Title}"
                HorizontalOptions="FillAndExpand"
                HeightRequest="40"
                BackgroundColor="{ DynamicResource PlaceholderColorEntry }"
                PlaceholderColor="{ DynamicResource BaseTextColor }">

                <Entry.Behaviors>
                     <validators:EntryEmptyValidatorBehavior x:Name="titleValidator"/>
                </Entry.Behaviors>

            </Entry>
        </StackLayout>

        <StackLayout Grid.Row="1" Grid.Column="1" >
            <Label HorizontalOptions="Center" >
                    <Label.Triggers>
                        <DataTrigger TargetType="Label"  Binding="{Binding Source={x:Reference titleValidator},Path=IsValid}" Value="False">
                            <Setter Property="Text" Value="{ x:Static fontAwesome:FontAwesomeFont.ExclamationCircle }" />
                            <Setter Property="TextColor" Value="Red" />
                        </DataTrigger>
                        <DataTrigger TargetType="Label"  Binding="{Binding Source={x:Reference titleValidator},Path=IsValid}" Value="True">
                            <Setter Property="Text" Value="{ x:Static fontAwesome:FontAwesomeFont.CheckCircle }" />
                            <Setter Property="TextColor" Value="Green" />
                        </DataTrigger>
                    </Label.Triggers>
             </Label>
        </StackLayout>

Windows 8.1 TLS 1.2 support within Xamarin

$
0
0

Hi,

We use Xamarin to target IOS, Android and Windows 8.1 devices. We have recently had the need to allow the use of TLS 1.2 for all 3 of these platforms. IOS does this out of the box. For Android we are using ModernHTTPClient to achieve this. But for Windows 8.1 there doesn't currently seem to be any way of supporting TLS 1.2.

We have tried the following approaches without success:
- Making use of the ServicePointManager to define the TLS versions available - SPM is not supported in PCL or Windows target projects
- Upgrade to .NET 4.6 - Xamarin does not allow this and reverts the version back to 4.5 each time
- Upgrade to Visual Studio 2017 with .NET Core 2.0 - VS2017 does not support Windows 8.1 App/Phone projects.

Does anyone know if there is any way of achieving this within 8.1 as there currently doesn't seem to be any way of doing it?

Thanks in advance

Regards

Scott

Fingerprint scanner and save to a mysql db?

$
0
0

Is that possible using Xamarin.Forms? or how i can create an scanner app using the fingerprint in a device and save that to a database?

how to get the selectedItem inside Stackalyout in ListView ?

$
0
0

Hi Guys,

following senario,

I have a listview with ItemTemplate that is tied to a model, and within Listview I have several stack layouts (text, entrys, ..) and now if I am in an event of entry for example I would like to have my SelectedItem (Model) ,

how can i access the SelectedItem within the textchanged (entry), which in turn is in a listview?

How can I realize this?

thank you in advance

Problem with TestFlight/iTunes Connect

$
0
0

So I have an application and followed the documentation to upload a build for TestFlight to iTunes Connect. I did an AdHoc build, got the IPA file, uploaded it using Application Loader, no issues with that, no issues with iTunes Connect. Yet when I go to TestFlight > Builds there are none under "Version 1.0" and I am not sure why. Yet I can see it under the activity tab. Can anyone help?

Viewing all 77050 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>