@Override public void onClick(View v) { dismiss(); } });
/** * Sets the login behavior during authorization. If null is specified, the default * ({@link com.facebook.login.LoginBehavior LoginBehavior.NATIVE_WITH_FALLBACK} * will be used. * * @param loginBehavior The {@link com.facebook.login.LoginBehavior LoginBehavior} that * specifies what behaviors should be attempted during * authorization. */ public void setLoginBehavior(LoginBehavior loginBehavior) { properties.setLoginBehavior(loginBehavior); }
private void displayToolTip(String toolTipString) { toolTipPopup = new ToolTipPopup(toolTipString, this); toolTipPopup.setStyle(toolTipStyle); toolTipPopup.setNuxDisplayTime(toolTipDisplayTime); toolTipPopup.show(); }
private int measureButtonWidth(final String text) { int textWidth = measureTextWidth(text); return (getCompoundPaddingLeft() + getCompoundDrawablePadding() + textWidth + getCompoundPaddingRight()); }
/** * Constructor * * @param context Context for this View * @param attrs AttributeSet for this View. * The attribute 'preset_size' is processed here */ public ProfilePictureView(Context context, AttributeSet attrs) { super(context, attrs); initialize(context); parseAttributes(attrs); }
/** * Sets the default audience to use when the user logs in. * This value is only useful when specifying publish permissions for the native * login dialog. * * @param defaultAudience the default audience value to use */ public void setDefaultAudience(DefaultAudience defaultAudience) { properties.setDefaultAudience(defaultAudience); }
/** * Sets the profile photo to be the cropped version, or the original version * * @param showCroppedVersion True to select the cropped version * False to select the standard version */ public final void setCropped(boolean showCroppedVersion) { isCropped = showCroppedVersion; // No need to force the refresh since we will catch the change in required dimensions refreshImage(false); }
/** * Gets the default audience to use when the user logs in. * This value is only useful when specifying publish permissions for the native * login dialog. * * @return the default audience value to use */ public DefaultAudience getDefaultAudience() { return properties.getDefaultAudience(); }
/** * Clears the permissions currently associated with this LoginButton. */ public void clearPermissions() { properties.clearPermissions(); }
/** * Gets the login behavior during authorization. If null is returned, the default * ({@link com.facebook.login.LoginBehavior LoginBehavior.NATIVE_WITH_FALLBACK} * will be used. * * @return loginBehavior The {@link com.facebook.login.LoginBehavior LoginBehavior} that * specifies what behaviors should be attempted during * authorization. */ public LoginBehavior getLoginBehavior() { return properties.getLoginBehavior(); }
/** * Gets the authType being used. * @return the authType */ public String getAuthType() { return properties.getAuthType(); }
/** * Sets the authType to be used. * @param authType the authType */ public void setAuthType(final String authType) { properties.setAuthType(authType); }
/** * Constructor * * @param context Context for this View */ public ProfilePictureView(Context context) { super(context); initialize(context); }
public PopupContentView(Context context) { super(context); init(); }
@Override protected LoginClickListener getNewLoginClickListener() { return new DeviceLoginClickListener(); }
List<String> getPermissions() { return properties.getPermissions(); }
/** * Constructor * * @param context Context for this View * @param attrs AttributeSet for this View. * The attribute 'preset_size' is processed here * @param defStyle Default style for this View */ public ProfilePictureView(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); initialize(context); parseAttributes(attrs); }
/** * Dismisses the Tooltip if it is currently visible */ public void dismissToolTip() { if (toolTipPopup != null) { toolTipPopup.dismiss(); toolTipPopup = null; } }
@Override public void run() { dismiss(); } }, mNuxDisplayTime);