FacebookButtonBase
이 클래스의 최신 버전을 사용할 수 있습니다. 확인해보세요 최신 버전.

A base class for a facebook button.

확장:Button
패키지:facebook
생성자
FacebookButtonBase(Context, AttributeSet, int, int, String, String)
protected FacebookButtonBase(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes, String analyticsButtonCreatedEventName, String analyticsButtonTappedEventName)
매개변수설명
context
attrs
defStyleAttr
defStyleRes
analyticsButtonCreatedEventName
analyticsButtonTappedEventName
인스턴스 메서드
getDefaultRequestCode()
protected abstract int getDefaultRequestCode()
setFragment(Fragment)

Sets the fragment that contains this control. This allows the button to be embedded inside a Fragment, and will allow the fragment to receive the onActivityResult.onActivityResult(int, int, android.content.Intent) call rather than the Activity.

public void setFragment(Fragment fragment)
매개변수설명
fragmentThe android.support.v4.app.Fragment that contains this control
setFragment(Fragment)

Sets the fragment that contains this control. This allows the button to be embedded inside a Fragment, and will allow the fragment to receive the onActivityResult.onActivityResult(int, int, android.content.Intent) call rather than the Activity.

public void setFragment(Fragment fragment)
매개변수설명
fragmentThe android.app.Fragment that contains this control
getFragment()

Gets the fragment that contains this control.

public Fragment getFragment()
Returns
The android.support.v4.app.Fragment that contains this control.
getNativeFragment()

Gets the fragment that contains this control.

public Fragment getNativeFragment()
Returns
The android.app.Fragment that contains this control.
getRequestCode()

Returns the request code used for this Button.

public int getRequestCode()
Returns
The request code.
getActivity()
protected Activity getActivity()
getDefaultStyleResource()
protected int getDefaultStyleResource()
measureTextWidth(String)
protected int measureTextWidth(String text)
매개변수설명
text
configureButton(Context, AttributeSet, int, int)
protected void configureButton(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
매개변수설명
context
attrs
defStyleAttr
defStyleRes
callExternalOnClickListener(View)
protected void callExternalOnClickListener(View v)
매개변수설명
v
setInternalOnClickListener(OnClickListener)
protected void setInternalOnClickListener(OnClickListener l)
매개변수설명
l