2012年8月9日
摘要: 主要是利用LayoutInflater的inflate方法相当于findViewById,只不过查找的是layout的资源LayoutInflater mLayoutInflater = (LayoutInflater) getSystemService(Context.LAYOUT_INFLATER_SERVICE);linearLayout1 = (LinearLayout) mLayoutInflater.inflate(R.layout.main, null);linearLayout2 = (LinearLayout) mLayoutInflater.inflate(R.layout 阅读全文
posted @ 2012-08-09 16:25 清沁 阅读(3300) 评论(1) 推荐(1) 编辑
摘要: PopupWindow有点类似于Dialog,相同点在于都是弹出窗口,并且都可以对其进行自定义显示,并且里面的监听组件,进行相应的操作,但它与Dialog又有很大的区别,PopupWindow只是弹出窗口,不会使宿主Activity组件失去焦点,也就是说PopupWindow弹出后,你仍可以与宿主Activity进行交互,Dialog却不能做到这一点。参考:http://blog.csdn.net/hlyjunhe/article/details/6572159 http://www.cnblogs.com/noTice520/archive/2011/08/16/2140356.htmlht 阅读全文
posted @ 2012-08-09 15:54 清沁 阅读(14813) 评论(0) 推荐(1) 编辑
摘要: http://book.51cto.com/art/201204/328247.htm9.2 TranslateAnimation类:位置变化动画类TranslateAnimation类是Android系统中的位置变化动画类,用于控制View对象的位置变化,该类继承于Animation类。TranslateAnimation类中的很多方法都与Animation类一致,该类中最常用的方法便是TranslateAnimation构造方法。【基本语法】public TranslateAnimation (float fromXDelta, float toXDelta, float fromYDel 阅读全文
posted @ 2012-08-09 10:50 清沁 阅读(559) 评论(0) 推荐(0) 编辑