在编写安卓登录界面时,我们如何记住密码,方便下一次登录呢?
首先,先创建一个安卓项目(我的版本是4.4.2的),名字为"记住密码"
然后在res文件夹下找到layout文件夹,找到activity_main.xml或fragment_main.xml,在里面输入或拖拽按钮
<LinearLayout xmlns:android="http://schemas.android.com/...
分类:
移动开发 时间:
2014-06-05 11:12:24
阅读次数:
323
1. 导包:导入android-async-http开源项目的最新版本的包
2.简单的搭建一个网络图片查看器的界面
相关的界面搭建代码:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/...
分类:
移动开发 时间:
2014-06-05 10:58:08
阅读次数:
309
该文章是为了检索手机上sd卡中的视频,然后将检索出来的相应视频的缩略图,名称等视频信息显示在ListView上。点击每个item后播放相应的视频。
源代码:
布局文件:
activity_main:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="...
分类:
移动开发 时间:
2014-06-05 09:27:14
阅读次数:
370
Android中录音有三种方式:
一、使用意图,最简单但不灵活(本文章只讲意图录音)
二、使用MediaPlayer类,他更加难于实现,但是提供了更多的灵活性
三、使用AudioRecord类,其提供了最大的灵活性,但为我们所做的工作最少。
源代码:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/a...
分类:
移动开发 时间:
2014-06-05 01:05:04
阅读次数:
297
上一篇讲到了使用意图录音,这篇文章将使用MediaRecorder类来录音,从而提供更多的灵活性。
效果图:
源代码奉上:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"...
分类:
移动开发 时间:
2014-06-05 00:35:30
阅读次数:
387
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="h...
分类:
编程语言 时间:
2014-06-05 00:23:44
阅读次数:
296
本文章主要将通过意图触发内置的Camera应用程序来录制视频。
源代码:
布局文件:
activity_main:
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:...
分类:
移动开发 时间:
2014-06-03 06:25:41
阅读次数:
249
界面效果
应用的权限
布局文件
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
andr...
分类:
移动开发 时间:
2014-06-03 00:45:02
阅读次数:
303
1、文本框获得(失去)焦点
当文本框获得输入焦点时,将该文本框高亮显示,算不得一个应用,只是一个小技巧,可以提高用户体验。
[html] view
plaincopy
span style="font-family:SimSun;font-size:12px;">>
html xmlns="http://www.w3.org/19...
分类:
Web程序 时间:
2014-06-01 09:06:26
阅读次数:
539
报这个错的话:基本都是配置出错,具体配置看下面。
AndroidManifest.xml 文件:
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.mayi.test.dao"
android:versionCode="1"
an...
分类:
移动开发 时间:
2014-05-31 22:00:03
阅读次数:
434