android
raoyongchao
从事J2ME和android相关手机软件的开发,特别是手机游戏方面....
展开
-
android editText动态改变事件
<br />android editText 输入字数限制2010-07-21 15:02方法一:<br /> // 输入框限制输入字数<br /> editText.addTextChangedListener(new TextWatcher() {<br /> private CharSequence temp;<br /> private boolean isEdit = true;<br /> priva原创 2010-09-10 13:33:00 · 5476 阅读 · 1 评论 -
android传值方法之一
<br />在Android中编写过程序的开发人员都知道。在Activity、Service等组件之间传递数据(尤其是复杂类型的数据)很不方便。一般可以使用Intent来传递可序列化或简单类型的数据。看下面的代码。<br /> Intent intent = new Intent(this, Test.class);<br /> intent.putExtra("param1", "data1");<br /> intent.putExtra("intParam1", 20)转载 2010-11-09 16:49:00 · 1507 阅读 · 0 评论 -
Conversion to Dalvik format failed with error 1
Confirmed the problem is caused by ProGuard command line in the file[Android SDK Installation Directory]\tools\proguard\bin\proguard.bat Edit the following line will solve the problem: call %原创 2011-12-14 19:12:40 · 603 阅读 · 0 评论 -
防止滑盖事件造成crash
1、Manifest对应的activity中增加如下属性:android:configChanges="orientation|keyboardHidden|navigation"2、对应的activity中加入如下方法:public void onConfigurationChanged(Configuration newConfig){原创 2012-03-22 17:38:25 · 690 阅读 · 0 评论 -
HorizontalScrollView左右滚动的动画
1、layout 文件 main.xml <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertic原创 2012-03-22 17:47:47 · 2430 阅读 · 2 评论