如图所示,自定义的alertdialog
AlertDialog dlg = new AlertDialog.Builder(this)
.setView(textEntryView)
通过这个方法把自定义的xml放入,结果xml内使用的是全屏,结果如图所示注意看dialog最上下部分,有部分没有全屏的部分。请问要如何解决?
AlertDialog dlg = new AlertDialog.Builder(this)
.setView(textEntryView)
通过这个方法把自定义的xml放入,结果xml内使用的是全屏,结果如图所示注意看dialog最上下部分,有部分没有全屏的部分。请问要如何解决?
解决方案 »
- android中如何动态的添加/删除布局及修改布局属性?
- Android连接服务器跟服务器连接数据库的问题.
- httpclient连接方式,WIFI下经常出现连接不上问题
- 开发这样一个android程序要多少钱?
- 模拟器上面,或者是我公司样机上面如何安装google market
- 如何用程序代码打开三星GT-P1000的闪光灯.......急求啊 !!!!
- 高手来帮菜鸟解惑一下啊!!
- [Android]:求Android关于Surface细节实现的书籍
- 关于android利用phone gap+html5开发碰到的一个问题,求教!
- android sqlite 数据库创建
- 求android 常用类和其方法 汇总
- android surfaceCreated问题
把view放到scrollView里面
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android"> <padding android:left="0dp" android:top="0dp"
android:right="0dp" android:bottom="0dp" />
</shape><!-- dialog style -->
<style name="my_dialog" parent="@android:style/Theme.Dialog">
<item name="android:windowNoTitle">true</item>
<item name="android:windowBackground">@drawable/egame_fillbox</item>
</style>
试试
Dialog dialog = new Dialog(activity,R.style.my_dialog);dialog.setContentView(dialogview).
<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas.android.com/apk/res/android"> <padding android:left="0dp" android:top="0dp"
android:right="0dp" android:bottom="0dp" />
</shape><!-- dialog style -->
<style name="my_dialog" parent="@android:style/Theme.Dialog">
<item name="android:windowNoTitle">true</item>
<item name="android:windowBackground">@drawable/egame_fillbox</item>
</style>要写在哪个源目录下?
去掉这句话@!!!
.setView(textEntryView,0,0,0,0)