时间日期进程会用到平时的开发中,android内置了两种可交互的时间日期控件,一种是对话框形式的,一种是内嵌式的。
分别使用了android的类TimePickerDialog、DatePickerDialog以及TimePicker,其中TimePicker需要在layout中进行设置
对话框形式的时间控件public class DateDialog extends Activit...
分类:
移动开发 时间:
2014-06-22 21:27:05
阅读次数:
225
MainActivity.java
package org.example.guess;
import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageBut...
分类:
移动开发 时间:
2014-06-22 19:11:50
阅读次数:
1100
使用场景:关闭window的时候增加监听事件。
正确的使用方式:
addwin = new Ext.Window({
title : '新增',
closable : true,
width : 500,
autoHeight: true,
border : false,
plain : true,
modal : true,
layout : 'fit',
bo...
分类:
Windows程序 时间:
2014-06-22 19:07:56
阅读次数:
1013
实现效果
主要代码
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:lay...
分类:
移动开发 时间:
2014-06-22 15:08:24
阅读次数:
314
TGLStackedViewControllerA stack layout with gesture-based reordering using UICollectionView -- inspired by Passbook and Reminders apps.这是一种使用了UICollec...
分类:
其他好文 时间:
2014-06-22 10:47:19
阅读次数:
290
Android的设置或者登陆或者其他的一些主窗体要展示的功能需要用到sliding的效果,下面就叫大家怎么做。直接上代码!!MainActivity部分:packagenet.ting.sliding;
importandroid.app.Activity;
importandroid.os.Bundle;
importandroid.view.View;
importandroid.view.View.O..
分类:
移动开发 时间:
2014-06-22 08:15:28
阅读次数:
378
实习比较忙,也时间写了,就记录一下自己的代码成长吧,希望能帮到你。MainActivity部分:packagecom.sbs.weather;
importjava.io.InputStream;
importjavax.xml.parsers.DocumentBuilder;
importjavax.xml.parsers.DocumentBuilderFactory;
importorg.apache.http.HttpEnti..
分类:
移动开发 时间:
2014-06-22 07:21:04
阅读次数:
487
Inflate() method can find out a layout defined by xml,as like the findViewById() method,but there have some different between them.
The different are:
If your Activity used other layout,such as...
分类:
移动开发 时间:
2014-06-22 06:41:43
阅读次数:
362
杂家前文是在2012年的除夕之夜仓促完成,后来很多人指出了一些问题,琐事缠身一直没有进行升级。后来随着我自己的使用,越来越发现不出个升级版的demo是不行了。有时候就连我自己用这个demo测一些性能、功能点,用着都不顺手。当初代码是在linux下写的,弄到windows里下全是乱码。还要自己改几分钟才能改好。另外,很多人说不能正常预览,原因是我在布局里把Surfaceview的尺寸写死了。再有就是...
分类:
移动开发 时间:
2014-06-22 06:30:47
阅读次数:
546
LinearLayout布局:<?xmlversion="1.0"encoding="utf-8"?><LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"xmlns:tools="http://schemas.android.com/tools"android:layout_width="match_parent"android:layout_height="match_parent"androi..
分类:
移动开发 时间:
2014-06-21 19:17:45
阅读次数:
239