public AppMarketsDialog(@NonNull Context context, @StyleRes int theme, List<AppMarket> appMarkets,
final OnAppMarketSelectedListener listener) {
super(context, theme);
View view = LayoutInflater.from(context).inflate(R.layout.dialog_app_markets, null);
RecyclerView recyclerView = (RecyclerView) view.findViewById(R.id.recycler_view);
recyclerView.setLayoutManager(new GridLayoutManager(context, 3));
OnAppMarketSelectedListener mChooseListener = new OnAppMarketSelectedListener() {
@Override
public void onSelected(int position) {
dismiss();
listener.onSelected(position);
}
};
recyclerView.setAdapter(new MarketsAdapter(appMarkets, mChooseListener));
setContentView(view);
}
AppMarketsDialog.java 文件源码
java
阅读 43
收藏 0
点赞 0
评论 0
项目:AppMarketUpdater
作者:
评论列表
文章目录