本文整理汇总了Java中com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter类的典型用法代码示例。如果您正苦于以下问题:Java RecyclerViewMaterialAdapter类的具体用法?Java RecyclerViewMaterialAdapter怎么用?Java RecyclerViewMaterialAdapter使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
RecyclerViewMaterialAdapter类属于com.github.florent37.materialviewpager.adapter包,在下文中一共展示了RecyclerViewMaterialAdapter类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: onViewCreated
import com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter; //导入依赖的package包/类
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
mRecyclerView = (RecyclerView) view.findViewById(R.id.recyclerView);
//permet un affichage sous forme liste verticale
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity());
mRecyclerView.setLayoutManager(layoutManager);
mRecyclerView.setHasFixedSize(true);
//100 faux contenu
List<Object> mContentItems = new ArrayList<>();
for (int i = 0; i < 100; ++i)
mContentItems.add(new Object());
//penser à passer notre Adapter (ici : TestRecyclerViewAdapter) à un RecyclerViewMaterialAdapter
mAdapter = new RecyclerViewMaterialAdapter(new TestRecyclerViewAdapter(mContentItems));
mRecyclerView.setAdapter(mAdapter);
//notifier le MaterialViewPager qu'on va utiliser une RecyclerView
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
}
开发者ID:florent37,项目名称:TutosAndroidFrance,代码行数:23,代码来源:RecyclerViewFragment.java
示例2: onViewCreated
import com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter; //导入依赖的package包/类
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
getPresenter().onResponse();
mRecyclerView = (RecyclerView) view.findViewById(R.id.recyclerView);
mActionButton = (ActionButton) view.findViewById(R.id.actionButton_fragment_ad);
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity());
mRecyclerView.setLayoutManager(layoutManager);
mRecyclerView.setHasFixedSize(true);
mAdapter = new RecyclerViewMaterialAdapter(new AdAdapter(mContentItems, this));
mRecyclerView.setAdapter(mAdapter);
setScrollListener();
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
}
开发者ID:Fukago,项目名称:TravelBan,代码行数:17,代码来源:AdFragment.java
示例3: onViewCreated
import com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter; //导入依赖的package包/类
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
ButterKnife.bind(this, view);
recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
recyclerView.setAdapter(new RecyclerViewMaterialAdapter(adapter));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), recyclerView, null);
betaSeriesAPI.serieInformations(showId)
.observeOn(AndroidSchedulers.mainThread())
.subscribe(betaSerieResponse -> {
adapter.setShow(betaSerieResponse.getShow());
recyclerView.getAdapter().notifyDataSetChanged();
});
}
开发者ID:TutosAndroidFrance,项目名称:BetaSeries,代码行数:19,代码来源:ShowDetailFragment.java
示例4: onViewCreated
import com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter; //导入依赖的package包/类
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
ButterKnife.bind(this, view);
final LinearLayoutManager layoutManager = new LinearLayoutManager(getActivity());
mRecyclerView.setLayoutManager(layoutManager);
mRecyclerView.setHasFixedSize(true);
mAdapter = new RecyclerViewMaterialAdapter(new ActionViewAdapter(getActivity(), mContentItems, actions));
mRecyclerView.setAdapter(mAdapter);
mRecyclerView.setOnScrollListener(new RecyclerView.OnScrollListener() {
@Override
public void onScrolled(RecyclerView recyclerView, int dx, int dy) {
int visibleItemCount = layoutManager.getChildCount();
int totalItemCount = layoutManager.getItemCount();
int pastVisiblesItems = layoutManager.findFirstVisibleItemPosition();
if (loading) {
if ((visibleItemCount + pastVisiblesItems) >= totalItemCount) {
// 达到底部加载更多
loading = false;
new LoadActions().execute();
}
}
}
});
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
new LoadActions().execute();
}
开发者ID:moe2studio,项目名称:PangciACG,代码行数:28,代码来源:UserActonFragment.java
示例5: onViewCreated
import com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter; //导入依赖的package包/类
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
mRecyclerView = (RecyclerView) view.findViewById(R.id.recyclerView);
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity());
mRecyclerView.setLayoutManager(layoutManager);
mRecyclerView.setHasFixedSize(true);
mAdapter = new RecyclerViewMaterialAdapter(new TrainListAdapter(mContentItems, this));
mRecyclerView.setAdapter(mAdapter);
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
}
开发者ID:Fukago,项目名称:TravelBan,代码行数:12,代码来源:TrainListFragment.java
示例6: onViewCreated
import com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter; //导入依赖的package包/类
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
mRecyclerView = (RecyclerView) view.findViewById(R.id.recyclerView);
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity());
mRecyclerView.setLayoutManager(layoutManager);
mRecyclerView.setHasFixedSize(true);
mAdapter = new RecyclerViewMaterialAdapter(new CityAdapter(cities, citiesId, citiesDescription,this));
mRecyclerView.setAdapter(mAdapter);
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
}
开发者ID:Fukago,项目名称:TravelBan,代码行数:12,代码来源:CityClassFragment.java
示例7: onViewCreated
import com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter; //导入依赖的package包/类
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
mRecyclerView = (RecyclerView) view.findViewById(R.id.recyclerview_offers);
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity());
mRecyclerView.setLayoutManager(layoutManager);
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new LoaderAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
Api apiHandler = ((App) getActivity().getApplication()).getApiHandler();
apiHandler.getShoppingOffers(
new Callback<List<Offers>>() {
@Override
public void success(List<Offers> offers, Response response) {
offerList = offers;
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new ShoppingAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
// Log.d(LOG_TAG, offerList.get(0).getUrl() + " " + offerList.get(0).getAvailability() + " " + offerList.get(0).getDescription() + " " + offerList.get(0).getTitle() + " " + offerList.get(0).getImageUrls().get(0).getUrl());
sendParseAnalytics("true");
}
@Override
public void failure(RetrofitError error) {
Log.d(LOG_TAG, "failure" + error.getUrl() + error.getMessage());
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new ErrorAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
sendParseAnalytics("false");
}
}
);
}
开发者ID:Greplr,项目名称:Greplr_Android,代码行数:34,代码来源:ShoppingOffersFragment.java
示例8: onViewCreated
import com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter; //导入依赖的package包/类
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
mRecyclerView = (RecyclerView) view.findViewById(R.id.recyclerview_food_order);
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity());
mRecyclerView.setLayoutManager(layoutManager);
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new LoaderAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
Api apiHandler = ((App) getActivity().getApplication()).getApiHandler();
apiHandler.getOrderFood(
String.valueOf(App.currentLatitude),
String.valueOf(App.currentLongitude),
new Callback<Order>() {
@Override
public void success(Order orders, Response response) {
Log.d(LOG_TAG, "success" + response.getUrl() + response.getStatus());
area_id = orders.getArea_id();
restaurantList = orders.getRestaurants();
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new OrderAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
Log.d(LOG_TAG, restaurantList.get(0).getAddress() + " " + restaurantList.get(0).getCode() + " " + restaurantList.get(0).getDescription() + " " + restaurantList.get(0).getId() + " " + restaurantList.get(0).getLatitude() + " " + restaurantList.get(0).getLogo() + " " + restaurantList.get(0).getLongitude() + " " + restaurantList.get(0).getMetadata() + " " + restaurantList.get(0).getChain().getName());
sendParseAnalytics("true");
}
@Override
public void failure(RetrofitError error) {
Log.d(LOG_TAG, "failure" + error.getUrl() + error.getMessage());
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new ErrorAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
sendParseAnalytics("false");
}
}
);
}
开发者ID:Greplr,项目名称:Greplr_Android,代码行数:38,代码来源:FoodOrderingFragment.java
示例9: fetchFlights
import com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter; //导入依赖的package包/类
private void fetchFlights() {
Api apiHandler = ((App) getActivity().getApplication()).getApiHandler();
apiHandler.getTravelFlights(
departureLocation,
arrivalLocation,
travelDate,
Integer.valueOf(numOfAdults),
new Callback<List<Flight>>() {
@Override
public void success(List<Flight> flights, Response response) {
Log.d(LOG_TAG, "success" + response.getUrl() + response.getStatus());
flightList = flights;
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new FlightAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
((SubCategoryFragment) getParentFragment()).getSearchFab().attachToRecyclerView(mRecyclerView);
sendParseAnalytics("true");
}
@Override
public void failure(RetrofitError error) {
Log.d(LOG_TAG, "failure" + error.getUrl() + error.getMessage());
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new ErrorAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
sendParseAnalytics("false");
}
}
);
}
开发者ID:Greplr,项目名称:Greplr_Android,代码行数:29,代码来源:TravelFlightFragment.java
示例10: onViewCreated
import com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter; //导入依赖的package包/类
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
mRecyclerView = (RecyclerView) view.findViewById(
R.id.recyclerview_cab);
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity());
mRecyclerView.setLayoutManager(layoutManager);
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new LoaderAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
final Api apiHandler = ((App) getActivity().getApplication()).getApiHandler();
apiHandler.getTravelCabs(
String.valueOf(App.currentLatitude),
String.valueOf(App.currentLongitude),
new Callback<List<Cab>>() {
@Override
public void success(List<Cab> cabs, Response response) {
Log.d(LOG_TAG, "success" + response.getUrl() + response.getStatus());
cabList = cabs;
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new CabAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
sendParseAnalytics("true");
}
@Override
public void failure(RetrofitError error) {
Log.d(LOG_TAG, "failure" + error.getUrl() + error.getMessage());
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new ErrorAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
sendParseAnalytics("false");
}
}
);
}
开发者ID:Greplr,项目名称:Greplr_Android,代码行数:36,代码来源:TravelCabFragment.java
示例11: fetchBus
import com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter; //导入依赖的package包/类
private void fetchBus() {
Api apiHandler = ((App) getActivity().getApplication()).getApiHandler();
apiHandler.getTravelBus(
departureLocation,
arrivalLocation,
travelDate,
new Callback<List<Bus>>() {
@Override
public void success(List<Bus> buses, Response response) {
Log.d(LOG_TAG, "success" + response.getUrl() + response.getStatus());
busList = buses;
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new BusAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
((SubCategoryFragment) getParentFragment()).getSearchFab().attachToRecyclerView(mRecyclerView);
sendParseAnalytics("true");
}
@Override
public void failure(RetrofitError error) {
Log.d(LOG_TAG, "failure" + error.getUrl() + error.getMessage());
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new ErrorAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
sendParseAnalytics("false");
}
}
);
}
开发者ID:Greplr,项目名称:Greplr_Android,代码行数:28,代码来源:TravelBusFragment.java
示例12: onViewCreated
import com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter; //导入依赖的package包/类
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
mRecyclerView = (RecyclerView) view.findViewById(R.id.recyclerview_plays);
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity());
mRecyclerView.setLayoutManager(layoutManager);
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new LoaderAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
Api apiHandler = ((App) getActivity().getApplication()).getApiHandler();
apiHandler.getEventPlays(
new Callback<List<Plays>>() {
@Override
public void success(List<Plays> plays, Response response) {
Log.d(LOG_TAG, "success" + response.getUrl() + response.getStatus());
playList = plays;
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new PlayAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
sendParseAnalytics("true");
}
@Override
public void failure(RetrofitError error) {
Log.d(LOG_TAG, "failure" + error.getUrl() + error.getMessage());
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new ErrorAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
sendParseAnalytics("false");
}
}
);
}
开发者ID:Greplr,项目名称:Greplr_Android,代码行数:33,代码来源:EventPlayFragment.java
示例13: onViewCreated
import com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter; //导入依赖的package包/类
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
mRecyclerView = (RecyclerView) view.findViewById(R.id.recyclerview_movies);
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity());
mRecyclerView.setLayoutManager(layoutManager);
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new LoaderAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
Api apiHandler = ((App) getActivity().getApplication()).getApiHandler();
apiHandler.getEventMovies(
new Callback<List<Movies>>() {
@Override
public void success(List<Movies> movies, Response response) {
Log.d(LOG_TAG, "success" + response.getUrl() + response.getStatus());
movieList = movies;
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new MoviesAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
sendParseAnalytics("true");
}
@Override
public void failure(RetrofitError error) {
Log.d(LOG_TAG, "failure" + error.getUrl() + error.getMessage());
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new ErrorAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
sendParseAnalytics("false");
}
}
);
}
开发者ID:Greplr,项目名称:Greplr_Android,代码行数:34,代码来源:EventMovieFragment.java
示例14: onViewCreated
import com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter; //导入依赖的package包/类
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
mRecyclerView = (RecyclerView) view.findViewById(
R.id.recyclerview_food_bar);
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity());
mRecyclerView.setLayoutManager(layoutManager);
mAdapter = new RecyclerViewMaterialAdapter(new NumberedAdapter(0));
mRecyclerView.setAdapter(mAdapter);
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
}
开发者ID:Greplr,项目名称:Greplr_Android,代码行数:14,代码来源:FoodBarsFragment.java
示例15: onViewCreated
import com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter; //导入依赖的package包/类
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
mRecyclerView = (RecyclerView) view.findViewById(
R.id.recyclerview_food_cafe);
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity());
mRecyclerView.setLayoutManager(layoutManager);
mAdapter = new RecyclerViewMaterialAdapter(new NumberedAdapter(0));
mRecyclerView.setAdapter(mAdapter);
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
}
开发者ID:Greplr,项目名称:Greplr_Android,代码行数:14,代码来源:FoodCafesFragment.java
示例16: onViewCreated
import com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter; //导入依赖的package包/类
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
mRecyclerView = (RecyclerView) view.findViewById(
R.id.recyclerview_food_restaurant);
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity());
mRecyclerView.setLayoutManager(layoutManager);
mAdapter = new RecyclerViewMaterialAdapter(new NumberedAdapter(0));
mRecyclerView.setAdapter(mAdapter);
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
}
开发者ID:Greplr,项目名称:Greplr_Android,代码行数:14,代码来源:FoodRestaurantsFragment.java
示例17: onViewCreated
import com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter; //导入依赖的package包/类
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
mRecyclerView = (RecyclerView) view.findViewById(R.id.recyclerview_shoppingsearch);
RecyclerView.LayoutManager layoutManager = new LinearLayoutManager(getActivity());
mRecyclerView.setLayoutManager(layoutManager);
onSearchFABListener = new View.OnClickListener() {
@Override
public void onClick(View v) {
final Dialog customDialog = new Dialog(getActivity(), R.style.AppTheme_SearchDialog);
customDialog.setContentView(R.layout.searchdialog_shopping_search);
customDialog.setTitle("What are you looking for?");
customDialog.setCancelable(true);
CardView shoppingCardView = (CardView) customDialog.findViewById(R.id.shopping_search_card_dialog);
shoppingCardView.setCardBackgroundColor((ColorUtils.getDarkerColor(getResources().getColor(R.color.shopping_color_light))));
final MaterialEditText product = (MaterialEditText) customDialog.findViewById(R.id.et_product_name);
AppCompatButton buttonDone = (AppCompatButton) customDialog.findViewById(R.id.ok_button);
buttonDone.setSupportBackgroundTintList(getResources().getColorStateList(android.R.color.white));
product.setOnEditorActionListener(new TextView.OnEditorActionListener() {
@Override
public boolean onEditorAction(TextView v, int actionId,
KeyEvent event) {
boolean handled = false;
if (actionId == EditorInfo.IME_ACTION_SEARCH) {
InputMethodManager in = (InputMethodManager) getActivity().getSystemService(Context.INPUT_METHOD_SERVICE);
productName = product.getText().toString();
if (!productName.equalsIgnoreCase("")) {
customDialog.dismiss();
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new LoaderAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
fetchSearch();
handled = true;
} else {
product.setError("Please Enter the Product Name");
handled = false;
}
}
return handled;
}
});
buttonDone.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
productName = product.getText().toString();
if (!productName.equalsIgnoreCase("")) {
customDialog.dismiss();
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new LoaderAdapter()));
MaterialViewPagerHelper.registerRecyclerView(getActivity(), mRecyclerView, null);
fetchSearch();
} else {
product.setError("Please Enter the Product Name");
}
}
});
customDialog.show();
}
};
}
开发者ID:Greplr,项目名称:Greplr_Android,代码行数:64,代码来源:ShoppingSearchFragment.java
示例18: updateBars
import com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter; //导入依赖的package包/类
public void updateBars(List<Bar> bars) {
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new BarAdapter()));
}
开发者ID:Greplr,项目名称:Greplr_Android,代码行数:4,代码来源:FoodBarsFragment.java
示例19: updateCafes
import com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter; //导入依赖的package包/类
public void updateCafes(List<Cafe> cafes) {
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new CafeAdapter()));
}
开发者ID:Greplr,项目名称:Greplr_Android,代码行数:4,代码来源:FoodCafesFragment.java
示例20: updateRestaurants
import com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter; //导入依赖的package包/类
public void updateRestaurants(List<Restaurant> restaurants) {
mRecyclerView.setAdapter(new RecyclerViewMaterialAdapter(new RestaurantAdapter()));
}
开发者ID:Greplr,项目名称:Greplr_Android,代码行数:4,代码来源:FoodRestaurantsFragment.java
注:本文中的com.github.florent37.materialviewpager.adapter.RecyclerViewMaterialAdapter类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论