android评论框不动,Android- AlertDialog不动键盘上方,当它在FullscreenActivity

拨动我有对话框其中有一个EditText上得到由软输入keyboard.I've尝试了所有的职位重叠的,我可以喜欢Android- AlertDialog不动键盘上方,当它在FullscreenActivity

dialog.getWindow().setSoftInputMode(ADJUST_RESIZE)

,并设置对话的主题,但他们都没有工作。我认为我的全屏活动已经改变的东西,但我不知道它是什么

View layout= LayoutInflater.from(context).inflate(R.layout.add_bookmark_dialog_layout,null);

final EditText note=(EditText)layout.findViewById(R.id.bookmark_note);

TextView page= (TextView)layout.findViewById(R.id.bookmark_page);

TextView file=(TextView)layout.findViewById(R.id.bookmark_file);

page.setText(String.valueOf(currentPage));

file.setText(fileName);

AlertDialog.Builder builder=new AlertDialog.Builder(context).setView(layout).setTitle("Add New Bookmark").setPositiveButton("OK", new DialogInterface.OnClickListener() {

@Override

public void onClick(DialogInterface dialog, int which) {

Bookmark newBookmark= db.addBookmark(currentPage,note.getText().toString(),fileName);

adapter.add(newBookmark);

}

}).setNegativeButton("Cancel",null);

AlertDialog dialog=builder.create();

//Not working : dialog.getWindow().setSoftInputMode(WindowManager.LayoutParams.SOFT_INPUT_ADJUST_RESIZE);

dialog.show();

这里我AndroidManifest.xml中

android:allowBackup="true"

android:icon="@mipmap/ic_launcher"

android:label="@string/app_name"

android:roundIcon="@mipmap/ic_launcher_round"

android:supportsRtl="true"

android:theme="@style/AppTheme">

//where dialog pop up

android:name=".ReadingActivity"

android:configChanges="orientation|keyboardHidden|screenSize"

android:label="@string/title_activity_reading"

android:parentActivityName=".MainActivity"

android:theme="@style/FullscreenTheme">

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值