![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
自定义布局
文章平均质量分 78
dacainiao007
这个作者很懒,什么都没留下…
展开
-
view写雷达效果
1、遇到不平滑的问题,是因为你每次刷新的时间,半径变化太大,人眼已能识别出这种变化,但是多久刷新一次,是根据手机不同来确定的,当手机每秒刷新25帧以上的时间(即:每秒25次以上),所以,你先得到绘制一帧的时间,然后与它比1000/25(即,我们设定的标准绘制每帧要多少秒)如果绘制完一次后,它小于某个时间则让其等待到我们设定的1000/25ms的时间再去绘制,即要保证绘制一次最短也要1000/25原创 2014-01-24 16:44:54 · 2063 阅读 · 0 评论 -
FlowLayout
package org.apmem.tools.layouts; import android.content.Context; import android.content.res.TypedArray; import android.graphics.Canvas; import android.graphics.Paint; import android.util.AttributeSet原创 2014-05-27 18:30:28 · 5329 阅读 · 0 评论 -
listview滚动高度
/* * Copyright 2013 Lars Werkman * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of原创 2014-06-03 16:22:41 · 4345 阅读 · 0 评论 -
事件分发和截获取--详情页常见效果
效果 一个LinearLayout里面有一个button,为什么点击事件可以直接传给button,因为这是linearlayout的代码里面自己控制的,事件传递并非有什么默认值,有的控件可以往下传递,有的控件不 1、面向对象的思想 、简洁的代码 2、onI 和 onT的调用 时间 3、return true和return super.on... 的区别 4、在onI和on原创 2014-09-01 16:51:04 · 1781 阅读 · 0 评论 -
学习日志--自定义控件
最简单的自定义控件,不带全名空间。直接就在某个View的构造方法里写这些个数据,构造方法的上部分其实就是读取这些个配置数据的大小,然后在最后调用某个布局,把刚刚读取到值给设置进去。 package cn.eoe.widget; import android.content.Context; import android.util.AttributeSet; import android.vie原创 2013-09-01 14:19:37 · 2957 阅读 · 2 评论