- 博客(4)
- 收藏
- 关注
原创 在非Activity类中调用startActivityForResult()
问题写代码需要在一个非Activity的普通类中调用startActicityForResult()。但是一下两个写法都是不行的。holder.GoodItemView.setOnClickListener(newView.OnClickListener() { @Override public void onClick(View view) { //
2017-10-23 20:15:46 4078 4
原创 java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive
情况写安卓,跑代码。程序异常终止,抛出错误。java.lang.IllegalStateException: The content of the adapter has changed but ListView did not receive a notification. Make sure the content of your adapter is not modified from a b
2017-10-23 17:04:06 671 2
原创 Error inflating class android.support.design.widget.FloatingActionButton
问题安卓写FloatingActionButton,怎么都跑不起来,报错Error inflating class android.support.design.widget.FloatingActionButton尝试上网查,说什么 1. 改“android”空间为”app”,http://blog.csdn.net/mayuko2012/article/details/73351105 2.
2017-10-22 08:38:22 657
原创 【算法设计作业】week5
1.Divide Two Integers来源:https://leetcode.com/problems/divide-two-integers/description/题意给出两个int数a,b,要求计算他们的商,不能使用乘、除、取模。思路很直接想法按照除法的定义,当a,b都大于0时,a不断减b,直到余数比b小,记录一共减了多少次,就是所求的答案。但是这样...
2017-10-03 22:19:14 375
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人