Android Open Source - pi-android-player My Tab Listener






From Project

Back to project page pi-android-player.

License

The source code is released under:

Apache License

If you think the Android project pi-android-player 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 edu.ptit.xbmc.tablistener;
////from www.j  av  a  2  s.  c  o m
//import android.app.ActionBar.Tab;
//import android.app.ActionBar.TabListener;
//import android.app.Fragment;
//import android.app.FragmentTransaction;
//import edu.ptit.xbmc.R;
//import edu.ptit.xbmc.activities.MainActivity;
//
//public class MyTabListener implements TabListener {
//  public Fragment fragment;
//  public MainActivity context;
//  
//  public MyTabListener(Fragment fr, MainActivity con){
//    fragment = fr;
//    context = con;
//  }
//  @Override
//  public void onTabReselected(Tab arg0, FragmentTransaction arg1) {
//    // TODO Auto-generated method stub
//
//  }
//
//  @Override
//  public void onTabSelected(Tab tab, FragmentTransaction ft) {
//    // TODO Auto-generated method stub
////    ft.replace(R.id.fragment_container, fragment);
//    Fragment _fragment = context.getFragmentManager().findFragmentByTag(tab.getTag().toString());
//    if(_fragment == null){
//      ft.replace(R.id.fragment_container, fragment);
//    }
//    else{
//      ft.show(fragment);
//    }
//  }
//
//  @Override
//  public void onTabUnselected(Tab tab, FragmentTransaction ft) {
//    // TODO Auto-generated method stub
//    if(fragment != null) ft.hide(fragment);
//  }
//
//}





Java Source Code List

.FragmentAlbum.java
.FragmentArtist.java
.MyTabListener.java
.TabListenerForAlbum.java
edu.ptit.xbmc.activities.MainActivity.java
edu.ptit.xbmc.adapter.AllAlbumAdapter.java
edu.ptit.xbmc.adapter.AllArtistAdapter.java
edu.ptit.xbmc.adapter.AllSongAdapter2.java
edu.ptit.xbmc.adapter.ImageAdapter.java
edu.ptit.xbmc.fragments.FragmentAlbumDetail.java
edu.ptit.xbmc.fragments.FragmentAlbumList.java
edu.ptit.xbmc.fragments.FragmentAllSong.java
edu.ptit.xbmc.fragments.FragmentArtistDetail.java
edu.ptit.xbmc.fragments.FragmentArtistList.java
edu.ptit.xbmc.fragments.FragmentDirectRemote.java
edu.ptit.xbmc.fragments.FragmentNowPlaying.java
edu.ptit.xbmc.fragments.FragmentSettings.java
edu.ptit.xbmc.model.Album.java
edu.ptit.xbmc.model.Artist.java
edu.ptit.xbmc.model.Settings.java
edu.ptit.xbmc.model.Song.java
edu.ptit.xbmc.sp.Constants.java
edu.ptit.xbmc.sp.SPUtils.java
edu.ptit.xbmc.tablistener.TabListenerForArtist.java
edu.ptit.xbmc.tools.PiConnector.java
edu.ptit.xbmc.tools.Utils.java