コード例 #1
0
 @Override
 public void openDetails(View view, WeatherListItemModel weatherListItemModel) {
   if (getActivity().getActionBar() != null)
     getActivity().getActionBar().setDisplayHomeAsUpEnabled(true);
   WeatherDetailView weatherDetailView = Views.find(mDetailsLayout, R.id.detailView);
   weatherDetailView.setmWeatherListItemModel(weatherListItemModel);
   mUnfoldableView.unfold(view, mDetailsLayout);
   if (weatherListItemModel.mWeatherLocalModel != null) {
     getActivity().getActionBar().setTitle(weatherListItemModel.mWeatherLocalModel.localName);
   }
 }
コード例 #2
0
 @Override
 public void openDetails(View coverView, Painting painting) {
   if (getActivity().getActionBar() != null)
     getActivity().getActionBar().setDisplayHomeAsUpEnabled(true);
   mUnfoldableView.unfold(coverView, mDetailsLayout);
 }