1.紅點切換間距 2.顯示和隱藏按鈕 3.getViewTreeObserver() http://www.cnblogs.com/wangying222/p/5267923.html ...
1.紅點切換間距
RelativeLayout.LayoutParams params = (RelativeLayout.LayoutParams) iv_red_point.getLayoutParams(); params.leftMargin = leftmargin; iv_red_point.setLayoutParams(params);
2.顯示和隱藏按鈕
3.getViewTreeObserver()
http://www.cnblogs.com/wangying222/p/5267923.htmlgithub完整代碼:https://github.com/ganchuanpu/BeijingNews/tree/master/app