开发者

Equivalent to "overflow" property in LinearLayout on Android SDK?

开发者 https://www.devze.com 2022-12-10 04:44 出处:网络
I\'ve been trying to create a color LinearLayout object (1) within another LinearLayout object (2), while having (1) not display beyond the bounds of (2) - in short, I wish to assign the equivalent of

I've been trying to create a color LinearLayout object (1) within another LinearLayout object (2), while having (1) not display beyond the bounds of (2) - in short, I wish to assign the equivalent of the CSS overflow:hidden property to LinearLayout (2) so that LinearLayout (1) doesn't bleed beyond the edges of (2).

<LinearLayout>
   <!-- (2) -->
   <LinearLayout>
      <!-- (1) -->
   </LinearLayout>
</LinearLayout>

Is this possible wit开发者_Python百科hin Android?

Thank you for the help!


LinearLayout is a box layout - I can actually see how your internal (nested) LinearLayout can protrude outside of the parent. Can you perhaps give a more complete code example?

0

精彩评论

暂无评论...
验证码 换一张
取 消