public class POBUIUtil
extends java.lang.Object
| Constructor and Description |
|---|
POBUIUtil() |
| Modifier and Type | Method and Description |
|---|---|
static android.widget.ImageButton |
createSkipButton(android.content.Context context,
int btnId,
int resId)
Create circular close button.
|
static android.widget.TextView |
createSkipDurationTextView(android.content.Context context,
int id)
Creates skip duration TextView component
|
static android.widget.TextView |
createTextView(android.content.Context context,
java.lang.String text,
float textSize,
int accessibilityId)
Create button control from given arguments
|
static android.widget.FrameLayout.LayoutParams |
getLayoutParamsForTopRightPosition(android.content.Context context)
Layout Params for Top Right corner of the view.
|
static java.lang.String |
getLocalizedStringForKey(android.content.Context context,
java.lang.String key,
java.lang.String defaultValue)
Returns the localized title text for given key
|
static void |
updateSkipButtonToCloseButton(android.widget.ImageButton button)
Method to update forward button to close button
|
@NonNull
public static android.widget.ImageButton createSkipButton(@NonNull
android.content.Context context,
@IdRes
int btnId,
@DrawableRes
int resId)
context - activity/application contextpublic static void updateSkipButtonToCloseButton(@NonNull
android.widget.ImageButton button)
button - instance of button to be updated@NonNull
public static android.widget.TextView createSkipDurationTextView(@NonNull
android.content.Context context,
int id)
context - activity contextid - the resource id which is going to set as button id@NonNull
public static android.widget.FrameLayout.LayoutParams getLayoutParamsForTopRightPosition(@NonNull
android.content.Context context)
context - the contextFrameLayout.LayoutParams@NonNull
public static android.widget.TextView createTextView(@NonNull
android.content.Context context,
@Nullable
java.lang.String text,
float textSize,
int accessibilityId)
context - the android contexttext - the text which is going to set on buttontextSize - the text size in pixels which is going to set on buttonaccessibilityId - the id which is going to set on button@NonNull
public static java.lang.String getLocalizedStringForKey(@NonNull
android.content.Context context,
@NonNull
java.lang.String key,
@NonNull
java.lang.String defaultValue)
context - the android contextkey - key for the localized StringdefaultValue - default Value of the localized string