37、自定義控件詳解(二)-- View和ViewGroup

一、View和ViewGroup繪製 1.1、View的位置參數 我們很容易就得出寬高和座標的關係: width = right - left height = bottom - top 那麼,如何獲得View的位置參數: Left = getLeft(); Right = getRight(); Top = getTop(); Bottom = getBottom(); 在Android3.0時
相關文章
相關標籤/搜索