谢谢!
解决方案 »
- android插网线后在adb shell中使用udhcpc命令无效
- Content Provider里面的getType方法什么时候被调用
- Android和winM7相比谁走的更远?
- 拨号功能
- 怎么实现应用在T卡和手机内部存储之间的移动
- android 更改图片的大小,比方说原图片是1800*2400px,现在我需要给定宽度为600px,等比例缩小相当于重新生成一个图片为600*800px
- 如何让一个组件去加载配置文件?
- timerTask为什么不能自动更新
- EventBus无法生成索引。。
- 这个问号是什么意思
- NOTE: attach of thread 'Binder Thread #3' 错误
- 《为什么这样写的短信发送器,不能实现多条信息的发送》
<LinearLayout android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingLeft="100px"
android:paddingTop="100px">你的imagebutton放在这个位置</LinearLayout>
android:layout_height="fill_parent"
android:paddingLeft="100px"
android:paddingTop="100px"
></LinearLayout>
bt1.setText("按钮");
bt1.setLayoutParams(new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT));
LinearLayout linearlayout1 = new LinearLayout(this);
linearlayout1.setPadding(100, 100, 0, 0);
linearlayout1.addView(bt1);
addContentView(linearlayout1,new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT));