代码改变世界

随笔分类 -  Xamarin开发

Xamarin.Forms 在Prism 下实现导航栏回退按钮点击事件截留的正确姿势

2020-11-04 15:19 by Dorisoy, 442 阅读, 收藏, 编辑
摘要: 1.定义一个用于实现菜单管理的容器基类 MenuContainerPage 继承自 ContentPage, IMenuContainerPage 1 public class MenuContainerPage : ContentPage, IMenuContainerPage 2 { 3 4 S 阅读全文

如何判断JWT是否到期?解决方案

2020-09-22 15:33 by Dorisoy, 4120 阅读, 收藏, 编辑
摘要: 首先,请注意,令牌过期和吊销是两个不同的过程。 到期仅发生在Web应用程序上,而不发生在本机移动应用程序上,因为本机应用程序永不到期。 仅当(1)使用单击网站或本机Apps上的注销按钮;(2)用户重设密码;以及 (3)用户在管理面板中明确撤销其令牌。 1.如何让JWT到期 如果JWT令牌被盗,那么永 阅读全文

Baidu地图SDK 7.0 进行Android 绑定库转换的元数据匹配

2020-09-18 13:23 by Dorisoy, 248 阅读, 收藏, 编辑
摘要: <metadata> <attr path="/api/package[@name='com.baidu.mapapi']/class[@name='VersionInfo']/field[@name='VERSION_INFO']" name="name">VersionInformation</ 阅读全文

Xamarin Android 9 启动画面闪屏问题

2020-09-06 12:41 by Dorisoy, 231 阅读, 收藏, 编辑
摘要: https://www.xamarinhelp.com/xamarin-android-9-patch-image-splashscreen/ 阅读全文

使用DryIocZero进行低开销依赖注入

2020-09-05 15:47 by Dorisoy, 243 阅读, 收藏, 编辑
摘要: 转载:https://ryandavis.io/adventures-in-low-overhead-dependency-injection-using-dryioczero/ Dependency Injection (DI) might be one of the more polarisin 阅读全文

Approaching a Xamarin.Android Bindings Case

2020-08-29 18:27 by Dorisoy, 196 阅读, 收藏, 编辑
摘要: Approaching a Xamarin.Android Bindings Case 1. Investigation One of the best ways to investigate a problematic Xamarin.Android Binding is to first ens 阅读全文

Link assemblies causes app crashes if you have an EditText

2020-08-29 17:16 by Dorisoy, 160 阅读, 收藏, 编辑
摘要: https://github.com/xamarin/xamarin-android/issues/3263 阅读全文

Link causes xamarin Android binding library project to crash

2020-08-29 17:12 by Dorisoy, 354 阅读, 收藏, 编辑
摘要: We all want our app packages to be as small as possible. Quite efficient way of decreasing the size of the app bundle is to use Linker. That's usually 阅读全文

Unhandled exception handling in iOS and Android with Xamarin.

2020-07-30 15:11 by Dorisoy, 328 阅读, 收藏, 编辑
摘要: Unhandled exceptions are hard to catch and log, and you must do it to be able to handle the errors in your app. One approach is to use Xamarin.Insight 阅读全文

改进Xamarin应用程序中的HTTP性能

2020-06-26 20:22 by Dorisoy, 357 阅读, 收藏, 编辑
摘要: Improving HTTP Performance in Xamarin Applications Any mobile application that depends greatly on HTTP requests can be a source of frustration. Mobile 阅读全文

Xamarin /Android 10下编译 java/lang/String;Ljava/util/List;)[B : invalid opcode ba - invokedynamic requires --min-sdk-version >= 26 (currently 13)

2020-06-26 16:45 by Dorisoy, 1391 阅读, 收藏, 编辑
摘要: 注意: Dex编译器更改为d8 shrinker 更改为 r8 阅读全文

The effects and animations possible with the SkiaSharp rotate transform

2020-03-18 16:27 by Dorisoy, 370 阅读, 收藏, 编辑
摘要: Download the sample Explore the effects and animations possible with the SkiaSharp rotate transform With the rotate transform, SkiaSharp graphics obje 阅读全文

用于 ExpressionAnimations 动画模型的表达式构建器

2020-01-22 17:03 by Dorisoy, 238 阅读, 收藏, 编辑
摘要: ExpressionBuilder https://github.com/Drutol/MALClient/tree/mal-alternative-api/ExpressionBuilder Welcome to the ExpressionBuilder classes! The Express 阅读全文

Xamarin NuGet 缓存包导致 already added : Landroid/support/annotation/AnimRes 问题解决方案

2019-08-24 16:50 by Dorisoy, 356 阅读, 收藏, 编辑
摘要: dotnet nuget locals http-cache --clear dotnet nuget locals global-packages --clear dotnet nuget locals temp --clear dotnet nuget locals plugins-cache 阅读全文

Android 系统Action大全

2019-08-23 15:15 by Dorisoy, 1758 阅读, 收藏, 编辑
摘要: 常用Action说明: 2.2源码中的ACTION定义 [java] view plaincopyprint? public static final String ACTION_MAIN = "android.intent.action.MAIN"; public static final Str 阅读全文

Xamarin Forms 实现发送通知点击跳转

2019-08-23 13:59 by Dorisoy, 1174 阅读, 收藏, 编辑
摘要: 1. Ensure the you have set LaunchMode.SingleTop on your MainActivity: LaunchMode.SingleTop In your MainActivity (the FormsAppCompatActivity subclass) 阅读全文

用于C# 的异步,持久的键值存储 Akavache 使用

2019-08-19 09:44 by Dorisoy, 703 阅读, 收藏, 编辑
摘要: Akavache是​​一个异步的,持久的(即写入磁盘)键值存储,用于在C#中编写桌面和移动应用程序,基于SQLite3。Akavache非常适合存储重要数据(即用户设置)以及过期的缓存本地数据。 开源地址:https://github.com/reactiveui/akavache/ 阅读全文

Xamarin 自定义OnKeyDown 再按一次退出程序的实现

2019-08-06 11:08 by Dorisoy, 853 阅读, 收藏, 编辑
摘要: private DateTime? lastBackKeyDownTime; public override bool OnKeyDown(Keycode keyCode, KeyEvent e) { if (keyCode == Keycode.Back && e.Action == KeyEventActions.Down && e.RepeatCo... 阅读全文

xamarin/xamarin.forms 在锁屏电源唤醒时保持后台运行

2019-08-03 14:06 by Dorisoy, 1390 阅读, 收藏, 编辑
摘要: PARTIAL_WAKE_LOCK:保持CPU 运转,屏幕和键盘灯有可能是关闭的。 SCREEN_DIM_WAKE_LOCK:保持CPU 运转,允许保持屏幕显示但有可能是灰的,允许关闭键盘灯 SCREEN_BRIGHT_WAKE_LOCK:保持CPU 运转,允许保持屏幕高亮显示,允许关闭键盘灯 FU 阅读全文

Binding a Xamarin.Forms WebView to ReactiveUI View Model using Custom Type Converters

2019-08-02 17:13 by Dorisoy, 555 阅读, 收藏, 编辑
摘要: 引用:https://jamilgeor.com/binding-a-xamarin-forms-webview-to-reactiveui-view-model-using-custom-type-converters/ Introduction In this article, we will 阅读全文