
Android
遇到我的Bug你要裂了
hello world
展开
-
关于Android调取字体大小变大的问题解决
如果我们开发的App只针对于系统的标准的字体,这块可以不管,假如面对于长者,一般老人的手机的系统字体都会变大,该怎么写原创 2018-04-26 11:38:41 · 1356 阅读 · 0 评论 -
GIt命令
git config命令--system:操作/etc/gitconfig 文件:包含了适用于系统所有用户和所有库的值。--global:操作~/.gitconfig 文件 :具体到你的用户缺省:操作仓库.git/config文件个人信省息初始化(不要随意修改)$ git config user.name “user1"$ git config user.email原创 2014-04-02 23:33:01 · 391 阅读 · 0 评论 -
Android Application的作用
目录(?)[+]学习android挺长时间了,但是对于Appliction还不是很了解。今天花一些时间研究了一下Application。 What is ApplicationApplication和Actovotu,Service一样是android框架的一个系统组件,当android程序启动时系统会创建一个 application对象,用来存储系统的一些信息转载 2014-03-15 10:40:40 · 365 阅读 · 0 评论 -
Android事件传递机制2
实验环境OS X 10.9Eclipse(ADT)Android源码版本:API Level 19(Android 4.4)Android事件构成在Android中,事件主要包括点按、长按、拖拽、滑动等,点按又包括单击和双击,另外还包括单指操作和多指操作。所有这些都构成了Android中的事件响应。总的来说,所有的事件都由如下三个部分作为基础:按转载 2014-02-03 16:34:29 · 521 阅读 · 0 评论 -
Android之Loader理解
在看Android的文档时,看到了这么一个东西: Loader究竟是什么东西呢?Introduced in Android 3.0, loaders make it easy to asynchronously load data in an activity or fragment. Loaders have these characteristics:1、They ar转载 2014-02-03 16:33:38 · 694 阅读 · 0 评论 -
Android TouchEvent事件传递机制
跟touch事件相关的3个方法:public boolean dispatchTouchEvent(MotionEvent ev); //用来分派eventpublic boolean onInterceptTouchEvent(MotionEvent ev); //用来拦截eventpublic boolean onTouchEvent(MotionEvent ev);转载 2014-02-03 16:23:35 · 452 阅读 · 0 评论 -
android中SimpleCursorAdapter _id错误的问题
android中SimpleCursorAdapter _id错误的问题作为一个android新手,在绑定数据的时候是这样的 ListView listview=(ListView)this.findViewById(R.id.listView1); XJDal xj=new XJDal(MainActivity.this);转载 2013-12-11 00:18:13 · 581 阅读 · 0 评论 -
关于BaseAdapter的View 提高效率的作用
View v=convertView!=null?convertView:View.inflate(MainActivity.this,R.layout.item , null); 是什么意思??基本的getView写法Java代码public View getView(int position, View convertView, ViewGroup parent) {Vie转载 2013-12-10 22:53:33 · 550 阅读 · 0 评论 -
Android的MVC的味道---MainActivity.java相当于View的jsp的感觉
1.MainActivity.java V2.逻辑层 (自己写)原创 2013-12-07 10:53:39 · 714 阅读 · 0 评论 -
Log( )的详细问题
android的log解析如何分析和研究Log文件 ,如何看日志信息。Log 在android中的地位非常重要,要是作为一个android程序员不能过分析log这关,算是android没有入门吧 。 下面我们就来说说如何处理log文件 。Log的产生大家都知道 , 大家也都知道通过DDMS来看log , 但什么时候会产生log文件呢 ?一般在如下几种情况会产生log文件原创 2013-12-07 10:47:55 · 886 阅读 · 0 评论 -
Log() 的作用
1. 主要用来输出程序,相对于java的System.out.println("... "); 而Android是log主要用于输出信息2.debug调试Android Logcat使用起来可以方便的观察调试内容,基本上的使用方法(巧用Logcat调试程序)。本次要说明的是平时的Log.v Log.d Log.i Log.w Log.e的区别是什么?一、Log.v 的调试颜色为黑原创 2013-12-07 10:45:35 · 1525 阅读 · 0 评论 -
android下的点击事件的4种形式
(1) android:id="@+id/button" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_below="@id/edittext" android:text="拨打原创 2013-12-05 21:57:26 · 625 阅读 · 0 评论