自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(9)
  • 收藏
  • 关注

原创 关于ADT17+ 样式的问题

今天 升级了一下ADT18,正如前面一片文章所说升级后关于jar的引用问题,而这次我发现的不是Jar包,而是样式问题,以前做了一个复杂的项目 使用样式比较多,今天重新导进来测试一下效果,竟然发现style 有问题,有些根本不被系统识别,  <style name="RatingBarSmall" parent="@android:Widget.RatingBar.Small">和 &...

2012-04-20 08:51:26 111

原创 “NoClassDefFoundError” with ADT 17

本文是引用的 So I updated my SDK and ADT to version 17 and once again I got a big problem :) Every project I have which use JAR libraries could still be built without problems but as soon as they start...

2012-04-11 09:38:15 102

原创 检测root权限

public boolean checkRootMethod(){ try { File file = new File("/system/app/Superuser.apk"); if (file.exists()) { return true; } ...

2012-04-10 14:33:55 273

原创 listView高度计算

public class EListView extends ListView { private android.view.ViewGroup.LayoutParams params; private int old_count = 0; public ExpandedListView(Context context, AttributeSet att...

2012-04-09 10:07:53 72

原创 锁定home建

@Override public void onAttachedToWindow() { this.getWindow().setType(WindowManager.LayoutParams.TYPE_KEYGUARD); super.onAttachedToWindow(); }  

2012-04-07 14:08:18 84

原创 drawable 转变为byte

  Drawable d; Bitmap bitmap = ((BitmapDrawable)d).getBitmap(); ByteArrayOutputStream stream = new ByteArrayOutputStream(); defaultIcon.compress(Bitmap.CompressFormat.JPEG, 100, bitmap); byte[] b...

2012-04-06 14:16:44 488

原创 调用系统默认铃声

别人问了这个问题,其实是很模糊的,到底选择默认的当前设置好的一个铃声 还是去选择哪些默认铃声作为铃声播放   就按照后面的来 选择默认的多个铃声作为新的铃声吧   public void onClick(View v) { String uri=null; ****//First URI ...

2012-04-06 11:40:41 205

原创 notification 动态修改扩展后的图标

notification 修改打开之后的图片,最好的办法是使用contentView然后调用布局,然而有时候却要面临不能使用布局的情况也就是你不能使用R.layout。xx,这个样子你就不能动态修改icon的图标了。   换一个思路就是调用系统的布局 获得系统显示图片的View 然后重新设置他的图片就可以了   private boolean recurseGroup(ViewGroup ...

2012-04-05 15:06:47 310

原创 自定义Toggle buttons

 很多人想做一个和iphone的,其实很简单 但是很多人问   主要是修改样式和图标就好了   <ToggleButton         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:background="@drawable/t...

2012-04-05 15:06:38 109

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除