小编SKK*_*SKK的帖子

罐子不匹配!修复您的依赖项

重现步骤:

  1. 创建一个Android项目"MyApp"
  2. 导入ActionBarSherlock(ABS),Directional ViewPager(DVP)或任何其他使用android支持库的开源库.
  3. 将库添加到项目"MyApp"

控制台日志:

[2013-04-17 14:27:12 - MyApp] Found 2 versions of android-support-v4.jar in the dependency list,
[2013-04-17 14:27:12 - MyApp] but not all the versions are identical (check is based on SHA-1 only at this time).
[2013-04-17 14:27:12 - MyApp] All versions of the libraries must be the same at this time.
[2013-04-17 14:27:12 - MyApp] Versions found are:
[2013-04-17 14:27:12 - MyApp] Path: C:\Users\santhosh\My_Workspace\DVP_library\libs\android-support-v4.jar
[2013-04-17 14:27:12 - MyApp]   Length: 140011
[2013-04-17 14:27:12 - MyApp]   SHA-1: fc834ac8147bc4ed0b555f90f500a57d4232c448 …
Run Code Online (Sandbox Code Playgroud)

eclipse android jar

71
推荐指数
6
解决办法
13万
查看次数

将somefile.html文件从内部存储加载到应用程序的webview

我的平板电脑的内部存储空间中有一个文件./myfolder/subfolder/index.html.如何将其加载到应用程序的webview中.

我试过了

 webview.loadURL("file:///myfolder/subfolder/index.html"); 
Run Code Online (Sandbox Code Playgroud)

但它没有给出预期的结果.它说网页不可用.

我知道如何从资产文件夹或从网络/互联网加载.但我需要将本地文件加载到webview中.可能吗.?

android webview

16
推荐指数
3
解决办法
2万
查看次数

ShareActionProvider的API级别低于14

是否可以使用shareActionProvider用于使用API​​少于14的应用程序?

android shareactionprovider

8
推荐指数
1
解决办法
3108
查看次数

Android 快速快捷方式 [在 Shortcuts.xml 中传递额外意图(或一些数据)]

在使用 Shortcut.xml 实现静态快捷方式时,我想根据我的意图传递一些捆绑包附加内容。

启动应用程序后,需要传递额外的内容来决定目标类中的一些功能。

是否可以访问额外内容?如何以及在哪里访问它?

任何线索将不胜感激

android-shortcut android-shortcutmanager

5
推荐指数
2
解决办法
2207
查看次数

为AlertDialog的MultiSelectItems设置自定义字体(字体)

我已经能够将自定义字体应用于Alert对话框的标题,如下所示:

 AlertDialog.Builder builder = new AlertDialog.Builder(this);

 TextView Mytitle = new TextView(this);
 Mytitle.setText("My Custom title"); 
 Mytitle.setTextSize(20);
 Mytitle.setPadding(5, 15, 5, 5);
 Mytitle.setGravity(Gravity.CENTER);
 Mytitle.setTypeface(Typeface.createFromAsset(this.getAssets(), "myfont.ttf"));
 builder.setCustomTitle(Mytitle);
Run Code Online (Sandbox Code Playgroud)

警报对话框显示由下面一行填充的多选项目列表.

 builder.setMultiChoiceItems(MyItems, MycheckedItems, MyDialogListener);

 //where MyItems is CharSequence[] Array, MycheckedItems => boolean[] array,
 //MyDialogListener => DialogInterface.OnMultiChoiceClickListener
Run Code Online (Sandbox Code Playgroud)

我也希望将字体应用于这些多选项.我怎样才能做到这一点?可能吗?

android custom-font android-alertdialog

3
推荐指数
1
解决办法
4836
查看次数