
Android
倪畅
YTU&&SHU|CS小菜鸡|努力成为很厉害的人
展开
-
Spinner的使用(android:entries指定列表项)
列表添加列表项有两种方法:,下面例子: - spinner1通过android:entries指定了列表的项数组 - spinner2通过ArrayAdapter适配器使用数组来确定列表项activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" a...原创 2018-04-11 16:47:26 · 7259 阅读 · 0 评论 -
Listview简单demo
最外层 activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:android1="http://schemas.android.com/apk/res/android" android:layout_width="match_par...原创 2018-04-25 16:55:10 · 1101 阅读 · 0 评论 -
SlidingDrawer简单demo
activity_main.xml<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <Sliding...原创 2018-05-21 21:55:35 · 180 阅读 · 0 评论 -
全局获取Context
摘自郭霖大神《第一行代码》创建一个MyApplication类继承自Application:package com.example.nic.ytuclass.util;import android.annotation.SuppressLint;import android.app.Application;import android.content.Context;public...原创 2018-06-10 16:18:10 · 266 阅读 · 0 评论 -
[课设]烟台大学课程表app
一、题目名称烟大课程表二、系统分析1.功能描述:本app使用教务系统api接口,可通过选择学院名称和班级一键导入班级课表,若课表信息有误还可以对课表进行修改,包括添加课程,修改课程,删除课程。详细运行结果见附录截图。2.结构分析:本项目使用视图层、实体层和数据操作层三层架构,降低了层与层之间的依赖,实现了高内聚,低耦合”,利于各层逻辑的复用。Util包中包括自定义的一些工具函数,提高了...原创 2019-01-22 22:39:46 · 3362 阅读 · 2 评论