`
helloandroid
  • 浏览: 272334 次
  • 性别: Icon_minigender_1
  • 来自: 成都
博客专栏
107f8db3-b009-3b79-938a-dafddb49ea79
Android腾讯微博客户...
浏览量:94494
社区版块
存档分类
最新评论
文章列表
package com.android.cist.camera.view; import java.io.ByteArrayOutputStream; import java.io.InputStream; import java.util.HashMap; import java.util.Map; import android.app.Activity; import android.app.AlertDialog; import android.content.ContentResolver; import android.content.DialogInte ...
对于上述几张图片,他们都有一个共同点,布局差不多,我们可以把它封装成一个共同的控件,通过自定义属性来控制子控件的显示与否与内容的不同,背景的不同。 代码: package com.android.custom; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Color; import android.graphics.drawable.Drawable; import android.text.TextUtils.Tru ...
做程序退出的时候,始终退出不了,网上找了很多方法。 ActivityManager am = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE); am.restartPackage(getPackageName()); //不行啊 android.os.Process.killProcess(android.os.Process.myPid());//也不行 最后用了这个办法:package com.android.cist.util; import java.util.LinkedList; i ...
点击ListView的每一个item,将弹出窗口显示item详情 主要代码:private void openPopupwin() { LayoutInflater mLayoutInflater = (LayoutInflater) getSystemService(LAYOUT_INFLATER_SERVICE); ViewGroup rootView = (ViewGroup) mLayoutInflater.inflate(R.layout.person_info_pop, null, true); TextView person_popup_name = ( ...
从右向左滑动,tab页切换后的效果 主要代码1:继承TabHost覆写setCurrentTab(int index)方法 @Override public void setCurrentTab(int index) { //index为要切换到的tab页索引,currentTabIndex为现在要当前tab页的索引 int currentTabIndex = getCurrentTab(); ...
相信刚做android开发的朋友都会遇到这个问题:如果一个界面有EditText或者AutoComplete控件的时候,EditText得到焦点了会自动的打开系统的软键盘,那么怎么才能让软键盘在第一次看到界面的时候隐藏起来喃?有两种办法: 1:<Linearlayout android:focusable="true" android:focusableintouchmode="true" android:layout_height="0px" android:layout_width="0px" ...
一本不错的介绍openglES的书,比较全面讲得
用了这么长时间的hibernate/spring,如果不是今天用的findByExample方法到现在还不知道findByExample的机制。惭愧 Class User{ String username; String password = "默认口令"; Company company; getter()&setter()..... } Company company = companyDao.getById("id"); User user = new User(); user.set ...

linux 路由表维护

使用下面的 route 命令可以查看 Linux 内核路由表。 # route Destination     Gateway         Genmask         Flags Metric Ref    Use Iface 192.168.0.0     *               255.255.255.0   U     0      0        0 eth0 169.254.0.0     *               255.255.0.0     U     0      0        0 eth0 default         192.168.0.1   ...
Linkify是android中的一个辅助类,它会通过正则表达式RegEx在TextView.getText()返回的字符串找出正则表达式匹配的字串.如果找到匹配的子串的话,这些字串都会被转换为可以单击的链接,当点击这些链接的时候,就会执行startActivity(new Intent(ACTION_VIEW,uri));uri就是正则表达式匹配到的那些子串。如果字串是数字,将会启动系统拨打电话界面,如果是html链接,将会用浏览器打开。。。。。。 Linkify常用的链接类型有Linkfy.WEB_URLS,Linkfy.EMAIL_ADDRESS,Linkfy.PHONE_NUMBERS ...

Javascript作用域浅析

    博客分类:
  • js
http://blog.csdn.net/hzrui/article/details/3941137 http://hi.baidu.com/panhuilin/blog/item/7213785438f54d57564e00be.html http://mzhou.me/?p=81001 http://www.ruanyifeng.com/blog/2009/08/learning_javascript_closures.html http://softbbs.pconline.com.cn/9497825.html js闭包演示http://www.cnblogs.com/snandy/ar ...
命令:keytool -list -alias androiddebugkey -keystore c:\debug.keystore -storepass android -keypass android 第一次获取发生keytool错误: java.lang.RuntimeException: 用法错误,and 不是合法的命令 错误原因:keytool不认识带有空格的路径 解决办法:将C:\documents and settings\administrator\.android\debug.keystore移动到其他不带空格的路径下,比如:C:\debug.keystore ...

oracle导入导出

记录一下,方便查阅: @echo off set to_user=user1 set to_password=cg111111 set to_tns=10.161.14.51:1521/crmdb imp %to_user%/%to_password%@%to_tns% file=.\crmdb_%date:~0,4%%date:~5,2%%date:~8,2%.dmp FULL=Y @echo off set from_user=user2 set from_password=cg111111 set from_tns=192.168.1.73:1521/cr ...
【有问题的同学请先仔细看看这里,总结了一下大家给我提的问题:】最近我有其它事情要忙,有时间我也会改之更新上来,谢谢大家的支持,另外大家遇到错误先看看帖子的回复,有些问题已经解释了,谢谢合作 1:有些同学出现 ...
覆写onCreateOptionsMenu方法 @Override public boolean onCreateOptionsMenu(Menu menu){ super.onCreateOptionsMenu(menu); MenuInflater menuInflater = getMenuInflater(); menuInflater.inflate(R.menu.home_timeline_menu, menu); return true; } res的menu文件夹下新建一个文件,内容如下: <?xml version="1. ...
Global site tag (gtag.js) - Google Analytics