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


Java BottomSheetDialogFragment.show方法代碼示例

本文整理匯總了Java中android.support.design.widget.BottomSheetDialogFragment.show方法的典型用法代碼示例。如果您正苦於以下問題:Java BottomSheetDialogFragment.show方法的具體用法?Java BottomSheetDialogFragment.show怎麽用?Java BottomSheetDialogFragment.show使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在android.support.design.widget.BottomSheetDialogFragment的用法示例。


在下文中一共展示了BottomSheetDialogFragment.show方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: add

import android.support.design.widget.BottomSheetDialogFragment; //導入方法依賴的package包/類
public void add(int pos) {
    final MainFragment ma = (MainFragment) ((TabFragment) mainActivity.getSupportFragmentManager().findFragmentById(R.id.content_frame)).getCurrentTabFragment();
    final String path = ma.getCurrentPath();

    switch (pos) {
        case NEW_FOLDER:
            mkdir(ma.openMode, path, ma);
            break;
        case NEW_FILE:
            mkfile(ma.openMode, path, ma);
            break;
        case NEW_CLOUD:
            BottomSheetDialogFragment fragment = new CloudSheetFragment();
            fragment.show(ma.getActivity().getSupportFragmentManager(),
                    CloudSheetFragment.TAG_FRAGMENT);
            break;
    }
}
 
開發者ID:TeamAmaze,項目名稱:AmazeFileManager,代碼行數:19,代碼來源:MainActivityHelper.java

示例2: showBottomSheetDialogFragment

import android.support.design.widget.BottomSheetDialogFragment; //導入方法依賴的package包/類
public void showBottomSheetDialogFragment(BottomSheetDialogFragment sheetDialogFragment, String tag ) {
    if( sheetDialogFragment == null ) return;
    if( this.fragmentSheet != null && this.fragmentSheet.isVisible() )
        this.fragmentSheet.dismiss();
    sheetDialogFragment.show( getSupportFragmentManager(), tag );
    this.fragmentSheet = sheetDialogFragment;
}
 
開發者ID:tec-ustp,項目名稱:SIIEScanner,代碼行數:8,代碼來源:MainActivity.java

示例3: onClick

import android.support.design.widget.BottomSheetDialogFragment; //導入方法依賴的package包/類
@Override
public void onClick(View v) {
    if (v.getId() == R.id.btn_behavior) {
        if (mBottomSheetBehavior.getState() == BottomSheetBehavior.STATE_COLLAPSED) {
            mBottomSheetBehavior.setState(BottomSheetBehavior.STATE_EXPANDED);
        } else {
            mBottomSheetBehavior.setState(BottomSheetBehavior.STATE_COLLAPSED);
        }
    } else {
        BottomSheetDialogFragment fragment = new MyBottomSheetDialogFragment();
        fragment.show(getSupportFragmentManager(), "MyBottomSheetDialogFragment");
    }
}
 
開發者ID:yokmama,項目名稱:honki_android2,代碼行數:14,代碼來源:BottomSheetActivity.java

示例4: onClick

import android.support.design.widget.BottomSheetDialogFragment; //導入方法依賴的package包/類
@Override
public void onClick(View v) {
    if (v.getId() == R.id.btn_behavior) {
        // TODO:レッスンではここにプログラムを追加
    } else {
        BottomSheetDialogFragment fragment = new MyBottomSheetDialogFragment();
        fragment.show(getSupportFragmentManager(), "MyBottomSheetDialogFragment");
    }
}
 
開發者ID:yokmama,項目名稱:honki_android2,代碼行數:10,代碼來源:BottomSheetActivity.java

示例5: showRequestDetail

import android.support.design.widget.BottomSheetDialogFragment; //導入方法依賴的package包/類
@Override
public void showRequestDetail(int position, Meal meal) {
    Bundle bundle = new Bundle();
    bundle.putParcelable(MealDetailFragment.TAG_MEAL, meal);
    BottomSheetDialogFragment bottomSheetDialogFragment = new MealDetailFragment();
    bottomSheetDialogFragment.setArguments(bundle);
    bottomSheetDialogFragment.show(getActivity().getSupportFragmentManager(), bottomSheetDialogFragment.getTag());
}
 
開發者ID:Danihelsan,項目名稱:MikuyConcept,代碼行數:9,代碼來源:RequestTodayFragment.java

示例6: showBottomSheet

import android.support.design.widget.BottomSheetDialogFragment; //導入方法依賴的package包/類
@OnClick({R.id.hm_route, R.id.hm_sug3})
public void showBottomSheet() {
    BottomSheetDialogFragment bottomSheetDialogFragment;
    if (currentObject != null) {
        bottomSheetDialogFragment = TransportFragment.newInstance(currentObject.getRouteNo(), -1);
    } else {
        bottomSheetDialogFragment = TransportFragment.newInstance(-1, -1);
    }
    bottomSheetDialogFragment.show(getSupportFragmentManager(), bottomSheetDialogFragment.getTag());
}
 
開發者ID:NCBSinfo,項目名稱:NCBSinfo,代碼行數:11,代碼來源:Home.java

