xamarin.android

Android Soft Keyboard Obscures EditTexts in ScrollView

人走茶凉 提交于 2019-12-24 03:25:45
问题 I have a TableLayout that fills_parent inside of a ScrollView. Everything works perfectly except when the Soft Keyboard is shown it obscures the last few EditTexts. Technically, the screen can't be scrolled down any more since without the Keyboard showing, the screen fits all the content. It's just that when the Keyboard is showing, I can not scroll lower to see the remaining EditTexts without hiding the keyboard and allowing the user to just select and enter values into one of the lower

Xamarin Forms Disposed Textview

非 Y 不嫁゛ 提交于 2019-12-24 02:33:06
问题 Been getting this exception a lot in my Xamarin Forms Project (android). The problem is that the stacktrace gives little information on how to reproduce, or where does it occur. Xamarin caused by: android.runtime.JavaProxyThrowable: System.ObjectDisposedException: Cannot access a disposed object. Object name: 'Xamarin.Forms.Platform.Android.FormsTextView'. Java.Interop.JniPeerMembers.AssertSelf(IJavaPeerable self)<be2616b5140e4cbb8821649c795cfe62>:0 Java.Interop.JniPeerMembers

System.MissingMethodException: Method 'MvvmCross.Droid.Views.MvxAndroidViewPresenter..ctor' not found

拈花ヽ惹草 提交于 2019-12-24 02:13:19
问题 I created Setup : MvxAndroidSetup public class Setup : MvxAndroidSetup { public Setup(Context applicationContext) : base(applicationContext) { } protected override IMvxApplication CreateApp() { return new App(); } protected override IEnumerable<Assembly> AndroidViewAssemblies => new List<Assembly>(base.AndroidViewAssemblies) { typeof(Android.Support.Design.Widget.NavigationView).Assembly, typeof(Android.Support.Design.Widget.FloatingActionButton).Assembly, typeof(Android.Support.V7.Widget

Java.exe exited with code 2 in android app built in VS 2015

假如想象 提交于 2019-12-24 02:05:19
问题 I have built an android app using xamarin in VS2015. I was able to release first version of app on google play service. The other day, I tried to fix the problems and modified some UI, added some xml files and activities. But I got the error java.exe exited with code 2 in debug mode when I build the project whereas building was successful in release mode. I tried changing HeapSize 1G to 2G found no difference. I tried to enable ProGuard but found disabled by default. I went through enabling

Java.exe exited with code 2 in android app built in VS 2015

天大地大妈咪最大 提交于 2019-12-24 02:03:48
问题 I have built an android app using xamarin in VS2015. I was able to release first version of app on google play service. The other day, I tried to fix the problems and modified some UI, added some xml files and activities. But I got the error java.exe exited with code 2 in debug mode when I build the project whereas building was successful in release mode. I tried changing HeapSize 1G to 2G found no difference. I tried to enable ProGuard but found disabled by default. I went through enabling

Creating a MonoDevelop application

社会主义新天地 提交于 2019-12-24 01:55:15
问题 I'm trying to create a Mono-for-Android application in MonoDevelop. I'm on Windows 7 64-bit, and my MonoDevelop version is 2.6 Beta 3. When I enter an application name and hit the forward button, it gives me the following errors, File Activity1.cs could not be written. File Resources could not be written. File Properties could not be written. File Assets could not be written. What's the problem? Error details for error 1 System.MissingMethodException: Method not found: 'MonoDevelop.Projects

MonoDroid Change Activity Label or Title Programmatically

无人久伴 提交于 2019-12-24 01:54:18
问题 I have a gridview with pictures of equipment to select from. Once selected, the user is taken to an activity that summarizes all the info they need to know for that model of equipment. I'd like for the Label or Title of that activity to display the selected model of equipment. It looks like in java to be as simple as setTitle(string), but this functionality doesn't seem to exist in mono. Looked at this, but you can only use integer or an existing drawable. I need to set it to a string. 回答1:

Android push notifications not being received when app closed

早过忘川 提交于 2019-12-24 01:20:02
问题 I followed the example in the PushSharp repository at: PushSharp Android Client Sample Everything is working great if the app is open or in the background (by hitting home or back button). If I close the app by swiping it away in the application manager I no longer receive notifications, though. My assumption was that since the PushHandlerService is marked as a [Service] that it would remain open even when the app is closed and continue to listen for notifications. Is there a way to continue

How can i create doughnut chart using oxyplot in xamarin.android?

泪湿孤枕 提交于 2019-12-24 01:09:41
问题 I need to create app that shows chart like Highcharts. But i did't get any library for that. So i'm using oxyplot to create charts. I have create pie chart using oxyplot like this. var plotView = new PlotView (this); plotView.Model = PieViewModel(); this.AddContentView (plotView, new ViewGroup.LayoutParams (ViewGroup.LayoutParams.MatchParent, ViewGroup.LayoutParams.MatchParent)); public PlotModel PieViewModel() { var modelP1 = new PlotModel { Title = "Pie Sample1" }; dynamic seriesP1 = new

defStyleRes has no effect in custom View (RelativeLayout)

♀尐吖头ヾ 提交于 2019-12-24 01:08:34
问题 The following constructor call attempts to style my custom RelativeLayout2 using the defStyleRes parameter but it has no effect. I ported this sample project to AndroidStudio and it worked ok. public RelativeLayout2(Context context, IAttributeSet attributeSet) : base(context, attributeSet, 0, Resource.Style.RelativeLayout2) { } styles.xml <resources> <style name="RelativeLayout2"> <item name="android:layout_width">40dp</item> <item name="android:layout_height">300dp</item> <item name="android