ViewGroup学习
demo:在ViewGroup中显示一个TextView
demo:在ViewGroup中显示两个TextView 并且按照某种效果进行布局
分类:
其他好文 时间:
2016-11-10 21:32:12
阅读次数:
288
【1】重写listViewimportjava.text.SimpleDateFormat;
importjava.util.Date;
importandroid.content.Context;
importandroid.util.AttributeSet;
importandroid.util.Log;
importandroid.view.MotionEvent;
importandroid.view.View;
importandroid.view.ViewGroup;
importand..
分类:
移动开发 时间:
2016-11-09 23:33:55
阅读次数:
316
http://blog.csdn.net/singwhatiwanna/article/details/17566439 ...
分类:
其他好文 时间:
2016-10-27 07:56:06
阅读次数:
342
Android当中的四种Animation动画: 1.Tween Animation 变换动画 2.Frame Animation 帧动画 3.Layout Animation 布局动画 4.Property Animation 属性动画 实现原理:每次绘制视图时view所在的viewGroup函数 ...
分类:
移动开发 时间:
2016-10-26 00:10:50
阅读次数:
240
Android offers a sophisticated and powerful componentized model for building your UI, based on the fundamental layout classes: View and ViewGroup. To ... ...
分类:
其他好文 时间:
2016-10-02 13:00:37
阅读次数:
211
1)事件传递函数 2)事件相关: 事件、事件源、事件监听器。MotionEvent 3)坐标系、定位、路由; 4)Window activity view viewGroup ...
分类:
移动开发 时间:
2016-09-28 01:47:35
阅读次数:
200
在低版本的模拟器上,当ViewGroup的onInterceptTouchEvent方法返回false时,当再有touch事件传递给ViewGroup,会一直执行此方法。 在高版本的模拟器上,当ViewGroup的onInterceptTouchEvent方法返回false时,当再有touch事件传 ...
分类:
其他好文 时间:
2016-09-27 23:06:17
阅读次数:
176
目录AdapterView简介AdapterView本身是一个抽象类,AdapterView及其子类的继承关系如下图:
特征:
AdapterView继承自ViewGroup,本质是个容器
Adap...
分类:
移动开发 时间:
2016-09-27 15:16:28
阅读次数:
324
转载:http://blog.csdn.net/dreamzml/article/details/9951577 ViewPager ViewPager 如其名所述,是负责翻页的一个 View。准确说是一个 ViewGroup,包含多个 View 页,在手指横向滑动屏幕时,其负责对 View 进行切 ...
分类:
其他好文 时间:
2016-09-26 16:02:07
阅读次数:
256
1.布局优化 首先删除布局中无用的控件和层级,其次有选择地使用性能较低的viewgroup,比如布局中既可以使用RelativeLayout和LinearLayout,那我们就采用LinearLayout,因为RelativeLayout的功能比较复杂,它的布局需要花费 风度哦的CPU实际。 布局优 ...
分类:
移动开发 时间:
2016-09-19 19:31:34
阅读次数:
159