Android Open Source - App-Growth-Engine-Android-TabUI Tab U I Utils






From Project

Back to project page App-Growth-Engine-Android-TabUI.

License

The source code is released under:

Apache License

If you think the Android project App-Growth-Engine-Android-TabUI 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.hookmobile.tabui;
/*from  ww  w.j a va2s .c o m*/
import java.util.ArrayList;

import com.hookmobile.age.Lead;

import android.content.Context;
import android.content.res.Resources;
import android.os.Parcelable;

class TabUIUtils {
  
  static String appPackage = TabUIConstants.EMPTY_STRING;
  
  
  static int getResourceId(Context context, String resName, String className) {
    Resources r = context.getResources();
    
    return r.getIdentifier(resName, className, appPackage);
  }  
  
  static ArrayList<Lead> convertParcelableLead(ArrayList<Parcelable> parcelableLeads) {
    ArrayList<Lead> leads = new ArrayList<Lead>();
    
    for (int i = 0; i < parcelableLeads.size(); i++) {
      leads.add((Lead) parcelableLeads.get(i));
    }
    
    return leads;
  }

  static ArrayList<PhoneBookContact> convertParcelableContacts(ArrayList<Parcelable> parcelableContacts) {
    ArrayList<PhoneBookContact> contacts = new ArrayList<PhoneBookContact>();
    
    for (int i = 0; i < parcelableContacts.size(); i++) {
      contacts.add((PhoneBookContact) parcelableContacts.get(i));
    }
    
    return contacts;
  }
  
}




Java Source Code List

com.hookmobile.tabui.FriendsAdapter.java
com.hookmobile.tabui.PhoneBookContact.java
com.hookmobile.tabui.PhoneBookContactsActivity.java
com.hookmobile.tabui.PhoneBookContactsAdapter.java
com.hookmobile.tabui.Playable.java
com.hookmobile.tabui.RecommendedContact.java
com.hookmobile.tabui.RecommendedContactsAdapter.java
com.hookmobile.tabui.SmsType.java
com.hookmobile.tabui.TabUIConstants.java
com.hookmobile.tabui.TabUIUtils.java
com.hookmobile.tabui.TabUI.java
com.hookmobile.tabui.sample.MainActivity.java
com.hookmobile.tabui.sample.SplashScreenActivity.java