我在 android 中创建了 TableView 。在稳定的 android 屏幕上,它看起来像 5 列和相关的数据...... 但我想在 android 旋转时添加另外 3 列...这可能吗?? 怎么办??
提前致谢...
最佳答案
如果你想修复特定 Activity 的横向 View ,那么你必须将 android:screenOrientation="landscape"添加到你的 list 文件中..
否定:
activity android:name=".Classname" android:screenOrientation="landscape"
========================
and if u want to do diffrent in Landscape or Portrait view thn u have to use
following into starting of ur onCreate() method.
if (this.getResources (). getConfiguration (). orientation == Configuration.ORIENTATION_LANDSCAPE) {
//== add view or action u want to perform
}
else if (this.getResources (). getConfiguration (). orientation == Configuration.ORIENTATION_PORTRAIT){
//== add view or action u want to perform
}
好的...!!
关于android - android屏幕旋转时执行新任务,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5594111/