2013-10-25 11 views
0

为什么异常方块出现在textview的边缘?异常矩形块出现在具有渐变边缘的字幕文本中android

当它具有与衰落边缘启用

  • 选框。
  • 文本视图设置为透明。

TextView的界定及

<TextView 
    android:id="@+id/mytext" 
    android:layout_width="wrap_content" 
    android:layout_height="wrap_content" 
    android:layout_centerHorizontal="true" 
    android:layout_centerVertical="true" 
    android:ellipsize="marquee" 
    android:fadingEdge="horizontal" 
    android:text="@string/hello_world" 
    android:singleLine="true" 
    android:textSize="55sp" /> 

TextView的财产

TextView textView = (TextView) findViewById(R.id.mytext); 
textView.setAlpha(0.7f); 

这个问题是没有看到在Android 4.1,但它目前在Android 4.2开始,如果衰落的边缘被启用。

回答