第一个android项目(掌上运维VoLTE)

本文介绍了如何创建第一个Android项目——掌上运维VoLTE,详细讲解了页面显示模块的XML布局代码,包括页面背景、图像、文本框和按钮等元素的配置。此外,还提到了图片资源、样式文件、APK图标存放路径及其尺寸要求,以及如何通过Android Studio生成APK。
摘要由CSDN通过智能技术生成
1、页面显示模块(路径:HuaweiLoginPortal\app\src\main\res\layout)
activity_main.xml文件为页面显示配置文件

代码如下
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:id="@+id/activity_main"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
	android:background="#E0FCFB">//设置这个屏幕的背景色

	
	<ImageView android:id="@+id/textView1"//每个控件都有唯一的id标识
        android:src="@drawable/logo" //图片显示
        android:layout_width="300dp"
        android:layout_height="100dp"
        android:layout_marginTop="70dp"
        android:layout_centerHorizontal="true" />//居中显示
		
	<TextView
        android:id="@+id/textView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerHorizontal="true"
        android:layout_below="@+id/textView1"
        android:layout_marginTop="20dp"
        android:textColor="#36A5F4"
        android:text="浙江移动VoLTE掌上运维"
 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值