【问题标题】:Refresh State in Action Bar Sherlock在操作栏中刷新状态 Sherlock
【发布时间】:2013-02-27 15:45:04
【问题描述】:

我想在 actionbarsherlock 中旋转刷新。以前我使用 actionbar 并正在执行 setRefreshActionItemState。

【问题讨论】:

    标签: android android-actionbar actionbarsherlock


    【解决方案1】:

    对于刷新状态,您可以尝试此链接以获取答案Refresh menu item animation in ActionBarSherlock..

    case R.id.refreshMenuItem:
        isRefreshing = true;
        item.setActionView(R.layout.action_bar_indeterminate_progress);
        ImageView iv = (ImageView) item.getActionView().findViewById(R.id.loadingImageView);
        ((AnimationDrawable) iv.getDrawable()).start();
    

    【讨论】:

    • 感谢您的链接..但是我需要在其他地方设置刷新状态,例如在加载某些内容后我需要将其设置回原始状态..这不会发生在您的链接中 rightjt
    猜你喜欢
    • 2013-01-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-12-05
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多