layout(int l, int t, int r, int b)方法
2、通過(guò)view在XY軸上的偏移量
offsetLeftAndRight(dx); offsetTopAndBottom(dy);3、調(diào)用scrollTo、scrollBy方法
注意:scrollTo(int x, int y)移動(dòng)的是坐標(biāo)scrollBy(int x, int y)移動(dòng)XY軸偏移量 二者移動(dòng)的是View內(nèi)容||ViewGroup內(nèi)部all View部分代碼:關(guān)于代碼中平滑滑動(dòng)控件Scroller,嘿嘿。
新聞熱點(diǎn)
疑難解答
圖片精選
網(wǎng)友關(guān)注