Changeset View
Changeset View
Standalone View
Standalone View
src/it/reyboz/bustorino/fragments/ResultListFragment.java
Show First 20 Lines • Show All 184 Lines • ▼ Show 20 Lines | public View onCreateView(LayoutInflater inflater, ViewGroup container, | ||||
return root; | return root; | ||||
} | } | ||||
public boolean isFragmentForTheSameStop(Palina p) { | public boolean isFragmentForTheSameStop(Palina p) { | ||||
return adapterKind.equals(FragmentKind.ARRIVALS) && getTag().equals(getFragmentTag(p)); | return adapterKind.equals(FragmentKind.ARRIVALS) && getTag().equals(getFragmentTag(p)); | ||||
} | } | ||||
public static String getFragmentTag(Palina p) { | public static String getFragmentTag(Palina p) { | ||||
return p.ID; | return "palina_"+p.ID; | ||||
} | } | ||||
@Override | @Override | ||||
public void onResume() { | public void onResume() { | ||||
super.onResume(); | super.onResume(); | ||||
//Log.d(getString(R.string.list_fragment_debug),"Fragment restored, saved listAdapter is "+(mListAdapter)); | //Log.d(getString(R.string.list_fragment_debug),"Fragment restored, saved listAdapter is "+(mListAdapter)); | ||||
if (mListAdapter != null) { | if (mListAdapter != null) { | ||||
▲ Show 20 Lines • Show All 89 Lines • ▼ Show 20 Lines | public class ResultListFragment extends Fragment{ | ||||
* Set the message textView | * Set the message textView | ||||
* @param message the whole message to write in the textView | * @param message the whole message to write in the textView | ||||
*/ | */ | ||||
public void setTextViewMessage(String message) { | public void setTextViewMessage(String message) { | ||||
messageTextView.setText(message); | messageTextView.setText(message); | ||||
messageTextView.setVisibility(View.VISIBLE); | messageTextView.setVisibility(View.VISIBLE); | ||||
} | } | ||||
} | } | ||||
No newline at end of file | No newline at end of file |
Public contents are in Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) or GNU Free Documentation License (at your option) unless otherwise noted. · Contact / Register