2016-11-30 43 views

回答

1
<Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="navigatingTo"> 
    <StackLayout backgroundColor="red"> 
    <Label text="Tap the button" class="title"/> 
    <Button text="TAP" tap="{{ onTap }}" /> 
    <Label text="{{ message }}" class="message" textWrap="true"/> 
    <TextField hint="" id="tfield" text="tests textfield"/> 
    <TextView hint="" id="tview" text="tests textView" editable="true" style="border-color:white; " /> 


    </StackLayout> 
</Page> 

刪除textfield和textview border-bottom是設置背景顏色。這也會着色邊界。

0

設置TextView的顏色與背景相同