-
public class APUtils
-
-
Method Summary
Modifier and Type Method Description static voidmakeTextView(TextView textView, String text, int size, int color, Typeface tf, int style, int maxLines, TextUtils.TruncateAt ellipsize, boolean bold)static voidmakeRenewalTextView(TextView textView, String text, int size, int color, Typeface tf, int style, int maxLines, TextUtils.TruncateAt ellipsize, boolean bold)static intgetPartiTypeColor(int partiTypeCode)static intgetPartiTypeTextColor(int partiTypeCode)static StringgetPartiType(APLanguage apLanguage, int partiTypeCode)static StringgetNativeCTA(APLanguage apLanguage, int partiTypeCode)static Stringconvert(int trans)static StringconvertIntoColor(int colorCode, int transCode)static booleanisViewFullyVisible(View view)static booleanisReallyNotNull(String str)static booleanisAboveTargetVersion30(Context context)static intgetBuildTargetVersion(Context context)static booleancheckCampaignTypeMatch(int tabType, int campaignType)-
-
Method Detail
-
makeTextView
static void makeTextView(TextView textView, String text, int size, int color, Typeface tf, int style, int maxLines, TextUtils.TruncateAt ellipsize, boolean bold)
-
makeRenewalTextView
static void makeRenewalTextView(TextView textView, String text, int size, int color, Typeface tf, int style, int maxLines, TextUtils.TruncateAt ellipsize, boolean bold)
-
getPartiTypeColor
static int getPartiTypeColor(int partiTypeCode)
-
getPartiTypeTextColor
static int getPartiTypeTextColor(int partiTypeCode)
-
getPartiType
static String getPartiType(APLanguage apLanguage, int partiTypeCode)
-
getNativeCTA
static String getNativeCTA(APLanguage apLanguage, int partiTypeCode)
-
convertIntoColor
static String convertIntoColor(int colorCode, int transCode)
-
isViewFullyVisible
static boolean isViewFullyVisible(View view)
-
isReallyNotNull
static boolean isReallyNotNull(String str)
-
isAboveTargetVersion30
static boolean isAboveTargetVersion30(Context context)
-
getBuildTargetVersion
static int getBuildTargetVersion(Context context)
-
checkCampaignTypeMatch
static boolean checkCampaignTypeMatch(int tabType, int campaignType)
-
-
-
-