开发者

landscape view not shows image and portrait show

I want to load image runtime in my activity but it is load in portait view only. If I want to load it in landscape it doesn't. I also do it by both seprate xml for landscape and portrait. and also try by only one xml. I draw image like this

   result_img.setImageDrawable(getResources().getDrawable(R.drawable.开发者_如何学Pythoninvalid_title));

But it draw in only portait layout.


goto Manifest file and remove android:screenOrientation="potrait" attribute because it affect your app to view only in potrait mode only.if you have remove it you can show in both view. and one more thing is that you havent change any xml file

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