Android Open Source - AndroidAdventure_tig055 Touchpad Activity






From Project

Back to project page AndroidAdventure_tig055.

License

The source code is released under:

MIT License

If you think the Android project AndroidAdventure_tig055 listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.example.pc_controller;
/*  ww  w. jav a  2 s. c  o m*/
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.support.v7.app.ActionBarActivity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

public class TouchpadActivity extends ActionBarActivity {

  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_touchpad);

    getSupportActionBar().hide();

    if (savedInstanceState == null) {
      getSupportFragmentManager().beginTransaction().add(R.id.container, new PlaceholderFragment()).commit();
    }
  }

  /**
   * A placeholder fragment containing a simple view.
   */
  public static class PlaceholderFragment extends Fragment {

    public PlaceholderFragment() {
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
      View rootView = inflater.inflate(R.layout.fragment_touchpad, container, false);
      return rootView;
    }
  }

}




Java Source Code List

.MainFrame.java
.Server.java
com.example.pc_controller.GamingActivity.java
com.example.pc_controller.KeyboardActivity.java
com.example.pc_controller.StartActivity.java
com.example.pc_controller.TouchpadActivity.java