Android(安卓)视频播放器 应用层设计 考虑事项 (二)
16lz
2021-01-24
一、single button for play/pause
二、UI布局适应多尺寸多分辨率
http://developer.android.com/guide/practices/screens_support.html
三、全屏注意的问题pad增加了statusbar
<RelativeLayout android:id="@+id/View_Screen"android:orientation="vertical" android:layout_width="wrap_content"android:layout_height="wrap_content"></RelativeLayout>
int contentViewHeight = findViewById(R.id.View_Screen).getHeight();int StatusBarHeight = m_screenHeight - contentViewHeight;m_screenHeight = m_screenHeight - StatusBarHeight;
四、pad finish的时候推迟了执行onstop
五、状态变化(中断、退出)时的资源释放。
六、Android系统对进程和线程的管理
资源紧张时,优先级低的进程有可能被Kill掉。
更多相关文章
- Android源码学习之五-Android的IPC机制
- Android采用Linux内核的原因:
- Android(安卓)AIDL实现跨进程Activity与Service的通信
- 【Android话题-2.3系统服务】你知道怎么添加一个系统服务吗
- Android在xml布局中找不到自定义属性的问题
- Android之判断当前指定App是否在前台
- Android(安卓)Service小记
- Android(安卓)一些指令
- 安卓AIDL跨进程间通信