Search in sources :

Example 6 with BottomSheetDialog

use of android.support.design.widget.BottomSheetDialog in project Rocket.Chat.Android by RocketChat.

the class MessageOptionsDialogFragment method onCreateDialog.

@NonNull
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
    BottomSheetDialog bottomSheetDialog = new BottomSheetDialog(getContext());
    bottomSheetDialog.setContentView(R.layout.dialog_message_options);
    TextView info = (TextView) bottomSheetDialog.findViewById(R.id.message_options_info);
    Bundle args = getArguments();
    if (args == null || !args.containsKey(ARG_MESSAGE_ID)) {
        info.setText(R.string.message_options_no_message_info);
    } else {
        setUpDialog(bottomSheetDialog, args.getString(ARG_MESSAGE_ID));
    }
    return bottomSheetDialog;
}
Also used : BottomSheetDialog(android.support.design.widget.BottomSheetDialog) Bundle(android.os.Bundle) TextView(android.widget.TextView) NonNull(android.support.annotation.NonNull)

Aggregations

BottomSheetDialog (android.support.design.widget.BottomSheetDialog)6 NonNull (android.support.annotation.NonNull)3 View (android.view.View)3 Dialog (android.app.Dialog)2 DialogInterface (android.content.DialogInterface)2 Bundle (android.os.Bundle)2 TextView (android.widget.TextView)2 BottomSheetDialogFragment (android.support.design.widget.BottomSheetDialogFragment)1 Pair (android.support.v4.util.Pair)1 FrameLayout (android.widget.FrameLayout)1 ImageView (android.widget.ImageView)1 BackgroundLooper (chat.rocket.android.BackgroundLooper)1 R (chat.rocket.android.R)1 RocketChatCache (chat.rocket.android.RocketChatCache)1 Logger (chat.rocket.android.helper.Logger)1 EditMessageInteractor (chat.rocket.core.interactors.EditMessageInteractor)1 PermissionInteractor (chat.rocket.core.interactors.PermissionInteractor)1 Message (chat.rocket.core.models.Message)1 MessageRepository (chat.rocket.core.repositories.MessageRepository)1 PermissionRepository (chat.rocket.core.repositories.PermissionRepository)1