Android TextView在上方和下方都有不需要的细黑线

Wee*_*man 5 android textview

我正在使用TextViews来渲染谈话气泡,这些气泡由9个补丁.png图像组成,这些图像被拉伸以适合角色所说的任何内容.在会话发生时,相同的TextView以编程方式重用,调整大小并移动到屏幕上的不同位置.

一切看起来都不错,除非有时在TextView空间的边缘上方和下方有一条很薄的(可能是1像素)黑线(.png本身有透明背景).

我已经在网上搜索了一个星期,但没有人发现这个完全相同的投诉或基于任何甚至模糊相似的任何解决方案.

有什么想法吗?

[根据要求添加:.xml和截图(突然今天早上我的声誉达到了11 - 哇哦!)]

<FrameLayout    
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:orientation="horizontal"
android:layout_width="match_parent"
android:layout_height="match_parent"   
tools:context=".ActivityPreMomGirl"
android:background="@drawable/bg_pre_mom_girl"
android:id="@+id/mom_girl_cb" >    

<TextView
    android:id="@+id/talk_chat"        
    android:background="@drawable/talk_chat"           
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"          
    android:visibility="invisible" />

</FrameLayout>
Run Code Online (Sandbox Code Playgroud)

黑色线条几乎看不见,但实际上更清晰,更难看.

ved*_*ved 0

你为什么使用TextView?如果您想在某些背景上显示文本,为什么不使用ImageView.