V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
shenxiyang
V2EX  ›  Android

[求助] TextView 跑马灯滚动时两端变黑

  •  
  •   shenxiyang · 2016-10-17 13:30:41 +08:00 · 4915 次点击
    这是一个创建于 2755 天前的主题,其中的信息可能已经有所发展或是发生改变。
    <com.hnhengshuokeji.tgame.activity.common.MarqueeTextView
    android:id="@+id/main_tv_speaker"
    android:layout_width="1100px"
    android:layout_height="wrap_content"
    android:layout_marginLeft="350px"
    android:layout_marginTop="318px"
    android:ellipsize="marquee"
    android:marqueeRepeatLimit="marquee_forever"
    android:scrollHorizontally="true"
    android:singleLine="true"
    android:text="12345 12345 12345 12345 12345 12345 "
    android:textColor="@android:color/white"
    android:textSize="35px" />
    继承 TextView 重写 isFocused(),让它 return true
    @Override
    public boolean isFocused(){
    return true;
    }

    求大神告诉我怎样去掉这两个黑块?
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2111 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 11:01 · PVG 19:01 · LAX 04:01 · JFK 07:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.