本文整理匯總了Java中com.getbase.floatingactionbutton.FloatingActionButton.setVisibility方法的典型用法代碼示例。如果您正苦於以下問題:Java FloatingActionButton.setVisibility方法的具體用法?Java FloatingActionButton.setVisibility怎麽用?Java FloatingActionButton.setVisibility使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類com.getbase.floatingactionbutton.FloatingActionButton
的用法示例。
在下文中一共展示了FloatingActionButton.setVisibility方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: onPostExecute
import com.getbase.floatingactionbutton.FloatingActionButton; //導入方法依賴的package包/類
@Override
protected void onPostExecute(Integer myResultObject) {
int mResult = myResultObject.intValue();
mMultipleActions = (FloatingActionsMenu) getView().findViewById(R.id.multipleActions);
mActionLock = (FloatingActionButton) getView().findViewById(R.id.actionLock);
mActionUnlock = (FloatingActionButton) getView().findViewById(R.id.actionUnlock);
if (mResult == BootLoader.BL_UNLOCKED) {
prepareUnlockSet();
mActionLock.setVisibility(View.VISIBLE);
mActionUnlock.setVisibility(View.GONE);
} else if (mResult == BootLoader.BL_LOCKED) {
prepareLockSet();
mMultipleActions.setAlpha(1);
mActionLock.setVisibility(View.GONE);
mActionUnlock.setVisibility(View.VISIBLE);
} else if (mResult == BootLoader.BL_UNSUPPORTED_DEVICE) {
prepareUnsupportedSet();
mActionLock.setVisibility(View.GONE);
mActionUnlock.setVisibility(View.GONE);
} else {
prepareErrorSet();
mMultipleActions.setVisibility(View.GONE);
}
}
示例2: setPlaySongFloatingMenuButton
import com.getbase.floatingactionbutton.FloatingActionButton; //導入方法依賴的package包/類
private void setPlaySongFloatingMenuButton(View view, final String urrlKey)
{
FloatingActionButton playSongFloatingActionButton = (FloatingActionButton) view.findViewById(R.id.play_song_floating_menu_button);
if (isPlayVideo(urrlKey)) {
playSongFloatingActionButton.setVisibility(View.VISIBLE);
playSongFloatingActionButton.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
showYouTube(urrlKey);
if (floatingActionMenu.isExpanded()) {
floatingActionMenu.collapse();
}
}
});
}
}
示例3: setPresentSongFloatingButton
import com.getbase.floatingactionbutton.FloatingActionButton; //導入方法依賴的package包/類
private void setPresentSongFloatingButton(View view)
{
presentSongFloatingButton = (FloatingActionButton) view.findViewById(R.id.present_song_floating_button);
presentSongFloatingButton.setVisibility(View.VISIBLE);
presentSongFloatingButton.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
if (presentationScreenService.getPresentation() != null) {
presentSelectedVerse(0);
presentSongFloatingButton.setVisibility(View.GONE);
getActivity().setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_PORTRAIT);
} else {
Toast.makeText(getActivity(), "Your device is not connected to any remote display", Toast.LENGTH_SHORT).show();
}
}
});
}
示例4: selectFab1
import com.getbase.floatingactionbutton.FloatingActionButton; //導入方法依賴的package包/類
public void selectFab1(View v) {
mFAB1 = (FloatingActionButton) findViewById(R.id.starred1);
mFAB1.setVisibility(View.GONE);
mFAB2 = (FloatingActionButton) findViewById(R.id.starred2);
mFAB2.setVisibility(View.VISIBLE);
mActive = "true";
}
示例5: selectFab2
import com.getbase.floatingactionbutton.FloatingActionButton; //導入方法依賴的package包/類
public void selectFab2(View v) {
mFAB2 = (FloatingActionButton) findViewById(R.id.starred2);
mFAB2.setVisibility(View.GONE);
mFAB1 = (FloatingActionButton) findViewById(R.id.starred1);
mFAB1.setVisibility(View.VISIBLE);
mActive = "false";
}
示例6: setPlaySongFloatingButton
import com.getbase.floatingactionbutton.FloatingActionButton; //導入方法依賴的package包/類
private void setPlaySongFloatingButton(View view, final String urlKey)
{
FloatingActionButton playSongFloatingButton = (FloatingActionButton) view.findViewById(R.id.play_song_floating_button);
playSongFloatingButton.setVisibility(View.VISIBLE);
playSongFloatingButton.setOnClickListener(new View.OnClickListener()
{
@Override
public void onClick(View v)
{
showYouTube(urlKey);
}
});
}
示例7: setNextButton
import com.getbase.floatingactionbutton.FloatingActionButton; //導入方法依賴的package包/類
private void setNextButton(View view)
{
nextButton = (FloatingActionButton) view.findViewById(R.id.next_verse_floating_button);
nextButton.setVisibility(View.GONE);
nextButton.setOnClickListener(new NextButtonOnClickListener());
}
示例8: setPreviousButton
import com.getbase.floatingactionbutton.FloatingActionButton; //導入方法依賴的package包/類
private void setPreviousButton(View view)
{
previousButton = (FloatingActionButton) view.findViewById(R.id.previous_verse_floating_button);
previousButton.setVisibility(View.GONE);
previousButton.setOnClickListener(new PreviousButtonOnClickListener());
}
示例9: setNextButton
import com.getbase.floatingactionbutton.FloatingActionButton; //導入方法依賴的package包/類
private void setNextButton(final Song song)
{
nextButton = (FloatingActionButton) findViewById(R.id.next_verse_floating_button);
nextButton.setVisibility(View.VISIBLE);
nextButton.setOnClickListener(new NextButtonOnClickListener(song));
}