Android Open Source - FlangeAssist Hall Fragment






From Project

Back to project page FlangeAssist.

License

The source code is released under:

MIT License

If you think the Android project FlangeAssist 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.atasoft.flangeassist.fragments;
// w  w w  .  j  a v a 2  s .  c o  m
import android.os.*;
import android.app.*;
import android.util.*;
import android.view.*;
import android.widget.*;

import com.atasoft.adapters.*;
import com.atasoft.flangeassist.*;

public class HallFragment extends Fragment {
  
  public static final String NAME = "Hall Contacts";
    View thisFrag;
  SparseArray<ExpandableGroup> groups = new SparseArray<ExpandableGroup>();
  
  @Override
  public View onCreateView(LayoutInflater inflater, ViewGroup container,
               Bundle savedInstanceState) {
  View v = inflater.inflate(R.layout.halllinks, container, false);
    thisFrag = v;

  setLinks();
  ExpandableListView listView = (ExpandableListView) thisFrag.findViewById(R.id.listView);
  ExListAd adapter = new ExListAd(getActivity(),
                    groups);
  listView.setAdapter(adapter);
  
    return v;           
  }
  
  private void setLinks() {
    String[] rawArr = getResources().getStringArray(R.array.locals);
    String[] rawSplit;
    
    for(int i = 0; i < rawArr.length; i++) {
      // Display, Home, Phone, Callout
      rawSplit = rawArr[i].split(",");
      ExpandableGroup group = new ExpandableGroup(rawSplit[0]);
      
      for(int j = 1; j < rawSplit.length; j++) {
        group.children.add(suffixAdd(rawSplit[j]));
      }
      groups.append(i, group);
    }
  }
  String suffixAdd(String inString) {  
    return inString;
  }
  
}




Java Source Code List

com.atasoft.adapters.ExListAd.java
com.atasoft.adapters.ExpandableGroup.java
com.atasoft.adapters.TabsPagerAdapter.java
com.atasoft.flangeassist.FragFramer.java
com.atasoft.flangeassist.MainActivity.java
com.atasoft.flangeassist.PreferenceMenu.java
com.atasoft.flangeassist.ToolsActivity.java
com.atasoft.flangeassist.fragments.AboutFragment.java
com.atasoft.flangeassist.fragments.CashCounter.java
com.atasoft.flangeassist.fragments.FlangeFragment.java
com.atasoft.flangeassist.fragments.HallFragment.java
com.atasoft.flangeassist.fragments.NozzleCalc.java
com.atasoft.flangeassist.fragments.PaychequeFragment.java
com.atasoft.flangeassist.fragments.RigTrig.java
com.atasoft.flangeassist.fragments.ShapeCalcFrag.java
com.atasoft.flangeassist.fragments.TorqueFragment.java
com.atasoft.flangeassist.fragments.UnitConFragment.java
com.atasoft.flangeassist.fragments.WageCPIEstimate.java
com.atasoft.flangeassist.fragments.WeldingFrag.java
com.atasoft.helpers.AtaMathUtils.java
com.atasoft.helpers.AtaTimePicker.java
com.atasoft.helpers.ConvDataHold.java
com.atasoft.helpers.JsonPuller.java
com.atasoft.helpers.ShapeCalcHold.java
com.atasoft.helpers.TaxManager.java