1.布局 2.MainActivity.javapackage com.example.logindemo;import java.util.Map;import android.os.Bundle;import and...
分类:
移动开发 时间:
2014-08-22 00:07:25
阅读次数:
330
在ASP.NET MVC4中(在WebForm中应该也有),有一个叫做Bundle的东西,它用来将js和css进行压缩(多个文件可以打包成一个文件),并且可以区分调试和非调试,在调试时不进行压缩,以原始方式显示出来,以方便查找问题。具体优势可自行百度或参看官方介绍:http://www.asp.ne...
分类:
Web程序 时间:
2014-08-21 18:50:54
阅读次数:
190
当使用 initWithNibName 函数, 并使用 由nib文件生成的ViewController 的view属性时候,遇到这个问题。 //load loc.xib UIViewController * UIVC = [[UIViewController alloc] initWithNibName:@"loc" bundle:n...
分类:
其他好文 时间:
2014-08-20 22:49:53
阅读次数:
241
一、基本知识点1、Activity之间传递数据1)传递基本类型或String intent.putExtra("username", username); getIntent(); intent.getStringExtra("username");2)以bundle的形式传 Bundle bundle = new Bundle(); bundle.putString("use...
分类:
移动开发 时间:
2014-08-20 21:12:53
阅读次数:
384
V4的兼容包 API 大概就这4个常用的方法。code 布局 MainActivty@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(saved...
分类:
移动开发 时间:
2014-08-20 13:53:42
阅读次数:
240
首先,废话少说,先上效果图:
代码:
public class MainActivity extends Activity implements OnClickListener{
private Button showBtn1;
private Button showBtn2;
@Override
protected void onCreate(Bundle save...
分类:
移动开发 时间:
2014-08-20 00:02:04
阅读次数:
312
@Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.la...
分类:
移动开发 时间:
2014-08-19 23:42:45
阅读次数:
313
import java.io.File;
import android.app.Activity;
import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
public clas...
分类:
其他好文 时间:
2014-08-19 22:31:05
阅读次数:
209
因为众所周知的原因,android官网打不开。在这里公布IDE地址,可以用迅雷等软件直接下载。 ##adt-bundle-windows-x86: - http://dl.google.com/android/adt/adt-bundle-windows-x86-20140702.zip...
分类:
移动开发 时间:
2014-08-19 20:59:45
阅读次数:
319
今天发现自己连Bundle类都没有搞清楚,于是花时间研究了一下。依据google官方的文档(http://developer.android.com/reference/android/os/Bundle.html)Bundle类是一个key-value对,“A mapping from Strin...
分类:
移动开发 时间:
2014-08-19 20:48:05
阅读次数:
289