練習(xí)的demo
http://download.csdn.net/download/jingerlovexiaojie/10164877
http://download.csdn.net/download/jingerlovexiaojie/10164877
2017-12-19
應(yīng)該再加入
ViewGroup.LayoutParams thislp=getLayoutParams();
if(thislp.width>0)
sizeWidth=thislp.width;
if(thislp.height>0)
sizeHeight=thislp.height;
ViewGroup.LayoutParams thislp=getLayoutParams();
if(thislp.width>0)
sizeWidth=thislp.width;
if(thislp.height>0)
sizeHeight=thislp.height;
2017-06-16
API 24中,MarginLayoutParams已經(jīng)不能直接寫入(Wrap_Content,Wrap_Content),無(wú)耐之下,使用了以下二傳手法:
LayoutParams lp=new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
ViewGroup.MarginLayoutParams lp2=new ViewGroup.MarginLayoutParams(lp);
LayoutParams lp=new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
ViewGroup.MarginLayoutParams lp2=new ViewGroup.MarginLayoutParams(lp);
2017-01-06
hongyang大神,我來(lái)了,看您博客好久了,希望多出幾部視頻,畢竟一些進(jìn)階的東西博客很難啃
2016-09-25
感覺(jué)// 重置我們的行寬和行高 lineWidth = 0;有問(wèn)題,換行時(shí)沒(méi)有把當(dāng)前child的寬加入到lineWidth
2016-09-02