Android Open Source - TuxPuz Frag_example






From Project

Back to project page TuxPuz.

License

The source code is released under:

GNU General Public License

If you think the Android project TuxPuz 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.fragment.pkh;
/* w w  w  .  j  ava 2 s  . com*/
import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.util.Log;
import android.view.ViewGroup;
import android.view.Window;
import android.widget.Button;
import android.widget.HorizontalScrollView;
import android.widget.LinearLayout;

import com.korovyansk.android.slideout.SlideoutHelper;
import com.pkh.tuxpuz.R;


public class Frag_example extends FragmentActivity {
  Button viewhelp,viewExample,btn1,btn2,btn3,btn4,btn5,btn6,btn7,btn8,btn9,nxt_btn;
  
  HorizontalScrollView hscrollview;
  
  LinearLayout viewTable;
  boolean scrollview_visiblity=false;
  boolean tableview_visibitlity=false;
  int a[];
  int loopnumber=0;
  SlideoutHelper  mSlideoutHelper;
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    requestWindowFeature(Window.FEATURE_NO_TITLE);
    setContentView(R.layout.activity_frag_example);
    
    hscrollview=(HorizontalScrollView) findViewById(R.id.howtoplay_scrollview);
    viewTable=(LinearLayout) findViewById(R.id.table_viewEg);
    
    viewhelp=(Button) findViewById(R.id.how_to_play_btn);
    viewExample=(Button) findViewById(R.id.viewExamplebtn);
    
    nxt_btn=(Button) findViewById(R.id.nextView);
    
    
    
    hscrollview.setVisibility(ViewGroup.GONE);
    viewTable.setVisibility(ViewGroup.GONE);
    
    SlideoutHelper  mSlideoutHelper = new SlideoutHelper(this);
        mSlideoutHelper.activate();
        getSupportFragmentManager().beginTransaction().add(com.korovyansk.android.slideout.R.id.slideout_placeholder, new MenuFragment(), "menu").commit();
      
      //  getSupportFragmentManager().beginTransaction().add(com.korovyansk.android.slideout.R.id.slideout_placeholder, new MenuFragment());
        mSlideoutHelper.open();
    
  
  }
  @Override
  public void onBackPressed() {
    // TODO Auto-generated method stub
    super.onBackPressed();
    Log.d("pkh tile", "Backpressed Fragment");
    finish();
  }
  @Override
  protected void onDestroy() {
    // TODO Auto-generated method stub
    super.onDestroy();
    Log.d("pkh tile", "Destroying Fragment");
  }
  
  


  

}




Java Source Code List

com.CustomizedClasses.pkh.CustomDialogSucces.java
com.CustomizedClasses.pkh.CustomizeArrayList.java
com.CustomizedClasses.pkh.ShuffleClass.java
com.Database.pkh.PuzzleDatabase.java
com.fragment.pkh.Frag_example.java
com.fragment.pkh.MenuFragment.java
com.helperclass_medium.pkh.GestureSwipe_medium.java
com.helperclass_medium.pkh.SpriteSheet.java
com.helperclasses.pkh.GestureSwipe_easy.java
com.helperclasses.pkh.SpriteSheet.java
com.pkh.tuxpuz.AnimProjt.java
com.pkh.tuxpuz.FacebookPage.java
com.pkh.tuxpuz.FragmentActivity.java
com.pkh.tuxpuz.GeekSelector.java
com.pkh.tuxpuz.HelpView.java
com.pkh.tuxpuz.ImagePuzzle.java
com.pkh.tuxpuz.MenuScreen.java
com.pkh.tuxpuz.Puzzle_3X3.java
com.pkh.tuxpuz.Puzzle_3x3_medium.java
com.pkh.tuxpuz.Puzzle_4x4.java
com.pkh.tuxpuz.Puzzle_4x4_medium.java
com.pkh.tuxpuz.SelectionClass.java
com.pkh.tuxpuz.SpecialTuxLevel.java
com.pkh.tuxpuz.SplashScreen.java