示例7: showBottomSheet

import android.support.design.widget.BottomSheetDialogFragment; //導入方法依賴的package包/類
@OnClick(R.id.tp_show_all)
public void showBottomSheet() {
    BottomSheetDialogFragment bottomSheetDialogFragment;
    if (currentDetails != null) {
        bottomSheetDialogFragment = TransportFragment.newInstance(currentDetails.getRouteID(), currentDetails.getReturnIndex());
    } else {
        bottomSheetDialogFragment = TransportFragment.newInstance(-1, -1);
    }
    bottomSheetDialogFragment.show(getSupportFragmentManager(), bottomSheetDialogFragment.getTag());
}
 
開發者ID:NCBSinfo,項目名稱:NCBSinfo,代碼行數:11,代碼來源:Transport.java

示例8: openBottomSheet

import android.support.design.widget.BottomSheetDialogFragment; //導入方法依賴的package包/類
private void openBottomSheet() {
    BottomSheetDialogFragment bottomSheetDialogFragment = new CustomBottomSheetDialogFragment();
    bottomSheetDialogFragment.show(getActivity().getSupportFragmentManager(), bottomSheetDialogFragment.getTag());
}
 
開發者ID:smashingboxes,項目名稱:android-analytics,代碼行數:5,代碼來源:MainFragment.java

示例9: openBottomSheet

import android.support.design.widget.BottomSheetDialogFragment; //導入方法依賴的package包/類
private void openBottomSheet(Messages message) {
    BottomSheetDialogFragment bottomSheetDialogFragment = BottomSheetTopicInfoDialogFragment.newInstance(message);
    bottomSheetDialogFragment.show(context.getSupportFragmentManager(), bottomSheetDialogFragment.getTag());
}
 
開發者ID:pvarry,項目名稱:intra42,代碼行數:5,代碼來源:ExpandableListAdapterTopic.java

示例10: openDetailSheet

import android.support.design.widget.BottomSheetDialogFragment; //導入方法依賴的package包/類
private void openDetailSheet() {
    BottomSheetDialogFragment bottomSheetDialogFragment = new ExploreDetailFragment();
    bottomSheetDialogFragment.show(getActivity().getSupportFragmentManager(), bottomSheetDialogFragment.getTag());
}
 
開發者ID:Danihelsan,項目名稱:MikuyConcept,代碼行數:5,代碼來源:ExploreFragment.java

示例11: openConfirmationSheet

import android.support.design.widget.BottomSheetDialogFragment; //導入方法依賴的package包/類
private void openConfirmationSheet(){
    BottomSheetDialogFragment bottomSheetDialogFragment = new FreeMealConfirmationFragment();
    bottomSheetDialogFragment.show(getActivity().getSupportFragmentManager(), bottomSheetDialogFragment.getTag());
}
 
開發者ID:Danihelsan,項目名稱:MikuyConcept,代碼行數:5,代碼來源:FreeMealFragment.java

示例12: showBottomSheet

import android.support.design.widget.BottomSheetDialogFragment; //導入方法依賴的package包/類
public void showBottomSheet(ContactModel model) {
    BottomSheetDialogFragment bottomSheetDialogFragment = ContactFragment.newInstance(model);
    bottomSheetDialogFragment.show(getSupportFragmentManager(), bottomSheetDialogFragment.getTag());
}
 
開發者ID:NCBSinfo,項目名稱:NCBSinfo,代碼行數:5,代碼來源:Contacts.java

示例13: showDialogBottomSheet

import android.support.design.widget.BottomSheetDialogFragment; //導入方法依賴的package包/類
@Override
public void showDialogBottomSheet() {
    BottomSheetDialogFragment bottomSheetDialogFragment = new CustomizedBottomSheetDialog();
    bottomSheetDialogFragment.show(getSupportFragmentManager(), bottomSheetDialogFragment.getTag());
}
 
開發者ID:Androideity,項目名稱:AndroidStudioTutorials,代碼行數:6,代碼來源:BottomSheetExampleActivity.java

示例14: askFeedback

import android.support.design.widget.BottomSheetDialogFragment; //導入方法依賴的package包/類
private void askFeedback() {
    BottomSheetDialogFragment myBottomSheet = FeedbackDialogFragment.newInstance();
    myBottomSheet.show(getSupportFragmentManager(), myBottomSheet.getTag());
}
 
開發者ID:open-roboclub,項目名稱:roboclub-amu,代碼行數:5,代碼來源:MainActivity.java

示例15: creditsClicked

import android.support.design.widget.BottomSheetDialogFragment; //導入方法依賴的package包/類
@OnClick(R.id.credits)
public void creditsClicked() {
    BottomSheetDialogFragment dialog = new AboutBottomSheetDialogFragment();
    dialog.show(((AppCompatActivity) getActivity()).getSupportFragmentManager(), dialog.getTag());
}
 
開發者ID:savoirfairelinux,項目名稱:ring-client-android,代碼行數:6,代碼來源:AboutFragment.java


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