shenxiyang
V2EX  ›  Android

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

  •  
  •   shenxiyang · 2016년 10월 17일 · 13511 조회수
    3636일 지난 토픽입니다. 언급된 정보가 변경되었을 수 있습니다.
    <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;
    }

    求大神告诉我怎样去掉这两个黑块?
    아직 댓글이 없습니다
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2568 온라인   최고 기록 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 04:02 · PVG 12:02 · LAX 21:02 · JFK 00:02
    ♥ Do have faith in what you're doing.