當前位置: 首頁>>代碼示例>>Java>>正文


Java FloatingActionButton.setVisibility方法代碼示例

本文整理匯總了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);
        }
    }
 
開發者ID:MrDoomy,項目名稱:PadLock,代碼行數:27,代碼來源:MainFragment.java

示例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();
                }
            }
        });
    }
}
 
開發者ID:mcruncher,項目名稱:worshipsongs-android,代碼行數:19,代碼來源:SongContentPortraitViewFragment.java

示例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();
            }
        }
    });
}
 
開發者ID:mcruncher,項目名稱:worshipsongs-android,代碼行數:20,代碼來源:SongContentPortraitViewFragment.java

示例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";
}
 
開發者ID:attiqrehman1991,項目名稱:Task-Reminder,代碼行數:8,代碼來源:ReminderEditActivity.java

示例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";
}
 
開發者ID:attiqrehman1991,項目名稱:Task-Reminder,代碼行數:8,代碼來源:ReminderEditActivity.java

示例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);
        }
    });
}
 
開發者ID:mcruncher,項目名稱:worshipsongs-android,代碼行數:14,代碼來源:SongContentPortraitViewFragment.java

示例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());
}
 
開發者ID:mcruncher,項目名稱:worshipsongs-android,代碼行數:7,代碼來源:SongContentPortraitViewFragment.java

示例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());
}
 
開發者ID:mcruncher,項目名稱:worshipsongs-android,代碼行數:7,代碼來源:SongContentPortraitViewFragment.java

示例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));
}
 
開發者ID:mcruncher,項目名稱:worshipsongs-android,代碼行數:7,代碼來源:PresentSongActivity.java


注:本文中的com.getbase.floatingactionbutton.FloatingActionButton.setVisibility方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。