先说下,一开始学习android使用的是AlertDialog,对付最简单的要求还算可以,后来要适用各种对话框,还要死乞白赖使用AlertDialog,那是找死。
贴一个几乎万能的简单dialog,首先定义对话框的style: 可惜有很多属性不知道,比如上面的window开头的属性eclip...
分类:
其他好文 时间:
2014-05-26 23:10:24
阅读次数:
355
LayoutAnimation干嘛用的?不知道的话网上搜一下。Android的Animation之LayoutAnimation使用方法有两种用法,我的通常写在代码中,像下面这样:
1 /** 2 * Layout动画 3 * 4 * @return 5 *...
分类:
其他好文 时间:
2014-05-26 22:26:15
阅读次数:
421
LinearLayout linearLayoutMain = new
LinearLayout(this);//自定义一个布局文件 linearLayoutMain.setLayoutParams(new
LayoutParams( LayoutParams.MATCH_PARENT, ...
分类:
移动开发 时间:
2014-05-26 16:22:12
阅读次数:
257
1,im2,内存管理3,runtime4,库5,c++6,编译器7,UNIX8,socket
通信,TCP/ip9,html510,pod,git11,Python12,SMS, TAPI协议13,Scrum14,GCD, Core Animation,
CoreData15,GUI程序16,无线移...
分类:
其他好文 时间:
2014-05-26 12:40:24
阅读次数:
208
第六章:Specialized Layers
CAGradientLayer
CAReplicatorLayer
CAScrollLayer
CAShaperLayer
CATextLayer
CATransformLayer...
分类:
移动开发 时间:
2014-05-23 00:36:05
阅读次数:
1026
android window 一些属性说明
@null :Dialog的windowFrame框为无
true:是否浮现在activity之上
false:是否半透明
true:是否显示title
@drawable/dia_bg:设置dialog的背景
false: 背景是否模糊显示...
分类:
其他好文 时间:
2014-05-22 23:47:57
阅读次数:
344
asp.net MVC4.0中总结 视图里加载部分视图几种方法@RenderPage()但它不能使用
原来视图的 Model 和 ViewData ,只能通过参数来传递。1
@RenderPage("~/Shared/Component/Dialog.cshtml", new { title = "...
分类:
Web程序 时间:
2014-05-21 17:47:46
阅读次数:
380
介绍一个grid layout 顺序显示的代码
LayoutAnimation1.java
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use th...
分类:
其他好文 时间:
2014-05-21 16:58:47
阅读次数:
214
这一篇文章专门整理一下研究过的Android面试题,内容会随着学习不断的增加,如果答案有错误,希望大家可以指正
1.简述Activity的生命周期
当Activity开始启动的时候,首先调用onCreate(),onStart(),onResume()方法,此时Activity对用户来说,是可见的状态
当Activity从可见状态变为被Dialog遮挡的状态的时候,会调用on...
分类:
移动开发 时间:
2014-05-21 15:43:02
阅读次数:
333
描述list layout item有上倒下依次显示的代码实现形式
LayoutAnimation2.java
/*
* Copyright (C) 2007 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may no...
分类:
其他好文 时间:
2014-05-21 09:02:15
阅读次数:
250