摘要:
public void onActivityResult(int requestCode, int resultCode, final Intent data) { if (RESULT_OK == resultCode && 1 == requestCode) { LayoutInflater inflater = getLayoutInflater(); View layout = inflater.inflate(R.layout.dialog, (ViewGroup) ... 阅读全文
posted @ 2012-12-25 13:29
merryjd
阅读(424)
评论(0)
推荐(0)
摘要:
//设置button的点击事件bt1.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { // TODO Auto-generated method stub Intent intent = new Intent(); intent.setType("image/*"); intent.setAction(in... 阅读全文
posted @ 2012-12-25 13:27
merryjd
阅读(810)
评论(0)
推荐(0)
摘要:
//定义四种类型的Animation final Animation translAnimation = new TranslateAnimation(0, 300, 0, 300); final Animation scaleAnimation = new ScaleAnimation(0f, 1f, 0f, 1f, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f); final Animation alp... 阅读全文
posted @ 2012-12-25 13:22
merryjd
阅读(672)
评论(0)
推荐(0)
摘要:
package com.example.demousercount;import android.os.Bundle;import android.app.Activity;import android.content.SharedPreferences;import android.content.SharedPreferences.Editor;import android.view.Menu;import android.widget.TextView;public class DemoUserCount extends Activity { //声明一个SharedPrefere... 阅读全文
posted @ 2012-12-25 13:14
merryjd
阅读(213)
评论(0)
推荐(0)
摘要:
requestWindowFeature(Window.FEATURE_NO_TITLE); 阅读全文
posted @ 2012-12-25 13:12
merryjd
阅读(190)
评论(0)
推荐(0)
浙公网安备 33010602011771号