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)