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

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

  •  
  •   shenxiyang · 2016-10-17 13:30:41 +08:00 · 5728 次点击
    这是一个创建于 2798 天前的主题,其中的信息可能已经有所发展或是发生改变。
    <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   ·   实用小工具   ·   2347 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 15:38 · PVG 23:38 · LAX 08:38 · JFK 11:38
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.