终于开始分配正式的任务给我了, 今天开始launcher的学习和研究,之前没有接触过launcher的人尅跟着我的学习来哦,都是从基础的说起,里面有很多的东西,大神们都是不屑于看的,新手倒是可以看看哦,让我们一起走进launcher的学习之旅,共同努力,共同进步,加油.。You are best!!!
一、 首先我们来看看launcher的布局方面的东西
Launcher.java中定义布局
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
…………
setContentView(R.layout.launcher);
…………
}
接着来看看launcher.xml中是怎么写的吧
<com.android.launcher2.DragLayer xmlns:android="http://schemas.android.com/apk/res/android" xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher" android:id="@+id/drag_layer" android:layout_width="match_parent" android:layout_height=&#