简体   繁体   English

如何从 MDTextField 中删除外层边距?

[英]How to remove outer layer margin from MDTextField?

I want to have two MDTextFields touching each other at their bottom and top border我想让两个 MDTextFields 在它们的底部和顶部边界相互接触

The MDTextField has an outer layer which prevents them from touching each other. MDTextField 有一个外层,可以防止它们相互接触。 Is there a property to remove this margin?是否有删除此边距的属性? Margins I want to remove(black rectangles):我要删除的边距(黑色矩形):

MDTextfields colored to show the margins MDTextfields 着色以显示边距

Lines I want to touch:我想触摸的线条:

Arrows pointing at parts of borders I want to merge together指向我想合并在一起的部分边界的箭头

   BoxLayout:
        orientation:"vertical"
        size_hint: 1, None
        height:textfield1.height+ textfield2.height
        MDTextField:
            id:textfield1
            hint_text: "Rectangle mode"
            mode: "rectangle"
        MDTextField:

            id:textfield2
            hint_text: "Rectangle mode"
            mode: "rectangle"
    

Final product would be something like this: Here最终产品将是这样的:这里

Thank you!谢谢!

I can't comment due to rep.由于代表,我无法发表评论。 This worked for me:这对我有用:

spacing:"-10dp" in BoxLayout间距:BoxLayout 中的“-10dp”

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM