xamarin.android

Android LinearLayout Line Breaks in XML

对着背影说爱祢 提交于 2019-12-23 04:04:14
问题 I have an activity designed to get customer information. First line gets name, 2nd line street address, third line is city, state and zip. I can achieve what I want using a RelativeLayout and by using android:layout_below and android:layout_toRightOf, but then i have to specifically indicate a width for my views. That width may look odd as the user reorients or switches between older and newer versions of android where everything is sized differently. I want to utilize the weight feature of a

Android LinearLayout Line Breaks in XML

試著忘記壹切 提交于 2019-12-23 04:04:04
问题 I have an activity designed to get customer information. First line gets name, 2nd line street address, third line is city, state and zip. I can achieve what I want using a RelativeLayout and by using android:layout_below and android:layout_toRightOf, but then i have to specifically indicate a width for my views. That width may look odd as the user reorients or switches between older and newer versions of android where everything is sized differently. I want to utilize the weight feature of a

Does Xamarin support Kotlin coroutines in a Xamarin Android Binding Library?

廉价感情. 提交于 2019-12-23 04:03:47
问题 I have an Android Binding Library with Kotlin code, and it exits whenever it hits runBlocking{} in the Kotlin code. E(28583:28691) ERROR [19] - The worker thread caught an exception: Failed resolution of: Lkotlinx/coroutines/BuildersKt; E(28583:28691) Java.Lang.NoClassDefFoundError: Failed resolution of: Lkotlinx/coroutines/BuildersKt; ---> Java.Lang.ClassNotFoundException: Didn't find class "kotlinx.coroutines.BuildersKt" on path: DexPathList[[zip file "/data/app/de.mycompany.app.myproduct-1

Does Xamarin support Kotlin coroutines in a Xamarin Android Binding Library?

折月煮酒 提交于 2019-12-23 04:03:34
问题 I have an Android Binding Library with Kotlin code, and it exits whenever it hits runBlocking{} in the Kotlin code. E(28583:28691) ERROR [19] - The worker thread caught an exception: Failed resolution of: Lkotlinx/coroutines/BuildersKt; E(28583:28691) Java.Lang.NoClassDefFoundError: Failed resolution of: Lkotlinx/coroutines/BuildersKt; ---> Java.Lang.ClassNotFoundException: Didn't find class "kotlinx.coroutines.BuildersKt" on path: DexPathList[[zip file "/data/app/de.mycompany.app.myproduct-1

Keyboard hides Textarea inside a Hybrd Webview in Xamarin forms

…衆ロ難τιáo~ 提交于 2019-12-23 03:39:36
问题 In xamarin forms I am making use of hybrid webview to display texarea and entry fields.When I try to enter some data inside the textarea the keyboard pops up and hides the textarea. Thus I am not able to see the text that i'm typing.It does not auto scroll to the current cursor position.I have read that adding android:windowSoftInputMode="adjustResize" to the android manifest file does the trick. But is it possible to apply the above property to only the webview(without applying for other

Xamarin Tesseract OCR binding for Android

陌路散爱 提交于 2019-12-23 03:04:15
问题 I would like to use tesseract ocr for Xamarin.Android and Xamarin.iOS applications. I found the binding for iOS (https://github.com/jherby2k/Xamarin-Tesseract-OCR-iOS-Unified). Is there an equivalent for Android ? 回答1: Yes, there is Tesseract for Android implementation. You can find it here. But you'll have to build it and create android bindings by yourself. EDIT I created Xamarin Android binding based on this project. You can find it here. There is a test project, just don't forget that you

OpenGL 2.0 Drawing with Monodroid (using OpenTK)

孤人 提交于 2019-12-23 02:36:57
问题 I'm attempting to setup a cross platform application that uses OpenTK-1.0 to draw some basic 3D objects using the programmable pipeline approach in OpenGL ES 2.0. I have the iOS side of the application working perfectly but the Android facing application keeps hitting calling unimplemented OpenGL ES API errors. I believe this is happening because the Android side of the application is not being setup properly to target OpenGL ES 2.0. I've updated the AndroidManifest.xml with the appropriate

Xamarin forms Android how We change Tabbed Page Icon Size

久未见 提交于 2019-12-23 02:36:06
问题 Xamarin forms Android how We change Tabbed Page Icon Size. I have Using AppCompact Themes and I want Increase Tabbed Page icon size in Tabbar.axaml 回答1: You can create a Custom renderer and change the size of icon in the native platform. Actually you can override the whole tab's layout. For example, in PCL first create a class inherit from TabbedPage : public class MyTabbedPage : TabbedPage { } Then create its renderer in Android project for example like this: [assembly: ExportRenderer(typeof

“Package does not exist” error using Android v4 Compatibility Library

我的未来我决定 提交于 2019-12-23 02:29:44
问题 I'm using MonoDroid 4.2 in Visual Studio 2010, and I'm trying to use ViewPager, Fragments, and other things from the Android v4 Compatibility Library. I was able to add the project reference to Mono.Android.Support.v4.dll and at design time I get no errors and intellisense works fine. But when I build, I get errors like this: package android.support.v4.view.ViewPager does not exist android.support.v4.view.ViewPager.OnPageChangeListener If I double-click on the error, it opens the source java

MonoTouch Exception not getting caught on device

谁说我不能喝 提交于 2019-12-23 02:28:22
问题 I am working on an app which was previously developed without using Storyboards, i.e. all the views were created in code. So as per this link, I am trying to pass a custom MvxTouchViewsContainer to MvxTouchSetup.CreateTouchViewsContainer . protected override IMvxTouchView CreateViewOfType(Type viewType, MvxViewModelRequest request) { UIStoryboard storyboard; try { storyboard = UIStoryboard.FromName(viewType.Name, null); } catch (Exception) { try { storyboard = UIStoryboard.FromName(