Launcher2主菜单应用图标显示于整体布局中之说明
来源:互联网 发布:怎样开个淘宝店铺 编辑:程序博客网 时间:2024/06/06 04:39
1.Launcher.xml中:
<include layout="@layout/apps_customize_pane"
android:id="@+id/apps_customize_pane"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="invisible" />
2.apps_customize_pane.xml中:
<com.android.launcher2.AppsCustomizeTabHost
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
android:background="#FF000000">
<LinearLayout
android:id="@+id/apps_customize_content"
....
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="match_parent">
<com.android.launcher2.AppsCustomizePagedView
android:id="@+id/apps_customize_pane_content"
....
3.Launcher.java 中setupViews()
{
// Setup AppsCustomize
mAppsCustomizeTabHost = (AppsCustomizeTabHost)
findViewById(R.id.apps_customize_pane);
mAppsCustomizeContent = (AppsCustomizePagedView)
mAppsCustomizeTabHost.findViewById(R.id.apps_customize_pane_content);
mAppsCustomizeContent.setup(this, dragController);
}
4.mtk_apps_customize_application.xml中
<com.android.launcher2.MTKAppIcon
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:launcher="http://schemas.android.com/apk/res/com.android.launcher"
android:id="@+id/application_icon"
....
<com.android.launcher2.PagedViewIcon
style="@style/WorkspaceIcon.Landscape.AppsCustomize"
android:id="@+id/app_customize_application_icon"
....
5.AppsCustomizePagedView.java 中syncAppsPageItems()
{
ApplicationInfo info = mApps.get(i);
MTKAppIcon icon = (MTKAppIcon) mLayoutInflater.inflate(
R.layout.mtk_apps_customize_application, layout, false);
}
6.MTKAppIcon.java 中onFinishInflate()
{
mAppIcon = (PagedViewIcon)findViewById(R.id.app_customize_application_icon);
}
7.PagedViewIcon.java为Launcher2.apk中应用程序图标的显示类。
- Launcher2主菜单应用图标显示于整体布局中之说明
- android 如何定制Launcher主菜单中应用程序图标在主菜单中的显示顺序
- android 如何定制Launcher主菜单中应用程序图标在主菜单中的显示顺序
- AndroidL中修改launcher3主菜单布局
- 如何定制Launcher主菜单中应用程序图标的显示顺序?
- redmine 主菜单显示
- 源码修改之修改Launcher隐藏主菜单图标
- Android 程序主菜单 布局
- Launcher2何实现主菜单背景的透明度调整
- android launcher主菜单显示图片和文字之BubbleTextView
- 如何定制Launcher主菜单中应用程序的显示顺序
- Launcher2 自定义应用快捷方式图标
- 在Launcher隐藏主菜单中某个应用
- android-显示SoundRecorder应用图标于桌面
- android-显示SoundRecorder应用图标于桌面
- 如何隐藏主菜单下一个apk的图标,不让其显示?
- 主菜单日历图标日期刷新
- 如何客制化Launcher的主菜单图标?
- Android MediaPlayer的生命周期
- 经典的20道AJAX面试题
- 每日一题(8) - 求链表的中间结点
- 嵌入式开发知识体系
- 菜鸟收藏:什么是.rar文件?如何打开rar文件?_下载加速吧
- Launcher2主菜单应用图标显示于整体布局中之说明
- 性能分析添加数据源绑定
- 如何看懂bmp图像的内存存储格式
- 编程一年有感
- HDU 1559 最大子矩阵
- 关于ios应用本地化
- 【菜鸟收藏:熟知什么是四声道环绕】jiasuba.com
- 关于在结构体末尾定义空数组的用法
- C和指针 第八章 数组 问题一