本文整理匯總了Java中com.crazyhitty.chdev.ks.rssmanager.RssReader類的典型用法代碼示例。如果您正苦於以下問題:Java RssReader類的具體用法?Java RssReader怎麽用?Java RssReader使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
RssReader類屬於com.crazyhitty.chdev.ks.rssmanager包,在下文中一共展示了RssReader類的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: loadFeedsAsync
import com.crazyhitty.chdev.ks.rssmanager.RssReader; //導入依賴的package包/類
public void loadFeedsAsync(final OnFeedsLoadedListener onFeedsLoadedListener, List<SourceItem> sourceItems) {
this.onFeedsLoadedListener = onFeedsLoadedListener;
String[] urlList = new String[sourceItems.size()];
String[] sourceList = new String[sourceItems.size()];
String[] categories = new String[sourceItems.size()];
int[] categoryImgIds = new int[sourceItems.size()];
for (int i = 0; i < urlList.length; i++) {
urlList[i] = sourceItems.get(i).getSourceUrl();
sourceList[i] = sourceItems.get(i).getSourceName();
categories[i] = sourceItems.get(i).getSourceCategoryName();
categoryImgIds[i] = sourceItems.get(i).getSourceCategoryImgId();
}
Log.e("url", urlList[0]);
RssReader rssReader = new RssReader(mContext, urlList, sourceList, categories, categoryImgIds, this);
rssReader.readRssFeeds();
}
示例2: onRefresh
import com.crazyhitty.chdev.ks.rssmanager.RssReader; //導入依賴的package包/類
@Override
public void onRefresh() {
if (snackbar != null)
snackbar.dismiss();
swipeContainer.setRefreshing(true);
String feed = getResources().getStringArray(R.array.dist_urls)[selected_distro];
// anybody knows how to skip this step? super annoying
String[] feeds = {feed};
new RssReader(this).showDialog(false).urls(feeds).parse(this);
}