本文整理汇总了Java中com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout类的典型用法代码示例。如果您正苦于以下问题:Java TwinklingRefreshLayout类的具体用法?Java TwinklingRefreshLayout怎么用?Java TwinklingRefreshLayout使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TwinklingRefreshLayout类属于com.lcodecore.tkrefreshlayout包,在下文中一共展示了TwinklingRefreshLayout类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: setupRecyclerView
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout; //导入依赖的package包/类
private void setupRecyclerView(RecyclerView rv) {
rv.setLayoutManager(new LinearLayoutManager(rv.getContext()));
foodAdapter = new FoodAdapter();
rv.setAdapter(foodAdapter);
final TwinklingRefreshLayout refreshLayout = (TwinklingRefreshLayout) findViewById(R.id.refresh);
// ProgressLayout headerView = new ProgressLayout(getContext());
BezierLayout headerView = new BezierLayout(this);
refreshLayout.setHeaderView(headerView);
// refreshLayout.setFloatRefresh(false);
refreshLayout.setPureScrollModeOn(true);
// refreshLayout.setEnableOverlayRefreshView(false);
// refreshLayout.setAutoLoadMore(true);
refreshCard();
}
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:18,代码来源:FoodActivity.java
示例2: initEvents
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout; //导入依赖的package包/类
@Override
protected void initEvents() {
mRefreshLayout.setOnRefreshListener(new RefreshListenerAdapter() {
@Override
public void onRefresh(final TwinklingRefreshLayout refreshLayout) {
new Handler().postDelayed(new Runnable() {
@Override
public void run() {
refreshLayout.finishRefreshing();
}
}, 2000);
}
});
mAdapter.setOnItemClickListener(new BaseQuickAdapter.OnItemClickListener() {
@Override
public void onItemClick(BaseQuickAdapter adapter, View view, int position) {
if (position < mHeaderList.size()) {
mRefreshLayout.setHeaderView(mHeaderList.get(position));
mRefreshLayout.startRefresh();
}
}
});
}
开发者ID:zyyoona7,项目名称:MyLoadingViews,代码行数:26,代码来源:ProgressLoadingActivity.java
示例3: prepareUI
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout; //导入依赖的package包/类
/**
* 准备UI
*/
private void prepareUI() {
mNavigationView = (NavigationViewPush) findViewById(R.id.nav_search_result);
mNewsListRecyclerView = (RecyclerView) findViewById(R.id.rv_search_result_list_recyclerview);
mRefreshLayout = (TwinklingRefreshLayout) findViewById(R.id.srl_search_result_list_refresh);
mNavigationView.setupNavigationView(true, false, "搜索结果", new NavigationViewPush.OnClickListener() {
@Override
public void onBackClick(View v) {
finish();
}
});
setupRecyclerView();
setupRefresh();
}
开发者ID:6ag,项目名称:LiuAGeAndroid,代码行数:19,代码来源:SearchResultActivity.java
示例4: setupRecyclerView
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout; //导入依赖的package包/类
private void setupRecyclerView(RecyclerView rv) {
rv.setLayoutManager(new LinearLayoutManager(rv.getContext()));
foodAdapter = new FoodAdapter();
rv.setAdapter(foodAdapter);
final TwinklingRefreshLayout refreshLayout = (TwinklingRefreshLayout) findViewById(R.id.refresh);
// ProgressLayout headerView = new ProgressLayout(getContext());
BezierLayout headerView = new BezierLayout(this);
refreshLayout.setHeaderView(headerView);
// refreshLayout.setFloatRefresh(false);
refreshLayout.setPureScrollModeOn();
// refreshLayout.setEnableOverlayRefreshView(false);
// refreshLayout.setAutoLoadMore(true);
refreshCard();
}
开发者ID:lcodecorex,项目名称:TwinklingRefreshLayout,代码行数:18,代码来源:FoodActivity.java
示例5: initViews
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout; //导入依赖的package包/类
@Override
protected void initViews() {
mRefreshLayout = (TwinklingRefreshLayout) findViewById(R.id.tfl_indicator);
mRecyclerView = (RecyclerView) findViewById(R.id.rv_indicator);
mRecyclerView.setAdapter(mAdapter);
mRecyclerView.setLayoutManager(new LinearLayoutManager(this, LinearLayoutManager.VERTICAL, false));
mAdapter.setNewData(mDataList);
mRefreshLayout.setHeaderView(mHeaderList.get(0));
}
开发者ID:zyyoona7,项目名称:MyLoadingViews,代码行数:11,代码来源:ProgressLoadingActivity.java
示例6: prepareUI
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout; //导入依赖的package包/类
@Override
protected View prepareUI() {
View view = View.inflate(mContext, R.layout.fragment_news_list, null);
mNewsListRecyclerView = (RecyclerView) view.findViewById(R.id.rv_news_list_recyclerview);
refreshLayout = (TwinklingRefreshLayout) view.findViewById(R.id.srl_news_list_refresh);
return view;
}
开发者ID:6ag,项目名称:LiuAGeAndroid,代码行数:8,代码来源:NewsListFragment.java
示例7: prepareUI
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout; //导入依赖的package包/类
/**
* 准备UI
*/
private void prepareUI() {
mNavigationViewRed = (NavigationViewPush) findViewById(R.id.nav_collection);
mRefreshLayout = (TwinklingRefreshLayout) findViewById(R.id.srl_collection_record_list_refresh);
mNewsListRecyclerView = (RecyclerView) findViewById(R.id.rv_collection_record_list);
mNavigationViewRed.setupNavigationView(true, false, "我的收藏", new NavigationViewPush.OnClickListener() {
@Override
public void onBackClick(View v) {
finish();
}
});
}
开发者ID:6ag,项目名称:LiuAGeAndroid,代码行数:15,代码来源:CollectionRecordActivity.java
示例8: prepareUI
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout; //导入依赖的package包/类
/**
* 准备UI
*/
private void prepareUI() {
mNavigationViewRed = (NavigationViewPush) findViewById(R.id.nav_comment);
mRefreshLayout = (TwinklingRefreshLayout) findViewById(R.id.srl_comment_record_list_refresh);
mNewsListRecyclerView = (RecyclerView) findViewById(R.id.rv_comment_record_list);
mNavigationViewRed.setupNavigationView(true, false, "我的评论", new NavigationViewPush.OnClickListener() {
@Override
public void onBackClick(View v) {
finish();
}
});
}
开发者ID:6ag,项目名称:LiuAGeAndroid,代码行数:15,代码来源:CommentRecordActivity.java
示例9: onCreate
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_comment_list);
// 取出传递过来的数据
Intent intent = getIntent();
origin = intent.getStringExtra("origin_key");
if (origin.equals("news")) {
// 来自资讯详情,则有默认评论数据
commentBeanList = (List<CommentBean>) intent.getSerializableExtra("commentBeanList_key");
}
classid = intent.getStringExtra("classid_key");
id = intent.getStringExtra("id_key");
mNavigationViewRed = (NavigationViewPush) findViewById(R.id.nav_comment_list);
refreshLayout = (TwinklingRefreshLayout) findViewById(R.id.srl_comment_list_refresh);
mCommentListRecyclerView = (RecyclerView) findViewById(R.id.rv_comment_list_recyclerview);
mNavigationViewRed.setupNavigationView(true, false, "评论", new NavigationViewPush.OnClickListener() {
@Override
public void onBackClick(View v) {
finish();
}
});
// 配置评论列表
setupRecyclerView();
// 配置刷新控件
setupRefresh();
}
开发者ID:6ag,项目名称:LiuAGeAndroid,代码行数:34,代码来源:CommentListActivity.java
示例10: onCreateView
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout; //导入依赖的package包/类
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
View view = inflater.inflate(getLayout(), container, false);
System.out.println("onCreateView");
recyclerView = (RecyclerView) view.findViewById(R.id.list);
refreshLayout = (TwinklingRefreshLayout) view.findViewById(R.id.refreshLayout);
emptyView = (FrameLayout) view.findViewById(R.id.emptyView);
return view;
}
开发者ID:Lingzh0ng,项目名称:ITSM,代码行数:10,代码来源:BaseListFragment.java
示例11: prepareUI
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout; //导入依赖的package包/类
@Override
protected View prepareUI() {
View view = View.inflate(mContext, R.layout.fragment_news_list, null);
mPhotoListRecyclerView = (RecyclerView) view.findViewById(R.id.rv_news_list_recyclerview);
refreshLayout = (TwinklingRefreshLayout) view.findViewById(R.id.srl_news_list_refresh);
return view;
}
开发者ID:6ag,项目名称:BaoKanAndroid,代码行数:8,代码来源:PhotoListFragment.java
示例12: prepareUI
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout; //导入依赖的package包/类
/**
* 准备UI
*/
private void prepareUI() {
mNavigationViewRed = (NavigationViewRed) findViewById(R.id.nav_collection);
mRefreshLayout = (TwinklingRefreshLayout) findViewById(R.id.srl_collection_record_list_refresh);
mCollectionRecordRecyclerView = (RecyclerView) findViewById(R.id.rv_collection_record_list);
mNavigationViewRed.setupNavigationView(true, false, "我的收藏", new NavigationViewRed.OnClickListener() {
@Override
public void onBackClick(View v) {
finish();
}
});
}
开发者ID:6ag,项目名称:BaoKanAndroid,代码行数:15,代码来源:CollectionRecordActivity.java
示例13: prepareUI
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout; //导入依赖的package包/类
/**
* 准备UI
*/
private void prepareUI() {
mNavigationViewRed = (NavigationViewRed) findViewById(R.id.nav_comment);
mRefreshLayout = (TwinklingRefreshLayout) findViewById(R.id.srl_comment_record_list_refresh);
mCollectionRecordRecyclerView = (RecyclerView) findViewById(R.id.rv_comment_record_list);
mNavigationViewRed.setupNavigationView(true, false, "我的评论", new NavigationViewRed.OnClickListener() {
@Override
public void onBackClick(View v) {
finish();
}
});
}
开发者ID:6ag,项目名称:BaoKanAndroid,代码行数:15,代码来源:CommentRecordActivity.java
示例14: onCreate
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout; //导入依赖的package包/类
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_comment_list);
// 取出传递过来的数据
Intent intent = getIntent();
origin = intent.getStringExtra("origin_key");
if (origin.equals("news")) {
// 来自资讯详情,则有默认评论数据
commentBeanList = (List<CommentBean>) intent.getSerializableExtra("commentBeanList_key");
}
classid = intent.getStringExtra("classid_key");
id = intent.getStringExtra("id_key");
mNavigationViewRed = (NavigationViewRed) findViewById(R.id.nav_comment_list);
refreshLayout = (TwinklingRefreshLayout) findViewById(R.id.srl_comment_list_refresh);
mCommentListRecyclerView = (RecyclerView) findViewById(R.id.rv_comment_list_recyclerview);
mNavigationViewRed.setupNavigationView(true, false, "评论", new NavigationViewRed.OnClickListener() {
@Override
public void onBackClick(View v) {
finish();
}
});
// 配置评论列表
setupRecyclerView();
// 配置刷新控件
setupRefresh();
}
开发者ID:6ag,项目名称:BaoKanAndroid,代码行数:34,代码来源:CommentListActivity.java
示例15: WebLayout
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout; //导入依赖的package包/类
public WebLayout(Activity activity) {
this.mActivity = activity;
mTwinklingRefreshLayout = (TwinklingRefreshLayout) LayoutInflater.from(activity).inflate(R.layout.fragment_twk_web, null);
mTwinklingRefreshLayout.setPureScrollModeOn();
mWebView = (WebView) mTwinklingRefreshLayout.findViewById(R.id.webView);
}
开发者ID:Justson,项目名称:AgentWeb,代码行数:7,代码来源:WebLayout.java
示例16: Decorator
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout; //导入依赖的package包/类
public Decorator(TwinklingRefreshLayout.CoContext processor, IDecorator decorator1) {
cp = processor;
decorator = decorator1;
}
开发者ID:Justson,项目名称:AgentWebX5,代码行数:5,代码来源:Decorator.java
示例17: OverScrollDecorator
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout; //导入依赖的package包/类
public OverScrollDecorator(TwinklingRefreshLayout.CoContext processor, IDecorator decorator1) {
super(processor, decorator1);
}
开发者ID:Justson,项目名称:AgentWebX5,代码行数:4,代码来源:OverScrollDecorator.java
示例18: RefreshProcessor
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout; //导入依赖的package包/类
public RefreshProcessor(TwinklingRefreshLayout.CoContext processor) {
if (processor == null) throw new NullPointerException("The coprocessor can not be null.");
cp = processor;
}
开发者ID:Justson,项目名称:AgentWebX5,代码行数:5,代码来源:RefreshProcessor.java
示例19: AnimProcessor
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout; //导入依赖的package包/类
public AnimProcessor(TwinklingRefreshLayout.CoContext coProcessor) {
this.cp = coProcessor;
decelerateInterpolator = new DecelerateInterpolator(8);
}
开发者ID:Justson,项目名称:AgentWebX5,代码行数:5,代码来源:AnimProcessor.java
注:本文中的com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论