FacebookButtonBase
有此級別的更新版本。前往查看 最新版本。

A base class for a facebook button.

延伸:Button
套件:facebook
建構函式
FacebookButtonBase(Context, AttributeSet, int, int, String)
protected FacebookButtonBase(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes, String analyticsButtonCreatedEventName)
參數說明
context
attrs
defStyleAttr
defStyleRes
analyticsButtonCreatedEventName
執行個體方法
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 fragment that contains this control
getFragment()

Gets the fragment that contains this control.

public Fragment getFragment()
Returns
The 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