本文整理汇总了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;
}
}
示例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;
}
示例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");
}
}
示例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");
}
}
示例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());
}
示例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());
}
示例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());
}
示例8: openBottomSheet
import android.support.design.widget.BottomSheetDialogFragment; //导入方法依赖的package包/类
private void openBottomSheet() {
BottomSheetDialogFragment bottomSheetDialogFragment = new CustomBottomSheetDialogFragment();
bottomSheetDialogFragment.show(getActivity().getSupportFragmentManager(), bottomSheetDialogFragment.getTag());
}
示例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());
}
示例10: openDetailSheet
import android.support.design.widget.BottomSheetDialogFragment; //导入方法依赖的package包/类
private void openDetailSheet() {
BottomSheetDialogFragment bottomSheetDialogFragment = new ExploreDetailFragment();
bottomSheetDialogFragment.show(getActivity().getSupportFragmentManager(), bottomSheetDialogFragment.getTag());
}
示例11: openConfirmationSheet
import android.support.design.widget.BottomSheetDialogFragment; //导入方法依赖的package包/类
private void openConfirmationSheet(){
BottomSheetDialogFragment bottomSheetDialogFragment = new FreeMealConfirmationFragment();
bottomSheetDialogFragment.show(getActivity().getSupportFragmentManager(), bottomSheetDialogFragment.getTag());
}
示例12: showBottomSheet
import android.support.design.widget.BottomSheetDialogFragment; //导入方法依赖的package包/类
public void showBottomSheet(ContactModel model) {
BottomSheetDialogFragment bottomSheetDialogFragment = ContactFragment.newInstance(model);
bottomSheetDialogFragment.show(getSupportFragmentManager(), bottomSheetDialogFragment.getTag());
}
示例13: showDialogBottomSheet
import android.support.design.widget.BottomSheetDialogFragment; //导入方法依赖的package包/类
@Override
public void showDialogBottomSheet() {
BottomSheetDialogFragment bottomSheetDialogFragment = new CustomizedBottomSheetDialog();
bottomSheetDialogFragment.show(getSupportFragmentManager(), bottomSheetDialogFragment.getTag());
}
示例14: askFeedback
import android.support.design.widget.BottomSheetDialogFragment; //导入方法依赖的package包/类
private void askFeedback() {
BottomSheetDialogFragment myBottomSheet = FeedbackDialogFragment.newInstance();
myBottomSheet.show(getSupportFragmentManager(), myBottomSheet.getTag());
}
示例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());
}