- 博客(7)
- 资源 (3)
- 收藏
- 关注
原创 获取Fragment的context
Fragment能getActivity().getApplicationContext() 或者 getActivity();
2013-09-22 19:06:41 5846
原创 ViewPager的onPageChangeListener里面的一些方法参数
ViewPager的onPageChangeListener里面的一些方法参数:onPageSelected(int arg0){}arg0是表示你当前选中的页面,这事件是在你页面跳转完毕的时候调用的。public void onPageScrollStateChanged(int arg0) { // TODO Auto-generate
2013-09-13 16:30:07 551
原创 android 图文结合,使用SpannableString和ImageSpan类
Drawable drawable = getResources().getDrawable(id); drawable.setBounds(0, 0, drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight()); //需要处理的文本,[smile]是需要被替代的文本
2013-09-11 15:53:52 813
原创 Android显示GIF动画 GifView
GifView 是一个为了解决android中现在没有直接显示gif的view,只能通过mediaplay来显示这个问题的项目,其用法和 ImageView一样,支持gif图片使用方法:1-把GifView.jar加入你的项目。2-在xml中配置GifView的基本属性,GifView继承自View类,和Button、ImageView一样是一个UI控件。如:a
2013-09-11 11:26:15 1153
原创 Caused by: java.lang.ClassNotFoundException[android错误解决方案]
Go to Project->Properties->Java Build Path than select Order and export tab. Set android-support-v4.jar library checked and up it into top of the list. And then clean and rebuild project.
2013-09-10 12:03:30 977
原创 Android中Activity跳转和切换动画
android2.0以上可以用overridePendingTransition(R.anim.translate_in, R.anim.translate_out);这个方法 切换动画但麻烦的是 切换动画时候 必须finish前面一个而且你无法控制返回和结束时候的动画现在有一种方式 用theme来控制@style/ActivityAnimation@anim/activi
2013-09-05 19:24:11 645
原创 android中拷贝assets下的资源文件到SD卡中(可以超过1M)
很多手机游戏,在安装APK之后都得需要下载相应的资源包,然后才能进入游戏。有这样一个需求:就是游戏中需要的资源包打在APK内,随apk一起进行安装到手机中。这样就不需要,在安装APK之后,去下载资源。(这样APK的大小就会大一些)于是在网上就开始找对应的直接访问随apk一起安装到手机中的资源。比如在assets目录下放置了一个“test.zip”的资源。当apk安装之后,可能我就需要访
2013-09-04 16:51:58 1356
MyBatis_plugin3.21破解以及安装方法
2018-06-01
Win7主题破解
2016-04-01
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人