Back to project page Keep-score.
The source code is released under:
MIT License
If you think the Android project Keep-score listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package gr.sv1jsb.kratascore; /*w w w. j a v a 2 s . co m*/ import android.app.ActionBar; import android.app.Fragment; import android.os.Bundle; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; public class HelpFragment extends Fragment { public static final String TAG = Constants.HELPFRAG; public HelpFragment() { // Required empty public constructor } @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); } @Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { return inflater.inflate(R.layout.fragment_help, container, false); } @Override public void onResume() { super.onResume(); try { ActionBar ab = getActivity().getActionBar(); ab.setDisplayHomeAsUpEnabled(true); ab.setSubtitle(R.string.action_help); } catch (NullPointerException e) { } } @Override public void onDestroy() { super.onDestroy(); try { ActionBar ab = getActivity().getActionBar(); ab.setSubtitle(null); } catch (NullPointerException e) { } } }