Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 GestureOverlayView 中是否有任何方法可以限制可绘制区域。即在整个视图中我想要一些不可绘制的边距,视图(GestureOverlayView)覆盖所有可用区域
您可以尝试在视图中应用填充。可能在您的布局 xml 中,或通过代码View.setPadding(int left, int top, int right, int bottom)
View.setPadding(int left, int top, int right, int bottom)