Android 3.0中有个一个
/packages/apps/Launcher2/src/com/android/launcher2/allapps.rs
文件!
此文件在
/packages/apps/Launcher2/src/com/android/launcher2/AllApps3D.java
中被引用

public static class RolloRS { public void init(Resources res, int width, int height) {            mRes = res;            mWidth = width;            mHeight = height;            mScript = new ScriptC_allapps(sRS, mRes, R.raw.allapps);            initProgramVertex();            initProgramFragment();            initProgramStore();            initGl();            initData();            mScript.bind_gIcons(mAllocIcons);            mScript.bind_gLabels(mAllocLabels);            sRS.bindRootScript(mScript);        }

R.raw.allapps就是对allapps.rs的引用!



    @Override    public void surfaceChanged(SurfaceHolder holder, int format, int w, int h) {        //long startTime = SystemClock.uptimeMillis();        super.surfaceChanged(holder, format, w, h);        if (mSurrendered) return;        mHaveSurface = true;        if (sRollo == null) {            sRollo = new RolloRS(this);            sRollo.init(getResources(), w, h);            if (mAllAppsList != null) {                sRollo.setApps(mAllAppsList);            }            if (mShouldGainFocus) {                gainFocus();                mShouldGainFocus = false;            }        } else if (sRollo.mInitialize) {            sRollo.initGl();            sRollo.mInitialize = false;        }        initTouchState(w, h);        sRollo.dirtyCheck();        sRollo.resize(w, h);        Log.d(TAG, "sc " + sRS);        if (sRS != null) {            mMessageProc = new AAMessage();            sRS.setMessageHandler(mMessageProc);        }        //long endTime = SystemClock.uptimeMillis();        //Log.d(TAG, "surfaceChanged took " + (endTime-startTime) + "ms");    }


更多相关文章

  1. Android学习笔记 - 控件篇
  2. Android编译过程详解(二)
  3. Android(安卓)Framework中添加AIDL文件编译
  4. Android布局文件layout.xml的一些属性值
  5. Android编译过程详解(三)
  6. cocos2d-x & Android(安卓)环境配置笔记
  7. How to add a new keycode in android
  8. Android(安卓)xml资源文件中@、@android:type、@*、?、@+含义和区
  9. Android修改自己程序字体的方法详解

随机推荐

  1. android studio sdk更新 (2015-8-5)
  2. 谁说Android不行了,以个人能力的不行来否
  3. Android新手入门2016(6)--客户端编程思想的
  4. Bash脚本之多线程处理
  5. Android天下大乱,Google无法一统山河
  6. 小米手机十月份会有原生 Android 2.3.5
  7. [转载] 我的Android进阶之旅:经典的大牛博
  8. 自己用android做的一个简单的播放器
  9. 这里有一份BAT大厂Android面试超详细知识
  10. Android 源码编译AIDL 使用实例讲解及And