Android Launcher3去除应用列表,二级菜单,应用全部在桌面显示

改动以RK3288 Android 5.1 为例  Launcher3修改方法应该都一样

 

改动如下:

diff --git a/src/com/android/launcher3/LauncherAppState.java b/src/com/android/launcher3/LauncherAppState.java
index b7c45a34..9d5f221d 100644
--- a/src/com/android/launcher3/LauncherAppState.java
+++ b/src/com/android/launcher3/LauncherAppState.java
@@ -275,8 +275,9 @@ public class LauncherAppState implements DeviceProfile.DeviceProfileCallbacks {

     public static boolean isDisableAllApps() {
         // Returns false on non-dogfood builds.
-        return getInstance().mBuildInfo.isDogfoodBuild() &&
-                Utilities.isPropertyEnabled(Launcher.DISABLE_ALL_APPS_PROPERTY);
+     //   return getInstance().mBuildInfo.isDogfoodBuild() &&
+       //         Utilities.isPropertyEnabled(Launcher.DISABLE_ALL_APPS_PROPERTY);
+       return true;        //返回true,表示不显示应用列表


     }

     public static boolean isDogfoodBuild() {

 

去除多余应用   方法比较多,反正我在是编译出来的Out里面删除不要的应用 

参考如下文章删除自己不想要的APP:https://blog.csdn.net/kanyueliang410/article/details/78962288

 

应用摆放位置布局,device/rockchip/rk3288/overlay/packages/apps/Launcher3/res/xml/default_workspace_5x6.xml

改完后界面如下

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
好的,下面是一个简单的 Android 闪屏动态界面设置和跳转到登录界面的实例演示: 1. 首先,在 res/layout 目录下创建一个名为 activity_splash.xml 的布局文件,用于设置闪屏动态界面,如下所示: ```xml <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <ImageView android:id="@+id/splash_image" android:layout_width="match_parent" android:layout_height="match_parent" android:scaleType="centerCrop" android:src="@drawable/splash_image" /> <TextView android:id="@+id/splash_text" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true" android:text="Welcome to my app!" android:textColor="@android:color/white" android:textSize="24sp" /> </RelativeLayout> ``` 2. 在 res/drawable 目录下添加一张名为 splash_image 的启动图片。 3. 在 res/values/styles.xml 文件中添加一个名为 SplashTheme 的主题样式,用于设置闪屏动态界面的背景颜色、字体颜色等属性,如下所示: ```xml <style name="SplashTheme" parent="Theme.AppCompat.Light.NoActionBar"> <item name="android:windowBackground">@color/colorSplash</item> <item name="android:textColor">@android:color/white</item> <item name="android:textSize">24sp</item> </style> ``` 4. 在 AndroidManifest.xml 文件中将应用的启动 Activity 设置为 SplashActivity,并将 SplashActivity 的主题设置为 SplashTheme,如下所示: ```xml <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:roundIcon="@mipmap/ic_launcher_round" android:supportsRtl="true" android:theme="@style/AppTheme"> <activity android:name=".SplashActivity" android:theme="@style/SplashTheme"> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".LoginActivity" /> </application> ``` 5. 在 SplashActivity 中设置延迟跳转到 LoginActivity,如下所示: ```java public class SplashActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_splash); new Handler().postDelayed(new Runnable() { @Override public void run() { Intent intent = new Intent(SplashActivity.this, LoginActivity.class); startActivity(intent); finish(); } }, 3000); //延迟 3 秒跳转到 LoginActivity } } ``` 以上就是一个简单的 Android 闪屏动态界面设置和跳转到登录界面的实例演示。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值