自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 资源 (2)
  • 收藏
  • 关注

原创 android之TextVIew与Button交互

EX03_13Activity public class EX03_13Activity extends Activity { Button myButton; TextView myTextView; int num = 0; int[] Textcolor = {Color.BLUE,Color.GREEN,Color.CYAN}; /** Called when the a

2012-04-19 23:33:22 1762

原创 android之AlerDialog

EX03_12Activity public class EX03_12Activity extends Activity { Button myButton; /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceSt

2012-04-19 23:06:15 1540

原创 返回数据到前一个activity-startActivityForResult

EX03_11Activity package xyq.demo; import android.app.Activity; import android.content.Intent; import android.os.Bundle; import android.util.Log; import android.view.View; import android.v

2012-04-19 00:19:50 630

转载 android:shape的使用

Android中常常使用shape来定义控件的一些显示属性,今天看了一些shape的使用,对shape有了大体的了解,稍作总结: 先看下面的代码: <gradient android:startColor="#ff8c00" android:endColor="#FFFFFF"

2012-04-17 17:12:01 429

转载 Ubuntu Linux 下优化 swap 交换分区及调整swap大小

在 ubuntu 里面,swappiness的值的大小对如何使用swap分区是有着很大的联系的。swappiness=0的时候表示最大限度使用物理内存,然后才是 swap空间,swappiness=100的时候表示积极的使用swap分区,并且把内存上的数据及时的搬运到swap空间里面。两个极端,对于 ubuntu的默认设置,这个值等于60,建议修改为10。具体这样做: 1.查看你的系统里面的sw

2012-04-12 14:18:02 628

原创 android自定义颜色

color.xml #808080FF #FFFFFFFF #0000FF

2012-04-09 22:37:47 1545

原创 android 之style

style.xml 26sp #EC9237 18sp #FF7F7C main.xml <TextView android:layout_width="fill_parent" android:layout_height="wrap_content

2012-04-09 22:32:48 508

原创 android 获取屏幕的分辨率

DisplayMetrics dm = new DisplayMetrics(); getWindowManager().getDefaultDisplay().getMetrics(dm); Log.v("test", "屏幕的分辨率为:"+dm.widthPixels+" * "+dm.heightPixels);

2012-04-08 23:57:34 481

原创 android 代码中获取Resource中的字符串

CharSequence str1 = getString(R.string.hello);

2012-04-08 23:53:43 3854

原创 android 获取系统资源

Resources res = getBaseContext().getResources(); Drawable drw = res.getDrawable(R.drawable.darkgray); //textView1.setBackgroundDrawable(drw);

2012-04-08 23:40:06 863

android之PhoneGap入门实例

android之PhoneGap入门实例http://blog.csdn.net/beifengdelei/article/details/7702461

2012-06-29

Android自定义titlebar中设置progressbar

Android自定义titlebar中设置progressbar

2012-03-05

空空如也

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

TA关注的人

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