当前位置: 首页>>代码示例>>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;未经允许,请勿转载。