本文整理匯總了Java中com.github.obsessive.library.progress.CircularProgressBar類的典型用法代碼示例。如果您正苦於以下問題:Java CircularProgressBar類的具體用法?Java CircularProgressBar怎麽用?Java CircularProgressBar使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
CircularProgressBar類屬於com.github.obsessive.library.progress包,在下文中一共展示了CircularProgressBar類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: init
import com.github.obsessive.library.progress.CircularProgressBar; //導入依賴的package包/類
private void init(Context context) {
mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
// footer
mFooterView = (RelativeLayout) mInflater.inflate(R.layout.common_load_more_footer, this, false);
mLabLoadMore = (TextView) mFooterView.findViewById(R.id.common_load_more_footer_msg);
mProgressBarLoadMore = (CircularProgressBar) mFooterView.findViewById(R.id.common_load_more_footer_progress);
addFooterView(mFooterView);
super.setOnScrollListener(this);
}
示例2: init
import com.github.obsessive.library.progress.CircularProgressBar; //導入依賴的package包/類
private void init(Context context) {
mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
setSelector(R.drawable.transparent);
// footer
mFooterView = (RelativeLayout) mInflater.inflate(R.layout.common_load_more_footer, this, false);
mLabLoadMore = (TextView) mFooterView.findViewById(R.id.common_load_more_footer_msg);
mProgressBarLoadMore = (CircularProgressBar) mFooterView.findViewById(R.id.common_load_more_footer_progress);
addFooterView(mFooterView);
super.setOnScrollListener(this);
}