android
oop_aop
这个作者很懒,什么都没留下…
展开
-
android seekbar
"1.0" encoding="utf-8"?> "http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_paren原创 2011-08-31 18:04:15 · 574 阅读 · 0 评论 -
android 得到屏幕尺寸 状态栏尺寸 标题栏尺寸
屏幕尺寸:WindowManager wm = (WindowManager) this.getSystemService(Context.WINDOW_SERVICE);int screenWidth = wm.getDefaultDisplay().getWidth原创 2011-09-22 18:13:33 · 1661 阅读 · 0 评论 -
developer word
动画:animation ImageView imageView = (ImageView) findViewById(R.id.imageview); Animation animation = AnimationUtils.loadAnimation(InitAc原创 2011-09-27 16:21:10 · 488 阅读 · 0 评论 -
android deviceId
TelephonyManager tm = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE); String deviceid=tm.getDeviceId();原创 2011-09-28 17:16:58 · 921 阅读 · 0 评论 -
管理android 键盘自动弹出 关闭
InputMethodManager imm = (InputMethodManager)getSystemService(SendActivity.this.INPUT_METHOD_SERVICE); //隐藏键盘 imm.hideSoftInputFr原创 2011-08-05 17:21:29 · 4169 阅读 · 0 评论 -
time 处理
//23/11/2011 17:38:58 SimpleDateFormat fm1 = new SimpleDateFormat("dd/MM/yyyy HH:mm:ss"); //2011-11-23 05:38:58 SimpleDateFormat fm2 = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); //星期三原创 2011-11-23 17:40:14 · 488 阅读 · 0 评论 -
SharePreference 使用
SharedPreferences settings1; SharedPreferences.Editor editor; settings1 = getSharedPreferences(PREFS_NAME, Activity.MODE_APPEND); editor = settings1.edit(); isSpace = Int原创 2011-11-25 13:56:33 · 647 阅读 · 0 评论 -
eclipse 快捷键
内容提示 content assist:( alt + /)下一个编辑器:next editor快速修复:quick fix (默认ctrl+1 win+1)原创 2011-11-28 17:29:02 · 487 阅读 · 0 评论 -
android 图片处理
/** * 使头像变灰 * @param drawable */ public static void porBecomeGrey(ImageView imageView, Drawable drawable) { drawable.mutate();原创 2011-11-28 16:55:45 · 775 阅读 · 0 评论 -
android listview 相关
ListView 滑动整体黑色背景,解决方案:android:cacheColorHint="#00000000"加快滑动速度:android:fastScrollEnabled = "true" android:fadingEdgeLengt原创 2011-08-23 15:13:45 · 559 阅读 · 0 评论 -
APK权限大全
访问登记属性android.permission.ACCESS_CHECKIN_PROPERTIES ,读取或写入登记check-in数据库属性表的权限获取错略位置android.permission.ACCESS_COARSE_LOCATION,通过WiFi原创 2011-09-27 11:07:18 · 571 阅读 · 0 评论 -
android linearlayout 平分一行
android:orientation="horizontal"android:layout_width="fill_parent" android:layout_height="wrap_content"android:layout_alignParentBotto原创 2011-09-01 18:39:41 · 5641 阅读 · 2 评论 -
android manifest.xml 标签汇总
1. 解决EditText自动获得焦点的问题定义act时添加: android:windowSoftInputMode="adjustUnspecified|stateHidden" 2. 使用Activity实现dialog效果定义act时添加: android原创 2011-08-27 16:38:43 · 1795 阅读 · 0 评论 -
android Bitmap和Drawable转换
转换Bitmap to DrawableBitmapDrawable bitmapDrawable = (BitmapDrawable)bitmap; Drawable drawable = (Drawable)bitmapDrawable; Bit原创 2011-09-07 14:52:43 · 628 阅读 · 0 评论 -
反编译apk
一.反编译Apk得到Java源代码 转载自:http://hi.baidu.com/%CB%BF%D4%B5%CC%EC%CF%C2/blog/item/2284e2debafc541e495403ec.html 工具下载:需用到dex2jar和JD-GUI这2个工具原创 2011-09-13 17:51:48 · 540 阅读 · 0 评论 -
android EditText插入字符串到光标所在位置
EditText mTextInput=(EditText)findViewById(R.id.input);//EditText对象int index = mTextInput.getSelectionStart();//获取光标所在位置String text="I w原创 2011-08-02 13:23:26 · 6665 阅读 · 0 评论 -
android screen shot
方法一:import java.io.File;import java.io.FileNotFoundException;import java.io.FileOutputStream;import android.app.Activity;import an原创 2011-08-24 10:29:28 · 1254 阅读 · 0 评论 -
android edittext插入表情(基于socket方式)
今天需要做一个类似于新浪微博的客户端,有一个功能是需要插入表情,于是乎在网上穿山越岭,终于找到一个能用的。原文出处“http://apps.hi.baidu.com/share/detail/32703265” 大家在用android版的qq时候一定见过有发送表情这样原创 2011-07-20 13:44:00 · 2412 阅读 · 12 评论 -
android dialog
AlertDialog.Builder builder = new AlertDialog.Builder(Main.this); builder.setOnKeyListener(new OnKeyListener() { @Override原创 2011-08-24 13:03:15 · 946 阅读 · 0 评论 -
android edittext 键盘弹出屏幕自适应
默认隐藏输入法: android:name="ViewActivity" android:label="@string/app_name" android:windowSoftInputMo原创 2011-09-22 17:42:10 · 3137 阅读 · 2 评论 -
android create desktop icon(创建桌面图标)
看到eoe里面的一个分享帖子,创建桌面图标,感觉分析很透彻,整理过后分享.Launcher为了让其他应用程序能够定制自己的快捷图标,就注册了一个BroadcastReceiver专门接收其他应用程序发来的快捷图标定制信息。所以只需要根据该BroadcastReceiver构造原创 2011-08-24 14:35:45 · 6749 阅读 · 1 评论 -
android 加入so包
全部加入到 libs 文件夹 下的armeabi文件夹下,复制so包原创 2016-06-23 17:58:30 · 539 阅读 · 0 评论