网站首页 美食营养 游戏数码 手工爱好 生活家居 健康养生 运动户外 职场理财 情感交际 母婴教育 时尚美容 知识问答

Android开发学习:[31]android开机启动app

时间:2024-10-13 14:03:46

1、首先我们还是新建一个activity来作为开机运行时显示的欢迎界面。

Android开发学习:[31]android开机启动app

3、然后我们在欢迎界面中的TextView控件的字体稍微改一下,显得亲和一些。<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" android:paddingBottom="@dimen/activity_vertical_margin" tools:context="com.basillee.asus.demo.MainActivity12"> <TextView android:text="欢迎进入开机启动页面" android:layout_width="wrap_content" android:layout_height="wrap_content" /></RelativeLayout>

Android开发学习:[31]android开机启动app

5、然后我们点击Android Studio上面的运行按钮,进行测试。

Android开发学习:[31]android开机启动app
© 2025 智德知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com