自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 android有关SharedPreferences的使用方法及注意事项

static int getIntPref(Context context, String name, int def) {         SharedPreferences prefs = context.getSharedPreferences(                 context.getPackageName(), Context.MODE_PRIVATE);

2013-06-27 18:40:57 757

原创 怎么将Button上的文字和android:drawableLeft都居中

在button中要实现 将Button上的文字和android:drawableLeft都居中是不可能的, 即使用paddingleft来调, 但是也会遇到换语言后, 显示怪异的问题。 我用如下方法来实现: 用一个linearlayout来实现button                 android:id="@+id/iphone_call_end"

2013-05-24 11:56:16 6053 2

原创 android,AnimationDrawable 在ListView里不动的分析及解决办法。

下面是我拷贝的一个list adapter过来, 关于这个问题, 大家只需要关注红色部分代码, 在官方文档中有下面一段: It's important to note that the start() method called on the AnimationDrawable cannot be called during the onCreate() method of your Acti

2013-05-02 10:57:32 2353

原创 有关scaleAnimation当使用了setFillAfter(true)之后, 当放大之后,图形停留在放大界面无法刷新为原来图像的问题

举一个例子: MyAnimationAlphaRi = new AlphaAnimation(1.0f,0.7f);                 MyAnimationAlphaRi.setFillAfter(true);                 MyAnimationAlphaRi.setDuration(1000);                 refuseicon.s

2013-04-10 16:23:36 2535 2

原创 有关RelativeLayout布局中, 当一个控件被左右两个控件夹在中间时, 此控件如何靠近两个控件中的一个的问题?

android:id="@+id/writemsg_title"         android:layout_width="wrap_content"         android:layout_height="wrap_content"         android:background="@drawable/title_background_style1"         and

2013-04-10 16:16:44 1546

原创 有关android布局的新见解, 大致是关于layout_weight的一种用法。

下面是短信界面的布局文件, 当然是我仿三星之后的写信息界面的布局, 我们以此为例, 来谈谈layout_weight布局的一种用法。     android:layout_width="match_parent"     android:layout_height="match_parent"     android:background="@drawable/g

2013-03-28 16:23:05 693

空空如也

空空如也

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

TA关注的人

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