谢谢!
解决方案 »
- 请教异常的原因No Activity found to handle Intent { act=android.intent.action.VIEW dat=w
- Android开发前景
- 求助,可不可以利用智能手机上的传感器来区分手机是在室内还是室外
- android调用NDK,能否实现struct和java类的转换?
- xml添加了发送短信权限,还是不能发送短信
- 用Android sdk 中的模拟器,为什么我改了内存还是不变?
- 低版本兼容使用Fragment
- android studio webview缓存问题
- webview的
- Android fragment退出view时怎么设置退出动画?求救...
- 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));