Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override
- public void onCreate(Bundle savedInstanceState) {
- super.onCreate(savedInstanceState);
- /* Supress the default Title Bar because we will be using our own */
- this.requestWindowFeature(Window.FEATURE_NO_TITLE);
- setContentView(R.layout.fixview_fragment);
- }
- public void onResume() {
- super.onResume();
- }
- public View onCreateView(LayoutInflater inflater, ViewGroup container,
- Bundle savedInstanceState) {
- captureRouteLayout = (LinearLayout) inflater.inflate(R.layout.captureroute_list, container, false);
- captureButton=(Button)captureRouteLayout.findViewById(R.id.capturelButton);
- captureProgress = (ProgressBar) captureRouteLayout.findViewById(R.id.capturelProgress);
- SharedPreferences settings = getSharedPreferences(PREFS_NAME, 0);
- if (settings.getBoolean("capturingRoute", false)) {
- captureButton.setText(R.string.stop);
- captureButton.setOnClickListener(stopCapture);
- captureProgress.setVisibility(0);
- } else {
- captureButton.setOnClickListener(startCapture);
- }
- return captureRouteLayout;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement