shenxiyang
V2EX  ›  Android

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

  •  
  •   shenxiyang · Oct 17, 2016 · 13000 views
    This topic created in 3502 days ago, the information mentioned may be changed or developed.
    <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;
    }

    求大神告诉我怎样去掉这两个黑块?
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2671 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 15:31 · PVG 23:31 · LAX 08:31 · JFK 11:31
    ♥ Do have faith in what you're doing.