草庐IT

ic_launcher_round

全部标签

android - 如何在 android 开发者工具 (ADT) 中打开 Configure Launcher Icon 窗口?

我安装了ADT并且已经创建了我的项目。但是现在我想在ConfigureLauncherIcon窗口中更改应用程序图标的设置。但是我找不到打开它的位置。有人知道吗?如果你不知道它长什么样:请参阅此处的第14步http://setup-steps.blogspot.ca/2013/03/android-developer-tools-adt-bundle.html谢谢。 最佳答案 如果您右键单击您的项目->选择“新建”->选择“其他”->打开“Android”子树->选择“Android图标集”,您将找到您要使用的向导寻找。

android - 当包含长 TextView 时,scrollview 在 ics(android 4.0)上非常慢

这是我的问题,我正在开发一个新闻应用程序,我使用scrollview包装一个textview来显示新闻的内容。但是我发现当TextView很长时,在android4.0ics上滚动非常慢,文本越长,滚动越慢。而在android2.3设备上,一切都像预期的那样快。我不知道这是否真的是系统错误,因为我发现了这个similarproblemsreportedontheandroidproject这是我的布局:还有我的style.xml@color/list_item_title18sp@color/list_item_text_shadow022@color/list_item_catego

android - 抽屉导航不适用于 ICS 之前的版本

我已经实现了基于ListView的抽屉导航。它与ICS和更高版本的Android完美配合。但是,在旧版本上,它会因以下错误而崩溃:06-2315:50:11.570:E/AndroidRuntime(403):Causedby:android.content.res.Resources$NotFoundException:Fileres/drawable/list_selector_background.xmlfromxmltypedrawableresourceID#0x0我曾尝试将这个特定的xml文件从Androidsdk复制到我自己的项目中,但这没有帮助。这是xml文件(删节):

android - 如何在 ICS+ 中使用 Roboto 压缩(或细)字体?

我找不到将Roboto设置为压缩(瘦)而不是默认设置的方法。可能吗? 最佳答案 下载完整Roboto家庭将Roboto-Condensed.ttf复制到项目的assets文件夹中在代码中,使用TypefacerobotoCond=Typeface.createFromAsset(context.getAssets(),"Roboto-Condensed.ttf")获取对您的Typeface的引用>在任何小部件中使用它,例如textView.setTypeface(robotoCond);???利润!

android - xml中对android.R.drawable.ic_menu_preferences的引用

我知道只有两种形式可以检索xml文件中的资源值:'@'用于可绘制资源和'?'获取主题资源。现在我想使用“android.R.drawable.ic_menu_preferences”作为用于选项菜单项“设置”的图标。但这行不通:这可以用代码解决:MenuItemsettings;settings.setIcon(android.R.drawable.ic_menu_preferences);但是从开发指南中,我知道最好在xml中创建菜单项。 最佳答案 使用 关于android-xml中对

安卓 Lollipop : Launcher crashes when adding app widget to Home Screen

添加小部件时,启动器在AndroidLollipop上崩溃并显示以下消息(它在以前的Android版本上运行良好):编辑:这只发生在横向。12-1612:35:10.208:E/AndroidRuntime(960):java.lang.RuntimeException:Unabletoresumeactivity{com.android.launcher/com.android.launcher2.Launcher}:java.lang.RuntimeException:FailuredeliveringresultResultInfo{who=null,request=5,resu

用于 Honeycomb 和 ICS 的 Android ListView 拖放 "Error: Reporting drop result: false"

我一直在尝试创建一个可以使用拖放进行排序的ListView。我已尝试遵循Android指南here以及Git上提供的一些源代码here.另外,我不想使用Music应用程序示例,因为我正在尝试使用Honeycomb及更高版本中提供的新工具。到目前为止,我已经成功创建了列表,并且可以拖动项目。不幸的是,当我将项目放到列表中时,出现以下错误:“I/ViewRoot(22739):报告放置结果:false”。我怀疑我的drop监听器没有在正确的项目上创建,因此drop永远不会被调用。这是一些源代码,非常感谢您的帮助。列表的XML:我的ListView:我还没有能够进入“ACTION_DROP”

android - 无法在 ICS 中接收广播

我为Android4.0编写了1个应用程序,它是通过broadcastreceiver启动的。我的代码如下:在AndroidManifest.xml中:-->在StartUpReceiver类中:publicclassStartUpReceiverextendsBroadcastReceiver{@OverridepublicvoidonReceive(Contextcontext,Intentintent){Log.i("Broadcast","onReceive");Intenti=null;if(intent.getAction().equals(Intent.ACTION_BO

java - Android Studio - 错误 :resource drawable/abc_ic_ab_back_mtrl_am_alpha (aka com. instacoin:drawable/abc_ic_ab_back_mtrl_am_alpha) not found

我收到这些错误:Error:resourcedrawable/abc_ic_ab_back_mtrl_am_alpha(akacom.instacoin:drawable/abc_ic_ab_back_mtrl_am_alpha)notfound.Error:failedlinkingfileresources.Error:java.util.concurrent.ExecutionException:java.util.concurrent.ExecutionException:com.android.tools.aapt2.Aapt2Exception:AAPT2error:che

带有 “Unknown chromium error: -324” 的 Android 4.0 ICS Webview

我在Android4.0ICS中使用WebView编写浏览器代码。但是当我访问某个网站时,出现错误。我重写了WebViewClient中的onReceivedError方法,然后我打印logcat。08-2809:22:00.549:D/chromium(22081):Unknownchromiumerror:-32408-2809:22:32.658:E/sky-mobi(22081):errorCode:-1description:Anetworkerroroccurred。failingUrl:https://172.16.28.5/portal/logon.htm08-2809