android4.0默认界面旋转180之最近使用程序视图倒立
来源:互联网 发布:电脑的端口号怎么看 编辑:程序博客网 时间:2024/06/01 09:29
系统默认旋转了180度后,点击状态栏的最近使用程序,发现里面视图还是倒的。跟踪代码修改如下:
1>frameworks/base/packages/systemui/res/values-sw720dp/config.xml:
<bool name="config_recents_thumbnail_image_fits_to_xy">false</bool>
2>frameworks/base/packages/systemui/src/com/android/systemui/recent/recentsPanelView.java:
import android.os.SystemProperties;//by caoyi 20130301
private int mThumbnailWidth;
private int mThumbnailHeight;//by caoyi 20130301
public void updateValuesFromResources() {
mThumbnailWidth = Math.round(res.getDimension(R.dimen.status_bar_recents_thumbnail_width));
mThumbnailHeight=Math.round(res.getDimension(R.dimen.status_bar_recents_thumbnail_height)); //by caoyi 20130301
}
private void updateThumbnail(ViewHolder h, Bitmap thumbnail, boolean show, boolean anim) {
else {
Matrix scaleMatrix = new Matrix();
float scale = mThumbnailWidth / (float) thumbnail.getWidth();
scaleMatrix.postScale(scale, scale);//setScale
h.thumbnailViewImage.setScaleType(ScaleType.MATRIX);
h.thumbnailViewImage.setImageMatrix(scaleMatrix);
//by caoyi 20130301
if( SystemProperties.getInt("ro.sf.hwrotation",0)==180){
Log.v(TAG, "Nothing to show");
Matrix rotateMatrix = new Matrix();
rotateMatrix.setRotate(180,mThumbnailWidth/2,mThumbnailHeight/2);
h.thumbnailViewImage.setImageMatrix(rotateMatrix);
}
//end by caoyi 20130301
}
}
android4.0默认界面旋转180
- android4.0默认界面旋转180之最近使用程序视图倒立
- android4.0默认界面旋转180
- android4.0默认界面旋转180
- android4.0默认界面旋转180
- android4.0默认界面旋转180
- android4.0默认界面旋转180
- android4.0默认界面旋转180
- android4.0默认界面旋转180
- android4.0默认界面旋转180
- android4.0屏幕启动时默认180度旋转
- android4.0以上无界面程序自启动
- Java小程序之用*打印正/倒立三角形
- Android4.0解锁界面
- android4.0界面灵感
- 带旋转动画的三维界面视图
- Android常用控件之Fragment仿Android4.0设置界面
- 图形视图框架实战之仿QQ登录界面(可旋转)
- Android之旋转button视图
- 开源 免费 java CMS - FreeCMS1.2-功能说明-静态化管理
- HBase强制删除一个表
- 使用PyInstaller2将Python脚本转化为可执行文件(中-使用部分)(转载自博客园balian)
- Go语言中Channel机制
- linux下Python网络编程框架-Twisted安装手记
- android4.0默认界面旋转180之最近使用程序视图倒立
- xcode 常见错误解决方案
- IOS常用控件及编译器设置
- 锁定TextBox,ComboBox的方法
- readyState的四种状态的解析
- 如何将tomcat内自己的网站在外部让别人访问
- EJB 中stateless、stateful 会话bean的区别
- [Linker Fatal error] Unable to open file 'PROXIES.OBJ'
- MFC容器类CArray,CList