1
您好我是顯示在canvas.Now一些行我想申請水平滾動型水平滾動型對那些lines.Please給我一些(代碼)suggestions.Thanks提前申請帆布
您好我是顯示在canvas.Now一些行我想申請水平滾動型水平滾動型對那些lines.Please給我一些(代碼)suggestions.Thanks提前申請帆布
嘿,你得在烏拉圭回合類中定義滾動視圖,
ScrollView sc=new ScrollView(this);
sc.measure(400, 10);
int width = sc.getMeasuredWidth();
int height = sc.getMeasuredHeight();
int left = 100;
int top = 100;
sc.layout(0, top, left + width, top + height);
比你HV設置佈局params用於在THT。
比你能畫出它烏爾畫布上像這樣的方法:
sc.draw(canvas);//canvas is ur canvas name on which u r drawing
EDITED:泰豐等方式,我認爲很簡單的u是採取一個滾動視圖中你的主要佈局和包括你的內部it.so它不需要todraw滾動它
chirag在畫布我不是能夠添加滾動視圖 – Pinki 2011-02-07 11:56:55