草庐IT

my-keyword-here

全部标签

java - 安卓工作室 : Unfortunately "my App" has stopped

我是Android开发新手。编写我的代码并运行调试器后,我的应用程序无法打开,并显示“不幸的是应用程序已停止”。这是我的堆栈跟踪。07-1914:16:07.56210834-10834/com.afiqah.fypE/AndroidRuntime:FATALEXCEPTION:mainProcess:com.afiqah.fyp,PID:10834java.lang.RuntimeException:UnabletostartactivityComponentInfo{com.afiqah.fyp/com.afiqah.fyp.MainActivity}:android.view.I

android - 我在使用 android :textSize ="?android:attr/textAppearanceLarge" in my xml 时遇到布局充气器错误

如果我在我的xml中使用android:textSize="?android:attr/textAppearanceLarge",我的应用程序就会崩溃。我不想提供硬编码的文本大小,因为我必须为不同的屏幕大小创建xml,或者我必须在运行时管理文本大小。这是Log.e输出-06-2611:46:27.439:E/AndroidRuntime(1731):atandroid.view.LayoutInflater.createView(LayoutInflater.java:620)06-2611:46:27.439:E/AndroidRuntime(1731):atcom.android.

android - 使用消息 "method not allowed here"改造响应代码 405

我正在使用改造,我有一个帖子请求interfaceNetworkApi{@Headers("Content-Type:application/json")@POST("/")funstartLoginRequest(@BodyloginModel:LoginModel):CallclassFactory{varretrofit=Retrofit.Builder().baseUrl(BASE_URL).addConverterFactory(GsonConverterFactory.create()).build()companionobject{fungetApi():NetworkA

android - 为什么安卓:layout_gravity ="right" not working here in android xml

我的ListView行的xml代码是我希望ID为btn_delete的最后一个按钮保持右对齐。并在设计时按照我想要的“图形布局”显示。但是当我运行它时,在模拟器上它不起作用。查看输出:那么为什么删除按钮没有右对齐? 最佳答案 使用这个,使用相对布局 关于android-为什么安卓:layout_gravity="right"notworkinghereinandroidxml,我们在StackOverflow上找到一个类似的问题: https://stacko

android - Android Studio 2.3.1 错误:(155) Original attribute defined here,

依赖关系{编译文件树(dir:'libs',include:['*.jar'])compile'com.android.support:design:25.3.1'compile'com.android.support:appcompat-v7:25.3.1'compile'com.android.support:support-v4:25.3.1'compile'com.android.support:preference-v7:25.3.1'compile'com.google.code.findbugs:jsr305:3.0.0'compile'com.squareup.okht

铁四院闵阳师弟的坐标转换软件MY Coordinate Tool2.7介绍

前段时间铁四院闵阳师弟来青岛开会,讲到他自己编制的免费坐标转换软件MYCoordinateTool2.7被人拿到闲鱼上去卖,非常恼火,想在本小公众号上做一期推广。软件的下载地址为:链接:https://pan.baidu.com/s/10b98d6NIiAGbu3hMzlE6ww提取码:minyMYCoordinateTool2.7的主界面见下图,弹出的对话框可扫码注册,也可不注册,功能不受影响。点击“试用“按钮,就可以使用软件了。软件主要功能包括:1)计算常用坐标系下已知平面坐标、大地坐标或者空间直角坐标的点位的高程异常值。2)基于椭球膨胀法完成各种坐标形式的坐标高斯投影计算和换带计算。3)

已解决TypeError: __init__() got an unexpected keyword argument ‘n_iterations‘

已解决TypeError:init()gotanunexpectedkeywordargument‘n_iterations’下滑查看解决方法文章目录报错问题解决思路解决方法交流报错问题TypeError:init()gotanunexpectedkeywordargument‘n_iterations‘解决思路这个错误通常发生在调用一个函数或方法时,给它传递了一个它不支持的关键字参数。解决方法下滑查看解决方法在你的情况下,你尝试在__init__方法中使用了一个名为’n_iterations’的关键字参数,但是这个参数不被该方法接受。要解决这个问题,你可以考虑以下几点:检查代码中是否存在拼写

android - 禁用时 ActionBar 中的半透明图标 : only on my phone?

我在我的应用程序上使用ActionBarSherlock,当我在ActionBar中禁用某些MenuItem时,图标在我的手机上变成半透明的(HTCOneX运行Android4.0.4),但我没有在任何其他手机上看到这种行为或模拟器。我假设此行为不是nativeActionBar的默认行为是否正确?不过我喜欢这个想法...它警告用户MenuItem由于某种原因未启用(在我的例子中,它是一个保存按钮,如果至少有一个字段未填充,它会禁用该按钮)。我正在考虑为自己提供一个半透明图标,并在禁用MenuItem时手动设置它。这将适用于每个Android版本,无论是否为原生ActionBar。问题

android - 我可以删除C :\users\my_user\AppData\Local\Android\中的文件吗

我可以删除C:\users\my_user\AppData\Local\Android中的文件吗?它占用了将近70GB的磁盘空间。 最佳答案 好吧,AndroidSDK就在那里,包括您所有的包内容(以及向后兼容性)。如果您担心空间不足,请删除一些软件包(例如AndroidN、Watch、TV或您可能不会使用的其他软件包)。如果你真的对额外的文件很偏执,请卸载所有内容并重新安装一个新的androidSDK,只取你需要的。 关于android-我可以删除C:\users\my_user\Ap

android - android :icon ="@drawable/my_icon" and android:icon ="?my_icon"?之间的区别

这个问题在这里已经有了答案:Questionmark(?)inXMLattributesforAndroid(2个答案)关闭8年前。我一般在xml中设置drawable为android:icon="@drawable/my_icon"但在某些项目中,我看到代码android:icon="?my_icon"。android:icon="@drawable/my_icon"和android:icon="?my_icon"有什么区别?