xamarin.android

Reset a Radio button inside a Radio group

落爺英雄遲暮 提交于 2019-12-13 09:19:41
问题 How I reset a radio button inside a radio group like the image example below All my radio groups and its radio buttons are created programmatically. I tried to to set OnClickListener to get the radio button value before getting changed but, it didn't help. Edit: I posted the answer below, please check it. 回答1: try this : radioGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() { @Override public void onCheckedChanged(RadioGroup group, @IdRes int checkedId) { if

Xamarin Google play publish

不打扰是莪最后的温柔 提交于 2019-12-13 08:33:06
问题 In recent update Xamarin made it possible to publish android apps straight to the Google play (before you had to generate apk and upload it manually). More info These are my version numbers. I was at version 10437 when the update came, I made some changes and raised version number to 10438 and tried the new way of publishing. What happened is that my version number became 141510 for some reason and when I tried to do it again it became 207046. After that I set the number to 320000 and started

Randomize List<string> without duplicates

倖福魔咒の 提交于 2019-12-13 08:27:31
问题 I have a List<string> notizen = new List<string>(); I want to choose a random entry from it but this entry should not be repeated until all entries of notizen have been shown. Application looks like this: String is on the screen, you tap on it, another text is on the screen. I want to randomly go through the notizen list without having double entries until all entries have been shown, then it starts with a new randomized version of notizen. notizen could be randomized itself, no temporary

Why is VS2015 skipping lines while using Step Over (F10) in debug mode

删除回忆录丶 提交于 2019-12-13 07:36:55
问题 When using Visual Studio Emulator for Android some lines are skipped when I try to go from line to line. AppDomain.CurrentDomain.UnhandledException += ApplicationUnhandledExceptionHandler; TaskScheduler.UnobservedTaskException += UnobservedTaskExceptionHandler; The above lines are skipped on emulator, but not on device. I'm inspecting this, because a handler is not called on emulator. I tried to set the breakpoint directly without success. What is the reason for line skipping in debug mode?

What determines the surface texture width and height for camera?

僤鯓⒐⒋嵵緔 提交于 2019-12-13 07:30:54
问题 Here's a snippet from my implementation of my custom camera page. For some reason, I keep getting a lower resolution textureView/SurfaceTexture height and width than I expect. I want to keep the native maximum camera resolution (or picture size) my native camera on my phone takes normally. However, with the way I have it setup right now, the resolution of my textureView is lower than the native camera resolution. I'm wondering why? I tried to debug and seems OnSurfaceTextureAvailable() seems

xamarin : System.TypeLoadException: Could not resolve type with token 01000017

别说谁变了你拦得住时间么 提交于 2019-12-13 07:28:59
问题 I have a Xamarin Forms solution which contains in each project.i am getting this error. please help ... thanks in advance public partial class App : Application { AlarmAccount_Loggly _AlarmAccount_Loggly = new AlarmAccount_Loggly(); public App() { var logTransport = LogTransport.Http; _AlarmAccount_Loggly.SendWithSpecificTransport(logTransport); } 来源: https://stackoverflow.com/questions/42338168/xamarin-system-typeloadexception-could-not-resolve-type-with-token-01000017

Unit testing a Xamarin Forms Android specific code project

China☆狼群 提交于 2019-12-13 07:24:06
问题 I'm running into an issue where I've done a Xamarin.Forms Application. Currently, I'm trying to Unit test an Android Service. So currently this means I've done the following at this point: default Xamarin forms application with iOS project deleted Basic Forms in the PCL created Have styles created in Xamarin.Forms PCL Have basic theme in Xamarin.Forms.Droid project After doing that, I've created Xamarin UITest Android Project Now, I've added a reference to the Xamarin Forms.Droid Project

MvvmCross.Platform.Exceptions.MvxException bindingContext is null during MvxAdapter creation

梦想的初衷 提交于 2019-12-13 07:23:58
问题 I tried to convert MVXActivity into MvxFragment , the application crashes when i try to inflate the layout bindingContext is null during MvxAdapter creation - Adapter's should only be created when a specific binding context has been placed on the stack public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { base.OnCreate(savedInstanceState); return inflater.Inflate(Resource.Layout.BrandView1, container, false); } and my layout looks like

Xamarin: Style TabWidget

╄→尐↘猪︶ㄣ 提交于 2019-12-13 07:01:42
问题 i am using TabHost for tabbed layout in android xml. How can i style the tabs? Selected tab should be bulged up as in the figure. How can i set borders to tabs? And box-shadow? Xml for each tab, <?xml version="1.0" encoding="utf-8"?> <selector xmlns:android="http://schemas.android.com/apk/res/android"> <item android:drawable="@drawable/ic_tab_speakers_selected" android:state_selected="true"/> <item android:drawable="@drawable/ic_tab_speakers_unselected"/> </selector> I managed to set

How compose multiple thumbnails of GLES scenes into a scrolling list on Android?

独自空忆成欢 提交于 2019-12-13 06:36:18
问题 Our app generates a number of scenes using GLES 2. Making a picker (scrolling list of images) to select which scene to go to. The scenes are not available as pre-made images; using GL rendering at the time they are needed. On iOS, we created the scenes in an offscreen pbuffer, as they became visible while the list scrolled. Attempt #1: On Android, the code equivalent to our iOS code yields GL Errors, because there is no current EGLContext (or it is not a valid time or thread to render to