安卓开发应用

RadioButton
–RadioButton为单选按钮,它需要与RadioGroup配合使用,提供两个或多个互斥的选项集

–RadioGroup是单选组合框,可容纳多个RadioButton,并把它们组合在一起,实现单选状态

Android的日志工具Log
Android中的日志工具类是Log(android.util.Log)

Log.v ( ) :用于打印那些最为琐碎、意义最小的日志信息
Log.d ( ) :用于打印一些调试信息
Log.i ( ) :用于打印一些比较重要的数据
Log.w ( ) :用于打印一些警告信息
Log.e ( ) :用于打印程序中的错误信息

页面的创建

上课敲的代码

<?xml version="1.0" encoding="utf-8"?>

<ImageView
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_gravity="center"
    android:background="@color/black"
    android:layout_marginTop="150dp"
    android:src="@drawable/icon_smart_park" />

<EditText
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="20dp"
    android:layout_marginLeft="18dp"
    android:layout_marginRight="18dp"
    android:background="@drawable/input_normal"
    android:hint="请输入账号"
    android:textSize="36dp" />

<EditText
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="10dp"
    android:layout_marginLeft="18dp"
    android:layout_marginRight="18dp"
    android:background="@drawable/input_normal"
    android:hint="请输入密码"
    android:textSize="36dp"/>

<LinearLayout
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginLeft="18dp"
    android:layout_marginRight="18dp"
    android:orientation="horizontal">
    <CheckBox
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="记住密码" />
    <TextView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="                                                             修改密码"/>
</LinearLayout>
<Button
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="20dp"
    android:background="@drawable/btn_login_normal"/>
<Button
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    android:layout_marginTop="10dp"
    android:background="@drawable/btn_register_normal"/>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Android开发应用的四个领域包括移动应用开发、游戏开发、物联网应用开发和企业应用开发。 1. 移动应用开发:Android操作系统是移动设备上最受欢迎的操作系统之一,因此,移动应用开发是Android开发的一个重要领域。开发者可以利用Android平台提供的各种工具和资源来开发各种类型的移动应用,如社交媒体应用、购物应用、音乐应用等。 2. 游戏开发:Android平台也非常适合开发各种类型的游戏应用。开发者可以使用Android Studio等工具来创建游戏应用,并使用游戏引擎如Unity或Cocos2d-x来构建高质量的游戏。Android平台提供了丰富的图形和多媒体功能,使开发者能够创建出精彩纷呈的游戏。 3. 物联网应用开发:随着物联网技术的发展,Android平台也成为物联网应用开发的主要平台之一。开发者可以使用Android平台的API和框架来创建与智能设备(如家庭自动化设备、智能手表等)连接的应用程序,实现智能化控制和数据交互。 4. 企业应用开发:Android平台也广泛用于企业应用开发。开发者可以使用Android平台提供的工具和服务来构建各种类型的企业应用,如员工管理应用、客户关系管理应用等。企业应用通常需要与后台服务器交互,Android平台提供了丰富的网络通信功能,方便开发者进行数据交换和存储等操作。 总之,Android开发应用的四个领域分别是移动应用开发、游戏开发、物联网应用开发和企业应用开发。开发者可以根据自己的兴趣和需求选择其中一个或多个领域来学习和开发应用

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值