在哪些场景下使用layout_marginleft
导读:在LinearLayout中,使用layout_marginleft来设置子视图在左侧的外边距。 在RelativeLayout中,使用layout_marginleft来设置子视图与父视图左侧的间距。 在ConstraintLayout中...
- 在LinearLayout中,使用layout_marginleft来设置子视图在左侧的外边距。
- 在RelativeLayout中,使用layout_marginleft来设置子视图与父视图左侧的间距。
- 在ConstraintLayout中,使用layout_marginleft来设置子视图与参考视图左侧的间距。
- 在FrameLayout中,使用layout_marginleft来设置子视图在左侧的外边距。
- 在自定义View中,可以通过设置LayoutParams的layout_marginleft属性来设置视图的左边外边距。
声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: 在哪些场景下使用layout_marginleft
本文地址: https://pptw.com/jishu/686784.html