• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
 






晓阳

一个程序员仅为工作写代码是不够的,TA还应该有一个分享的世界。
 
 

Powered by 博客园
博客园 | 首页 | 新随笔 | 联系 | 订阅 订阅 | 管理

2013年1月11日

ScrollView嵌套GridView和ListView的问题
摘要: 今天遇到了这样的界面 一看就是用ScrollView嵌套GridView最好处理了,也可以用ScrollView那样就麻烦了,我知道ScrollView嵌套GridView或ListView会有问题所以从网上差了一下资料,其实很简单就是重新GridView或ListView的onMeasure(int widthMeasureSpec, int heightMeasureSpec)方法 附上代码: 1 public class MyGridView extends GridView { 2 public MyGridView(Context context, AttributeSet... 阅读全文
posted @ 2013-01-11 15:40 晓阳110 阅读(376) 评论(0) 推荐(1)
 
android 自定义属性详解
摘要: 今天用到了自定义控件,也想用一下自定义属性,从网上搜了一下资料汇总的一下。1. reference:参考某一资源ID。 (1)属性定义: <declare-styleable name = "名称"> <attr name = "background" format = "reference" /> </declare-styleable> (2)属性使用: <ImageView android:layout_width = "42dip" android:layout_h 阅读全文
posted @ 2013-01-11 09:37 晓阳110 阅读(392) 评论(0) 推荐(0)