如何删除TextView中的蓝色下划线(Android)
问题描述:
如何删除出现在TextView上的蓝色下划线 - Android。如何删除TextView中的蓝色下划线(Android)
我对TextField有好处 - 但是在多行TextView中 - 看起来很奇怪。
答
<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是设置背景颜色。这也会着色边界。
答
设置TextView的颜色与背景相同