Android Open Source - SSPIA Tabs Planets






From Project

Back to project page SSPIA.

License

The source code is released under:

MIT License

If you think the Android project SSPIA 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.fiec.sspia.main;
/*from  w ww  .  j  a v a2  s.  co  m*/
import com.fiec.ssapp.R;
import com.fiec.sspia.db.Planets;

import android.graphics.Color;
import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentActivity;
import android.support.v4.app.FragmentTabHost;
import android.view.View;
import android.widget.TextView;

public class TabsPlanets{
  
  public static FragmentActivity act;
  private FragmentTabHost th;
  public static String pname;
  public static int pos;
  private static String _C= "#33B5E5";
  
  public static Planets planet;
  public static String[] tags;
  
  public TabsPlanets(FragmentActivity act, Fragment frag, View parentview, Planets plan, int pos, String[] tag) {
    TabsPlanets.act = act;
    TabsPlanets.pname = plan.getName();
    TabsPlanets.pos = pos;
    planet = plan;
    tags = tag;
    th = (FragmentTabHost)parentview.findViewById(android.R.id.tabhost);
    th.setup(act, frag.getChildFragmentManager(), R.id.realtabcontent);
  }
  
  public boolean addTabs2(){    
    //EDITAR INFORMATION TAB PARA MANDARLE PARAMETRO PLANET!!
    th.addTab(th.newTabSpec("tab1").setIndicator("Information"),null, null);
      
    return true;
  }
  
  public boolean addTabs(){
    //EDITAR INFORMATION TAB PARA MANDARLE PARAMETRO PLANET!!
    th.addTab(th.newTabSpec("tab1").setIndicator("Information"),InformationTab.class, null);
    
    if(planet.getSat() >= 1)
      th.addTab(th.newTabSpec("tab2").setIndicator("Satellites"),SatellitesClass.class, null);
    
      for(int i=0;i<th.getTabWidget().getChildCount();i++) 
      {
          TextView tv = (TextView) th.getTabWidget().getChildAt(i).findViewById(android.R.id.title);
          tv.setTextColor(Color.parseColor(_C));
      } 
      
    return true;
  }
}




Java Source Code List

com.fiec.sspia.buff.DefaultNoti.java
com.fiec.sspia.buff.PlanetClass.java
com.fiec.sspia.buff.PlanetSource.java
com.fiec.sspia.buff.Tag.java
com.fiec.sspia.db.Celestial.java
com.fiec.sspia.db.DBHelper.java
com.fiec.sspia.db.DbAuxClass.java
com.fiec.sspia.db.Planets.java
com.fiec.sspia.db.Satellites.java
com.fiec.sspia.db.SolarDb.java
com.fiec.sspia.main.InformationTab.java
com.fiec.sspia.main.SatellitesClass.java
com.fiec.sspia.main.SolarActivity.java
com.fiec.sspia.main.TabsPlanets.java
com.fiec.sspia.mclass.MainClass.java
com.fiec.sspia.mclass.MainFragment.java
com.fiec.sspia.mclass.SSNotific.java
com.fiec.sspia.mclass.SetttingsClass.java
com.fiec.sspia.mclass.SplashClass.java
com.fiec.sspia.system.BroadcastRec.java
com.fiec.sspia.system.SspiaService.java
com.fiec.sspia.system.StartingNotis.java
com.fiec.sspia.util.AbstrCd.java
com.fiec.sspia.util.CdClass.java
com.fiec.sspia.util.CustomInfoAdapter.java
com.fiec.sspia.util.CustomMenuAdapter.java
com.fiec.sspia.util.FillMenuAdapter.java
com.fiec.sspia.util.JSONParser.java
com.fiec.sspia.util.MainGridAdapterClass.java
com.fiec.sspia.util.MenuSettings.java
com.fiec.sspia.util.SSInterfaceNoti.java
com.fiec.sspia.util.SatelliteGridAdapterClass.java
com.fiec.sspia.util.TempClass.java
com.fiec.sspia.util.TransitionClass.java