草庐IT

type-equivalence

全部标签

android - flutter : Picasso or Universal Image loader equivalent

我是GoogleFluttersdk的新手,用于为Android和ios开发应用程序,我想在一个大的ListView中加载图像,我想异步加载图像并使用缓存,在AndroidJAVA/Kotlin中我使用Picasso,如何在Flutter中获得类似的行为?官方flutterListView示例:WhatisthealternativetoaListViewinFlutter 最佳答案 如果你想加载和缓存你的图片,你可以使用CachedNetworkImageProvider.它仍在开发中,但运行良好。

android - 如何解决 "The application which this project type is based on was not found."错误?

我正在尝试启动ServiceStack.AndroidIndie解决方案以与教程一起使用。我正在尝试启用ServiceStack我的Android应用程序中的API;但是,我在尝试打开项目文件时收到以下错误:MigrationReport-OverviewProjectPathErrorsWarningsMessagesServiceStack.Client.AndroidIndie.csproj100ServiceStack.Interfaces.AndroidIndie.csproj100ServiceStack.Text.AndroidIndie.csproj100Service

android - 使用 v7 支持库会出现此错误 : The type android. support.v4.app.TaskStackBuilder$SupportParentable

我花了好几个小时解决这个问题,但我似乎无法解决它。我的应用程序支持Api8及更高版本。我想添加支持库v7appCompat。因此,使用sdk管理器,我下载了最新的支持库和最新的SDK(5.0)。我按照资源导入了库http://developer.android.com/tools/support-library/setup.html但是,在我扩展ActionBarActivity的项目中,我不断在ActionBarActivity上收到以下错误Thetypeandroid.support.v4.app.TaskStackBuilder$SupportParentablecannotbe

dart - Flutter MethodChannel嵌套值: 'List<dynamic>' is not a subtype of type 'FutureOr<List<Map<String, double>>>'

我正在编写一个Flutter插件,它从平台特定端发送一个map列表(List>)。在平台特定方面,我使用默认消息编解码器发送这些对象。//(example:Androidside)List>out=newArrayList();...fillthemap...result.success(out);我在Dart端收到的这些值如下:staticFuture>>getListOfMaps()async{vartraces=await_channel.invokeMethod('getListOfMaps');print(traces);//worksreturntraces;}打印值会给出

dart - Flutter MethodChannel嵌套值: 'List<dynamic>' is not a subtype of type 'FutureOr<List<Map<String, double>>>'

我正在编写一个Flutter插件,它从平台特定端发送一个map列表(List>)。在平台特定方面,我使用默认消息编解码器发送这些对象。//(example:Androidside)List>out=newArrayList();...fillthemap...result.success(out);我在Dart端收到的这些值如下:staticFuture>>getListOfMaps()async{vartraces=await_channel.invokeMethod('getListOfMaps');print(traces);//worksreturntraces;}打印值会给出

android - 对于 WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY,我需要 android.permission.SYSTEM_ALERT_WINDOW 吗?

我看过:WindowManager.LayoutParams.TYPE_SYSTEM_OVERLAY始终与结合使用在AndroidManifest.xml.例如here.考虑这段代码:windowManager=(WindowManager)this.getSystemService(Context.WINDOW_SERVICE);surfaceView=newSurfaceView(this);WindowManager.LayoutParamslayoutParams=newWindowManager.LayoutParams(100,100,WindowManager.Layou

android:inputType ="numberDecimal"与 InputType.TYPE_NUMBER_FLAG_DECIMAL

以下条件的计算结果为假。应该不是真的吧?editText.getInputType()==InputType.TYPE_NUMBER_FLAG_DECIMAL特别是在xml文件中,我有android:inputType="numberDecimal"调试表明editText.getInputType()=8194和InputType.TYPE_NUMBER_FLAG_DECIMAL=8192我错过了什么? 最佳答案 numberDecimal指的是TYPE_CLASS_NUMBER和TYPE_NUMBER_FLAG_DECIMAL。

android - 删除我 :type field in SOAP request generated by kSoap2 on Android

我已经尝试在互联网上阅读有关我的问题的信息,但找不到我需要的正确信息,所以我尝试解释我的问题:我正在使用kSoap2通过SOAP与网络服务“对话”。要生成我的SOAP请求,我使用以下代码://GenerateSOAPrequestXMLSoapObjectrequest=newSoapObject(PUB_NAMESPACE,"testSoapInterface");//AddrequestheaderPropertyInforequestHeader=newPropertyInfo();requestHeader.setNamespace(PUB_NAMESPACE);request

java - 为什么我得到 "The method getContext() is undefined for the type MainActivity"?

我的MainActivity扩展了Activity,我在另一个类中使用了getContext(),该类传入了一个MainActivity实例,它在那里工作正常,我的代码:convertView=LayoutInflater.from(parent.getContext()).inflate(R.layout.nowview,parent,false);类构造函数:publicPictureCard(Stringurl,Stringtitle,intindex,intpos,MainActivityparent){this.parent=parent;//...}我如何称呼类Cardne

android - 三星设备上的 Proguard "Missing type parameter"

我已经发布了一个安卓应用程序,被dexguard混淆了。一切似乎都很好,除了GalaxyTab310.1并且只有Android4.4,这是唯一向开发者控制台报告错误的设备。我得到以下异常:java.lang.RuntimeException:Missingtypeparameter.atcom.google.gson.reflect.TypeToken.(:62)atcom....util.Helper$2.(:398)类Helper.java和第398行中的代码return(Config)getSerializable(context,CONFIG,newTypeToken(){}.