Git Product home page Git Product logo

androidhomework1's Introduction

浙江大学安卓开发小学期 作业1

姓名:朱璟森

学号:3170104166

专业:计算机科学与技术


作业要求

创建一个Android app工程,使用5种以上的View并实现一些简单交互

作业展示

本次作业中实现了一个类似于登录与信息问卷的简易程序,由2个页面组成,分别截图:

1562586253906

1562586240091

第一个页面由TextView, EditText, Button, ImageView四种控件组成,输入学号和密码,点击"Submit"按钮进入下一个界面。提交时会有简易的合法性检查,如果学号不等于10位数字或密码不足6位会通过Toast弹出错误提示:

1562586372175

1562586391000

第二个页面由TextView, Button, Switch, CheckBox, RadioBox五种控件组成,其中的Switch切换状态会在性别男、女间互换。而点击"Show Calendar"则会弹出一个CalendarView控件:

1562586598678

1562586607855

1562586637539

而点击"Submit"按钮则会回到输入学号密码的第一个界面。

本次作业中两个界面的布局均采用RelativeLayout进行设置,其中部分地方在主布局的基础上嵌套使用了水平方向的LinearLayout

总结与心得

本次作业是我开发的第一个安卓APP,通过上课与自己网上检索,学会了控件布局、事件监听器、界面切换等基本操作。希望在之后的课程中不断锻炼自己,开发出更好的APP。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.