(转载http://mobile.51cto.com/abased-375428.htm)最近写Demo,突然发现了Layout_weight这个属性,发现网上有很多关于这个属性的有意思的讨论,可是找了好多资料都没有找到一个能够说的清楚的,于是自己结合网上资料研究了一下,终于迎刃而解,写出来和大家分...
分类:
移动开发 时间:
2014-10-09 01:21:47
阅读次数:
296
http://blog.csdn.net/caiwenfeng_for_23/article/details/38279317 ? http://www.apkbus.com/android-163766-1-1.html...
分类:
移动开发 时间:
2014-10-09 01:02:10
阅读次数:
221
直接上解决的代码模块private View rootView;@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { ...
分类:
移动开发 时间:
2014-10-09 00:46:57
阅读次数:
2065
在安装android studio时,报错: Error launching android Studio ???? No JVM installation found. Please install a 64-bit JDK. ???? if you already have a JDK installed, defined a JAVA_HOME war...
分类:
其他好文 时间:
2014-10-09 00:29:07
阅读次数:
804
详解Android中的屏幕方向 屏幕方向 是对Activity而言的,所以你可以在AndroidManifest.xml 文件中,通过 标记的screenOrientation 属性进行设定,例如: screenOrientations属性共有7中可选值(常量定义在 android.co...
分类:
移动开发 时间:
2014-10-08 23:55:37
阅读次数:
183
requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setContentView(R.layout.main); //软件activity的布局 getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.titlebar); //titlebar为自己标题...
分类:
移动开发 时间:
2014-10-08 23:53:07
阅读次数:
183
Android事件分发机制 ? 在android?普通view(不包含ViewGroup)和activity中主要有一下两个方法处理事件: public?boolean?dispatchTouchEvent(MotionEvent?ev)?//?分发事件
public?boolean?onTouchEven...
分类:
移动开发 时间:
2014-10-08 23:51:27
阅读次数:
265
android的网络编程分为2种:基于socket的,和基于http协议的。Http通信以xml或者json为载体,相互通信数据。JSON (JavaScript Object Notation)一种简单的数据格式,比xml更轻巧。 JSON 是 JavaScript 原生格式,这意味着在 Java...
分类:
移动开发 时间:
2014-10-08 23:43:07
阅读次数:
243
转自:www.cnblogs.com/hopetribe/archive/2012/04/23/2467060.htmlLOCAL_PATH:= $(call my-dir)include $(CLEAR_VARS)LOCAL_STATIC_JAVA_LIBRARIES := xsocket j.....
分类:
移动开发 时间:
2014-10-08 23:42:57
阅读次数:
332
Without any doubts, Android SDK has a poor documentations. There are pitfalls and traps about APIs without any mentions in SDK documentations. 1. WebView.clearHistory() When there is only one item ...
分类:
移动开发 时间:
2014-10-08 23:01:37
阅读次数:
166