zoukankan      html  css  js  c++  java
  • 实验5 数独游戏界面设计

    实验报告

    课程名称

    基于Android平台移动互联网开发

    实验日期

    2016.4.5

    实验项目名称

    数独游戏界面设计

    实验地点

    S3010

    实验类型

    □验证型    √设计型    □综合型

    学  时

    2

    一、实验目的及要求(本实验所涉及并要求掌握的知识点)

    1. 实现数独游戏的完整界面设计;
    2. 掌握ActionBar的使用;

    二、实验环境(本实验所使用的硬件设备和相关软件)

    (1)PC机

    (2)操作系统:Windows XP

    (3)软件: Eclipse, JDK1.6,Android SDK,ADT

    三、实验内容及步骤

    1. 打开Sudoku项目;
    2. 添加Activity类
    3. 添加以下layout资源文件
    4. 完成设计后,显示界面运行截图

    四、实验结果(本实验源程序清单及运行结果或实验结论、实验设计图)

    1、
     1 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     2     xmlns:tools="http://schemas.android.com/tools"
     3     android:id="@+id/LinearLayout1"
     4     android:layout_width="match_parent"
     5     android:layout_height="match_parent"
     6     android:background="@color/background"
     7     android:orientation="vertical"
     8     android:padding="30dip"
     9     android:paddingBottom="@dimen/activity_vertical_margin"
    10     android:paddingLeft="@dimen/activity_horizontal_margin"
    11     android:paddingRight="@dimen/activity_horizontal_margin"
    12     android:paddingTop="@dimen/activity_vertical_margin"
    13     tools:context=".MainActivity" >
    14     <TextView
    15         android:id="@+id/mainTitle"
    16         android:layout_width="wrap_content"
    17         android:layout_height="wrap_content"
    18         android:layout_gravity="center"
    19         android:layout_marginBottom="25dip"
    20         android:text="@string/main_title"
    21         android:textColor="#000000"
    22         android:textSize="24.5sp" />
    23     <Button
    24         android:id="@+id/continue_btn"
    25         android:layout_width="fill_parent"
    26         android:layout_height="wrap_content"
    27         android:background="#3366ff"
    28         android:text="@string/continue_label" />
    29     <Button
    30         android:id="@+id/new_btn"
    31         android:layout_width="fill_parent"
    32         android:layout_height="wrap_content"
    33         android:background="#3366ff"
    34         android:text="@string/new_game_label" />
    35     <Button
    36         android:id="@+id/about_btn"
    37         android:layout_width="fill_parent"
    38         android:layout_height="wrap_content"
    39         android:background="#3366ff"
    40         android:text="@string/about_label" />
    41     <Button
    42         android:id="@+id/exit_btn"
    43         android:layout_width="fill_parent"
    44         android:layout_height="wrap_content"
    45         android:background="#3366ff"
    46         android:text="@string/exit_label" />
    47 </LinearLayout>

    2、

    1  <?xml version="1.0" encoding="utf-8"?>
    2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    3     android:layout_width="match_parent"
    4     android:layout_height="match_parent"
    5     android:background="@drawable/game"
    6     android:orientation="vertical" >
    7 </LinearLayout>
    8         </activity>

    3、

     1 <?xml version="1.0" encoding="utf-8"?>
     2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     3     android:layout_width="match_parent"
     4     android:layout_height="match_parent"
     5     android:padding="40sp"
     6     android:orientation="vertical" >
     7     <TextView
     8         android:id="@+id/help_title"
     9         android:layout_width="wrap_content"
    10         android:layout_height="wrap_content"
    11         android:text="@string/help_title" 
    12         android:textSize="35sp"/>
    13     <TextView
    14         android:id="@+id/help_text"
    15         android:layout_width="wrap_content"
    16         android:layout_height="wrap_content"
    17         android:text="@string/help_jieshao"
    18         android:textSize="20sp" />
    19     <ImageView
    20         android:id="@+id/imageView1"
    21         android:layout_width="300dp"
    22         android:layout_height="200dp"
    23         android:layout_gravity="center_horizontal"
    24         android:src="@drawable/help" />
    25 </LinearLayout>

    运行结果截图:


     

    五、 实验总结(对本实验结果进行分析,实验心得体会及改进意见)

    在同学的帮助下,慢慢地完成了本次作业,Android基础薄弱,感觉慢慢有点跟不上,不过还是会和同学们讨论,不懂得会及时地去咨询懂得同学。

    实验评语

     

    实验成绩

     

    指导教师签名:              年   月   日

               
  • 相关阅读:
    算法,折半查找--javascript版
    选择排序---堆排序算法(Javascript版) 降序排列
    常用的js正则总结
    前端工作流,集成解决方案,国内值得研究的
    gulp构建项目踩坑实战
    svg图片自适应div容器大小
    coffeeScript学习小结
    javascript正则匹配中文
    android开发中R文件丢失
    MySql 5.7密码查看或修改
  • 原文地址:https://www.cnblogs.com/zhushengjie/p/5393547.html
Copyright © 2011-2022 走看看