Workspace.java 文件源码

java
阅读 37 收藏 0 点赞 0 评论 0

项目:fruit.launcher 作者:
/**
 * Used to inflate the Workspace from XML.
 * 
 * @param context
 *            The application's context.
 * @param attrs
 *            The attribtues set containing the Workspace's customization
 *            values.
 * @param defStyle
 *            Unused.
 */
public Workspace(Context context, AttributeSet attrs, int defStyle) {
    super(context, attrs, defStyle);

    mWallpaperManager = WallpaperManager.getInstance(context);

    // TypedArray a = context.obtainStyledAttributes(attrs,
    // R.styleable.Workspace, defStyle, 0);
    // mDefaultScreen = a.getInt(R.styleable.Workspace_defaultScreen, 1);
    // a.recycle();
    // Read default screen value from shared preference
    mDefaultScreen = SettingUtils.mHomeScreenIndex;
    //final int put_screen = LauncherProvider.get_put_screen();
    //mScreenCount = SettingUtils.mScreenCount>put_screen?SettingUtils.mScreenCount:put_screen;
    mScreenCount = SettingUtils.mScreenCount;
    mInflater = LayoutInflater.from(context);

    mTransitionType = Effects.EFFECT_TYPE_INIT;
    EffectsFactory.getAllEffects();
    mCamera = new Camera();

    setHapticFeedbackEnabled(false);
    initWorkspace();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号