菜de园子
我的园子,我做主!
05 2013 档案
Android中setLayoutParams要用父控件的LayoutParams
摘要:这几天做程序想明白了一个问题,在此做一下记录。 ActionBarCustomView customview = new ActionBarCustomView(context); ActionBar.LayoutParams lp = new ActionBar.LayoutParams( LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT, Gravity.CENTER_VERTICAL); customview.setLayoutParams(lp);给ActionBar上加子view,ActionBarCustomV... 阅读全文
posted @ 2013-05-29 17:35 candycaicai 阅读(784) 评论(0) 推荐(0)