自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(12)
  • 资源 (2)
  • 收藏
  • 关注

原创 animation在手机上直角坐标系,即动画移动的轴

以下是一个进入Activity的动画overridePendingTransition(R.anim.slide_in_right,R.anim.slide_in_left);slide_in_left.xml<?xml version="1.0" encoding="utf-8"?><set xmlns:android="http://schemas.android.com/apk/res/an

2016-07-31 12:46:20 819

原创 viewpager在最后一页滑动之后,跳转到主页面

viewpager在最后一页滑动之后跳转到主页面思路主要功能代码addOnPageChangeListenersetOnTouchListener以下是全部代码GuideActivity以下为动画资源代码slide_in_leftxmlslide_in_rightxml以下是动画效果viewpager在最后一页滑动之后,跳转到主页面思路主要有是两个监听, 一是addOnPage

2016-07-31 12:05:15 1202

原创 android xml布局文件中使用RelativeLayout,明明有这个id,却提示找不到---->解决办法

RelativeLayouterror: Error: No resource found that matches the given name (at ‘layout_above’ with value ‘@id/bottom_menu’).找不到id资源 因为程序由上到下执行的,XML的ID也是从上到下加载的,所以 先引用的必须使用“@+id”,系统会此变量,先申明在R文件中后面的

2016-07-01 18:14:09 1663

原创 android xml布局文件中使用RelativeLayout,明明有这个id,却提示找不到---->解决办法

RelativeLayouterror: Error: No resource found that matches the given name (at ‘layout_above’ with value ‘@id/bottom_menu’).找不到id资源 因为程序由上到下执行的,XML的ID也是从上到下加载的,所以 先引用的必须使用“@+id”,系统会此变量,先申明在R文件中后面的

2016-07-01 18:13:35 3387

原创 android recyclerView Binary XML file line #7: Error inflating class android.support.v7.widget.Recycl

Binary XML file line #7: Error inflating class android.support.v7.widget.RecyclerView原来在eclipse中使用RecyclerView只能导入API21.0.0中的包才可以使用。 解决办法:进入 sdk\extras\Android\m2repository\com\android\support\r

2016-07-01 18:04:42 572

原创 android java.lang.IllegalStateException: Circular dependencies cannot exist in RelativeLayout

java.lang.IllegalStateException: Circular dependencies cannot exist in RelativeLayout

2016-07-01 17:59:24 4128

转载 UnsupportOperationException,使用Arrays.asLisvt()报错原因

常常使用Arrays.asLisvt()后调用add,remove这些method时出现java.lang.UnsupportedOperationException异常。这是由于:Arrays.asLisvt() 返回java.util.Arrays$ArrayList, 而不是ArrayList。Arrays$ArrayList和ArrayList都是继承AbstractList,remove,

2016-07-01 17:55:13 539

原创 android ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hi

E/AndroidRuntime(1456): android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. 子线程不能更新UI子线程不直接更新UI,必须通知UI线程(主线程)去更新UI

2016-07-01 17:50:03 829

原创 android Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated wi

Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostname)没有数据(没有地址与主机结合) 还是网络权限的问题<uses-permission android:name="android.permission.INTERNET" />

2016-07-01 17:44:47 7723 1

原创 android The specified child already has a parent. You must call removeView() on the child's parent f

java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.这种问题普遍出现在动态添加View时也就是非法状态异常,它说这个特定的child已经有一个parent了,你必须在这个parent中首先调用

2016-07-01 17:39:26 806

原创 android窗体溢出WindowManager$BadTokenException: Unable to add window -- token null is not for an applica

10-28 03:29:18.745: E/AndroidRuntime(1238): android.view.WindowManager$BadTokenException: Unable to add window -- token null is not for an application1、由于Activity结束之前没关闭窗体 2、dialog不能使用getApplicationCo

2016-07-01 17:35:19 479

原创 android网络访问异常java.lang.SecurityException: Permission denied (missing INTERNET permission?)

<uses-permission android:name="android.permission.INTERNET" />可能是由于需要访问网络,但是没有加入访问权限, 在AndroidManifest.xml中加入此网络访问权限就可以了

2016-07-01 17:33:10 3657

批量反编译class批处理(注:需要将cfr.jar放同一目录)

反编译批处理(注:需要将cfr.jar放同一目录),我对dos也是一知半解的,从百度上复制一点代码,弄了批量反编译class工具,需要结合cfr.jar,反编译jar可以从这里下载,http://www.benf.org/other/cfr/

2018-04-01

android飞机游戏

这个应该是著名游戏开发者李华明的作品吧,下载的时候有@author Himi的注释,这个原本只有按键操作的功能,我在 基础上增加触摸操作,大家可以在改进!

2016-06-09

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除