CommentListItemBackgroundFactory.java 文件源码

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

项目:InsanityRadio-Android 作者:
protected Drawable makeDefaultBackground() {
    PaintDrawable shadow = new PaintDrawable(bottomColor);
    PaintDrawable highlight = new PaintDrawable(topColor);
    PaintDrawable surface = new PaintDrawable(bgColor);
    LayerDrawable layers = new LayerDrawable(new Drawable[] {shadow, highlight, surface});

    layers.setLayerInset(0, 0, 0, 0, 0);
    layers.setLayerInset(1, 0, 0, 0, 1);
    layers.setLayerInset(2, 0, 1, 0, 1);

    return layers;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号