TaggingActivity.java 文件源码

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

项目:Minerva 作者:
/**
 * Called when one of the action buttons is clicked on a tag card.
 * @param event {@link TagCardClickEvent}.
 */
@Subscribe
public void onTagCardAction(TagCardClickEvent event) {
    // Store tag.
    tempTag = items.where()
                   .equalTo("name", event.getName())
                   .findFirst();
    // Open some dialog.
    switch (event.getType()) {
        case TEXT_COLOR:
            new ColorChooserDialog.Builder(this, R.string.title_tag_text_color)
                    .preselect(tempTag.textColor)
                    .dynamicButtonColor(false)
                    .show();
            break;
        case BG_COLOR:
            new ColorChooserDialog.Builder(this, R.string.title_tag_bg_color)
                    .preselect(tempTag.bgColor)
                    .dynamicButtonColor(false)
                    .show();
            break;
        case ACTIONS:
            onCardMenuActionClicked(event.getActionId(), event.getName());
            break;
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号