Java 类android.support.design.widget.BottomSheetDialogFragment 实例源码

项目:AmazeFileManager    文件:MainActivityHelper.java   
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;
    }
}
项目:SIIEScanner    文件:MainActivity.java   
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;
}
项目:honki_android2    文件:BottomSheetActivity.java   
@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");
    }
}
项目:honki_android2    文件:BottomSheetActivity.java   
@Override
public void onClick(View v) {
    if (v.getId() == R.id.btn_behavior) {
        // TODO:レッスンではここにプログラムを追加
    } else {
        BottomSheetDialogFragment fragment = new MyBottomSheetDialogFragment();
        fragment.show(getSupportFragmentManager(), "MyBottomSheetDialogFragment");
    }
}
项目:MikuyConcept    文件:RequestTodayFragment.java   
@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());
}
项目:MikuyConcept    文件:HistoryFragment.java   
@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());
}
项目:NCBSinfo    文件:Home.java   
@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());
}
项目:NCBSinfo    文件:Transport.java   
@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());
}
项目:BottomSheetBehavior    文件:MainActivity.java   
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_main);
    final BottomSheetDialogFragment myBottomSheet = MyBottomSheetDialogFragment.newInstance("Modal Bottom Sheet");

    Button button = (Button) findViewById(R.id.button);
    button.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            myBottomSheet.show(getSupportFragmentManager(), myBottomSheet.getTag());
        }
    });
}
项目:AndroidDesignSupportLibrarySample    文件:BottomSheetDialogFragmentActivity.java   
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_bottom_sheet_dialog_fragment);

    Button button = (Button)findViewById(R.id.button);
    button.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            BottomSheetDialogFragment dialog = new MyBottomSheetDialogFragment();
            dialog.show(getSupportFragmentManager(), dialog.getTag());
        }
    });
}
项目:mapbox-navigation-android    文件:FeedbackBottomSheet.java   
@Override
public void onCreate(@Nullable Bundle savedInstanceState) {
  super.onCreate(savedInstanceState);
  setStyle(BottomSheetDialogFragment.STYLE_NO_FRAME, R.style.Theme_Design_BottomSheetDialog);
}
项目:android-analytics    文件:MainFragment.java   
private void openBottomSheet() {
    BottomSheetDialogFragment bottomSheetDialogFragment = new CustomBottomSheetDialogFragment();
    bottomSheetDialogFragment.show(getActivity().getSupportFragmentManager(), bottomSheetDialogFragment.getTag());
}
项目:intra42    文件:ExpandableListAdapterTopic.java   
private void openBottomSheet(Messages message) {
    BottomSheetDialogFragment bottomSheetDialogFragment = BottomSheetTopicInfoDialogFragment.newInstance(message);
    bottomSheetDialogFragment.show(context.getSupportFragmentManager(), bottomSheetDialogFragment.getTag());
}
项目:MikuyConcept    文件:ExploreFragment.java   
private void openDetailSheet() {
    BottomSheetDialogFragment bottomSheetDialogFragment = new ExploreDetailFragment();
    bottomSheetDialogFragment.show(getActivity().getSupportFragmentManager(), bottomSheetDialogFragment.getTag());
}
项目:MikuyConcept    文件:FreeMealFragment.java   
private void openConfirmationSheet(){
    BottomSheetDialogFragment bottomSheetDialogFragment = new FreeMealConfirmationFragment();
    bottomSheetDialogFragment.show(getActivity().getSupportFragmentManager(), bottomSheetDialogFragment.getTag());
}
项目:NCBSinfo    文件:Contacts.java   
public void showBottomSheet(ContactModel model) {
    BottomSheetDialogFragment bottomSheetDialogFragment = ContactFragment.newInstance(model);
    bottomSheetDialogFragment.show(getSupportFragmentManager(), bottomSheetDialogFragment.getTag());
}
项目:AndroidStudioTutorials    文件:BottomSheetExampleActivity.java   
@Override
public void showDialogBottomSheet() {
    BottomSheetDialogFragment bottomSheetDialogFragment = new CustomizedBottomSheetDialog();
    bottomSheetDialogFragment.show(getSupportFragmentManager(), bottomSheetDialogFragment.getTag());
}
项目:roboclub-amu    文件:MainActivity.java   
private void askFeedback() {
    BottomSheetDialogFragment myBottomSheet = FeedbackDialogFragment.newInstance();
    myBottomSheet.show(getSupportFragmentManager(), myBottomSheet.getTag());
}
项目:ring-client-android    文件:AboutFragment.java   
@OnClick(R.id.credits)
public void creditsClicked() {
    BottomSheetDialogFragment dialog = new AboutBottomSheetDialogFragment();
    dialog.show(((AppCompatActivity) getActivity()).getSupportFragmentManager(), dialog.getTag());
}
项目:apps-android-wikipedia    文件:PageActivity.java   
@Override
public void onPageShowBottomSheet(@NonNull BottomSheetDialogFragment dialog) {
    bottomSheetPresenter.show(getSupportFragmentManager(), dialog);
}
项目:apps-android-wikipedia    文件:PageFragment.java   
public void showBottomSheet(@NonNull BottomSheetDialogFragment dialog) {
    Callback callback = callback();
    if (callback != null) {
        callback.onPageShowBottomSheet(dialog);
    }
}
项目:SIIEScanner    文件:OpenDialogFragmentCallBack.java   
void showBottomSheetDialogFragment( BottomSheetDialogFragment sheetDialogFragment, String tag );
项目:apps-android-wikipedia    文件:PageFragment.java   
void onPageShowBottomSheet(@NonNull BottomSheetDialogFragment dialog);