GmFadeTextView.java 文件源码

java
阅读 22 收藏 0 点赞 0 评论 0

项目:GmArchMvvm 作者:
/**
 * Sets the texts to be shuffled using a string array resource
 *
 * @param texts The string array resource to use for the texts
 */
public void setTexts(@ArrayRes int texts) {
    isSingleText = false;
    if (getResources().getStringArray(texts).length < 1)
        throw new IllegalArgumentException("There must be at least one text");
    else {
        this.texts = getResources().getStringArray(texts);
        stopAnimation();
        position = 0;
        startAnimation();
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号