C Activity实在声明文件中声明为android:theme="@style/FunctionDialog" ,不知道设置什么属性可以让C Activity不居中而局右
解决方案 »
- TextView字符转行问题以及图文混排的Android控件
- android中使用ksoap2调用web servie(asmx)时,HttpTransportSE.call速度为何极慢?
- 再次高分发帖,大家都来看看,给点想法也是好的
- Android shell中有没有类似bashrc/profile这样的自动运行的脚本
- Fragment保存状态
- 关于cocos2dxActivity监听不到返回健的问题
- 请问这种界面是用什么控件做到的
- android root权限后隐藏第三方应用程序
- android 获取摄像头视频数据流只需要一帧
- 如何从library依赖库的aar文件中去除不用的jar包
- 怎么获取到通过intent跳转到本页面的上一个Activity
- proguard混淆
Window window = dialog == null ? null : dialog.getWindow();
if (dialog != null && window != null) {
LayoutParams attr = window.getAttributes();
if (attr != null) {
attr.height = android.view.ViewGroup.LayoutParams.MATCH_PARENT;
attr.gravity = Gravity.RIGHT;
}
}
@Override
public void onClick(View arg0) {
// TODO Auto-generated method stub
Intent function = new Intent();
function.setClass(UserJiuGongGeActivity.this, FunctionActivity.class);
startActivity(function);
}
});dialog是Activity,是由intent启动的,没办法用你那个方法啊?
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
getWindow().getAttributes().width = LayoutParams.WRAP_CONTENT;
getWindow().getAttributes().gravity = Gravity.RIGHT;
}