- 博客(14)
- 收藏
- 关注
转载 安卓横竖屏切换的处理方式
原帖链接:http://write.blog.youkuaiyun.com/postedit最近开发Android Camera相关的程序,被屏幕旋转搞得头大,一方面得考虑屏幕旋转后布局的变化,另一方面得搞清楚屏幕的旋转方向、角度与Camera的Preview角度的关系。本来通过重载Activity的onConfigurationChanged方法,可以检测到屏幕旋转,但发现有一个问题,它只能检测水平
2015-04-22 16:18:57
742
转载 android更新UI的时候通知adapter和赋值listview的问题
问题的描述: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 background thread, but only from the UI thread.
2015-04-15 21:01:54
748
转载 在线程汇总更新UI的注意问题The content of the adapter has changed but ListView did not receive a notification. Ma
解决问题的链接http://www.eoeandroid.com/thread-79950-1-1.html
2015-04-15 20:59:55
301
原创 截断超出的内容
public String SetSummary(String summary) {String result = "暂无可预览内容";if (summary != null && summary.length() > 100) {result = summary.substring(0, 100) + "...";} else if (summary != null &&
2015-04-10 21:10:41
498
转载 清空EditText内容
呃,不能在onClick这样的监听函数中改变界面的显示,但可以这样写先在类中声明:Handler mHandler = new Handler();Runnable mRunnable = new Runnable() {@Overridepublic void run() {mEdit.setText("");}};onClick中,这样调用m
2015-01-26 22:47:20
718
转载 sql排名并去前n个数
Oracle开发专题之:分析函数2(Rank, Dense_rank, row_number) (2011-07-08 15:10:20)转载▼标签: oracle 分析函数 rank dense_rank row_number 杂谈分类: 数据库目录
2015-01-18 16:13:50
590
转载 error: Error parsing XML: not well-formed (invalid token)
哈哈,大家如果还没有解决这个问题的话,我这还有一个方法:把鼠标箭头移到出错误的layout上 点击鼠标右键选择Source然后再选Format就ok了~~~~~我就是这样解决的,就是不知道原理是什么,有知道方便的话告诉一下我~~谢啦~~~
2014-09-29 21:16:22
454
原创 android notfound exeption
java.lang.RuntimeException:Unable to start activityComponentInfo{com.example.newsreader/com.example.newsreader.NewsReaderActivity}: android.view.InflateException: Binary XML file line #45: Error
2014-09-27 00:59:20
388
原创 android:id
一切都正常啊,R.id.btn这不是正常地生成了吗!!!!最后无意识地发现,android:name="@+id/btn" 应该是android:id="@+id/btn".悲剧的是,Android编译时,竟然没有发现这里的错误。 最为可气的是,竟然还在R.java文件中生成了 public static final class id { pu
2014-09-26 21:23:43
281
原创 在jsp页面传参获得String类型怎么转Date
String dateInfo=request.getParameter("birthday");SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");//此处引号内的是你需要的日期格式Date date = null;try {date = format.parse(dateInfo);} catch (ParseEx
2014-09-19 00:19:16
2802
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人