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 Framework中添加AIDL文件编译
  2. Android布局文件layout.xml的一些属性值
  3. Android的xml文件中@、@android:type、@*、?、@+的含义和区别
  4. Android布局文件中常用的属性
  5. Android工具箱之文件目录
  6. android布局文件中各属性所代表的意义
  7. Android中资源文件的Shape使用总结
  8. 【魔幻塔防】60关配置文件

随机推荐

  1. android view(2) Activity、Window、Deco
  2. SystemUI编译遇到的问题
  3. 在Androd studio 中,TextView设置Text居然
  4. Android官方文档之App Resources(下)
  5. Android(安卓)ConstraintLayout 布局解析
  6. Android(安卓)Studio NDK开发入门
  7. Android(安卓)TabHost(简易用法)
  8. Android(安卓)面试
  9. android iphone手机分辨率尺寸比例整理
  10. Android(安卓)Market on Emulator