Android nativescript操作栏左边框
在Nativescript+Angular2应用程序中尝试自己时,无法运行。在左边加了一个额外的边距,我很难去掉它。测试结果如下所示(与链接中的图像不同,还有另一个图像) 守则的有关部分: HTML代码:Android nativescript操作栏左边框,android,android-actionbar,nativescript,angular2-nativescript,Android,Android Actionbar,Nativescript,Angular2 Nativescript,在Nativescript+Angular2应用程序中尝试自己时,无法运行。在左边加了一个额外的边距,我很难去掉它。测试结果如下所示(与链接中的图像不同,还有另一个图像) 守则的有关部分: HTML代码: <ActionBar title="test"> <StackLayout orientation="horizontal" ios:horizontalAlignment="center" android:horizontalAlignment="
<ActionBar title="test">
<StackLayout orientation="horizontal"
ios:horizontalAlignment="center"
android:horizontalAlignment="left">
<Image src="~/assets/img/image.png" class="action-image"></Image>
<Label text="ativeScript" class="action-label"></Label>
</StackLayout>
</ActionBar>
.action-image {
width: 40;
height: 40;
vertical-align: center;
}
.action-label {
color: #3C5AFD;
font-size: 24;
font-weight: bold;
vertical-align: center;
}
你能提供一些关于模拟器及其API级别的更多信息吗。我用最新的NativeScript 3,0测试了给定的代码,但是,这个带有左边空白的版本是不可复制的。如果您能提供一些示例项目,这将有所帮助。您能否提供有关仿真器及其API级别的更多信息。我用最新的NativeScript 3,0测试了给定的代码,但是,这个带有左边空白的版本是不可复制的。如果您能提供一些示例项目,这将有所帮助