![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
android
ddd_
这个作者很懒,什么都没留下…
展开
-
android surfaceview 双线程实现计时的同时 可以随意移动滑块
import android.content.Context;import android.graphics.Bitmap;import android.graphics.Canvas;import android.graphics.Color;import android.graphics.Paint;import android.graphics.PorterDuff;原创 2014-10-06 01:16:46 · 536 阅读 · 0 评论 -
fragment之间的参数传递
使用Fragment的时候可能需要在两个Fragment之间进行参数的传递,找到一个方法就能实现像Activity一样便捷的实现参数传递 程序中的一段代码[java] view plaincopyft.hide(getActivity().getSupportFragmentManager().findFragmentByTag(“”));原创 2014-10-24 23:49:21 · 396 阅读 · 0 评论 -
imagebutton按下效果(不用selector)
通常情况下,我们可以采用如下方式实现: ; ; ; ; ; ; ; 把这个文件放在drawable目录下面。命名为button_add_x.xml使用的时候: android:id=";@+id/ImageButt原创 2014-10-25 16:52:05 · 507 阅读 · 0 评论 -
UI线程阻塞问题
两种方法:1.view.post;原创 2014-10-10 19:24:50 · 443 阅读 · 0 评论 -
How to solve Exception raised during rendering: java.lang.System.arraycopy([CI[CII)V in Android
So today, while writing an example for the JCG community, I came across the following exception, while trying to add anEditText element to my application: Exception raised during rendering: java.l原创 2014-10-11 10:29:26 · 2646 阅读 · 0 评论 -
在Android Studio中添加assets目录
在Android Studio中添加assets目录,目录的位置在XXX\src\main\assets XXX代表你的项目的路径,assets放在src\main目录下。原创 2014-10-11 08:50:39 · 652 阅读 · 0 评论 -
在使用Intent跳转时最容易犯的错误
1.manifest 忘记写activity;2.button 的id 写混;3.onRestartButtonClick() 拼写错误;原创 2014-10-11 10:51:18 · 605 阅读 · 0 评论 -
Eclipse 中 显示代码的行号
如何在 Eclipse 中显示代码的行号第一种方法:Ctrl+F10,打开视图菜单,选择show line numbers 就OK了第二种方法: windows->Preferences->General->Editors->Text ...原创 2014-10-04 21:30:57 · 408 阅读 · 0 评论 -
在使用drawBitmap()将绘制的图片全屏显示
有时候我们这使用canvas.drawBitmap()时,需要使图片全屏显示,这个时候我们可以这样: DisplayMetrics ds = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(ds); int w = ds.widthPi原创 2014-11-29 16:12:49 · 2334 阅读 · 0 评论