【发布时间】:2017-05-02 10:35:19
【问题描述】:
我在 stacklayout 中有按钮,但默认情况下它会增加子视图之间的间距。我怎样才能删除它?
<ScrollView orientation="horizontal" (scroll)="onScroll($event)" id="mainScrollViewButtons" row="0">
<StackLayout id="mainButtonBox" orientation="horizontal">
<Button class="btn btn-primary" margin="0" marginLeft="0" marginRight="0" width="120" text="Blue" (tap)="onBlue()" (swipe)="onSwipe($event)"></Button>
<Button class="btn btn-primary" margin="0" marginLeft="0" marginRight="0" width="120" text="Purple" (tap)="onPurple()" (swipe)="onSwipe($event)"></Button>
<Button class="btn btn-primary" margin="0" width="150" text="Yellow" (tap)="onYellow()" (swipe)="onSwipe($event)"></Button>
<Button class="btn btn-primary" margin="0" width="120" text="Red" (tap)="onYellow()" (swipe)="onSwipe($event)"></Button>
</StackLayout>
</ScrollView>
【问题讨论】:
标签: angular telerik nativescript