- 博客(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
780

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

原创 android,AnimationDrawable 在ListView里不动的分析及解决办法。
下面是我拷贝的一个list adapter过来, 关于这个问题, 大家只需要关注红色部分代码, 在官方文档中有下面一段:It's important to note that the start() method called on the AnimationDrawable cannot be called during theonCreate() method of your Acti
2013-05-02 10:57:32
2381

原创 有关scaleAnimation当使用了setFillAfter(true)之后, 当放大之后,图形停留在放大界面无法刷新为原来图像的问题
举一个例子:MyAnimationAlphaRi = new AlphaAnimation(1.0f,0.7f); MyAnimationAlphaRi.setFillAfter(true); MyAnimationAlphaRi.setDuration(1000); refuseicon.s
2013-04-10 16:23:36
2580
1

原创 有关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
1575

原创 有关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
713
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人