我想讓我的Android 4.1.1設備(Branch jb-release; API Level 16)的Launcher2(AOSP Launcher)成爲一個獨立的數據應用程序(不是系統)。Make Launcher2 standalone
我找不到什麼修改,使其獨立的任何資源,所以我沒有嘗試過自己。 希望有人能幫助我做(下面的錯誤列表,請參閱列表)這一點。
的源代碼可以在這裏找到:https://android.googlesource.com/platform/packages/apps/Launcher2/+/jb-release/src/com/android/launcher2
AppsCustomizedPagedView.java:
The import android.graphics.Insets cannot be resolved
The import android.graphics.TableMaskFilter cannot be resolved
我想都是由於@Hide
。任何解決辦法或在這裏很好的解決方案?
Cling.java:
The method findViewToTakeAccessibilityFocusFromHover(View, View) of type Cling must override or implement a supertype method (Class Cling extends android.widget.FrameLayout)
The method includeForAccessibility() is undefined for the type View
HolographicOutlineHelper.java:
The import android.graphics.TableMaskFilter cannot be resolved
相同AppsCustomizedPagedView.java(@Hide
)
Launcher.java:
The import android.os.SystemProperties cannot be resolved
The import com.android.common cannot be resolved
The method clearAllAnimations() is undefined for the type ValueAnimator
The method startSearch(String, boolean, ComponentName, Bundle, boolean) in the type SearchManager is not applicable for the arguments (String, boolean, ComponentName, Bundle, boolean, Rect)
SystemProperties cannot be resolved
The method requestAccessibilityFocus() is undefined for the type Cling
PagedViewWidgetImageView.java:
The import android.graphics.Insets cannot be resolved
The method getLayoutInsets() is undefined for the type Drawable
RocketLauncher.java:
The import android.support cannot be resolved
The constructor RocketLauncher.Board(RocketLauncher, null) is undefined
SearchDropTargetBar.java:
The method getCompatibilityInfo() is undefined for the type Resources
Utilities.java:
The import android.graphics.TableMaskFilter cannot be resolved
Workspace.java:
The method getRealMetrics(DisplayMetrics) is undefined for the type Display
The method setChildrenLayersEnabled(boolean) is undefined for the type ViewGroup
謝謝!這是一個開始工作的非常好的基礎!這就是我會做的。你從哪個發佈版本開始? mr0或mr1? – dtrunk 2013-02-26 10:55:45
@dtrunk不客氣!我將編輯我的文章,其中列出了一些我爲編譯所做的更改。 – 2013-02-26 10:56:41
@dtrunk我不記得我使用了哪個版本。我在一年前編寫了代碼(我認爲在六月的某個時候),但是最近在看到很多人試圖做同樣的事情之後才公開發布它。 – 2013-02-26 11:28:53