如何在Nativescript中改变NavigationButton和ActionBar标题之间的距离?

时间:2017-08-26 19:02:47

标签: android-actionbar nativescript angular2-nativescript

我想减少NativeScript应用中NavigationButton和ActionBar标题之间的距离。如何为iOS和Android做到这一点?

enter image description here

1 个答案:

答案 0 :(得分:2)

您可以使用动作项目中的标签自定义它以将其放置在操作栏上的任何位置 - 您可以根据需要设置样式。

<ActionBar>
<ActionItem ios.position="popup" (tap)="capturePhoto($event)" android.position="popup" text="delete">

<Label  class="font-awesome actionItemLabel" text="&#xf03e;" color="white" style="font-size: 26; background-color: transparent; width: 40px; text-align: left;"></Label> 

</ActionItem>
</ActionBar>