摘要: 主类:package com.example.android_actionbar;import android.annotation.SuppressLint;import android.app.ActionBar;import android.app.Activity;import android.os.Bundle;import android.view.Menu;import android.view.MenuInflater;import android.view.View;import android.view.View.OnClickListener;import android 阅读全文
posted @ 2013-11-06 18:52 skyko 阅读(1341) 评论(0) 推荐(0) 编辑
摘要: 主类:package com.example.android_actionbar;import android.annotation.SuppressLint;import android.app.ActionBar;import android.app.ActionBar.Tab;import android.app.Activity;import android.app.FragmentTransaction;import android.os.Bundle;public class ActionBarTabActivity extends Activity implements ... 阅读全文
posted @ 2013-11-06 17:18 skyko 阅读(388) 评论(0) 推荐(0) 编辑
摘要: package com.example.android_file;import java.io.FileInputStream;import java.io.FileNotFoundException;import java.io.FileOutputStream;import java.io.IOException;import java.io.PrintStream;import android.app.Activity;import android.os.Bundle;import android.os.Environment;import android.view.View;impor 阅读全文
posted @ 2013-11-06 16:26 skyko 阅读(322) 评论(0) 推荐(0) 编辑
摘要: public static Bitmap toRoundCorner(Bitmap bitmap, float pixels) { System.out.println("图片是否变成圆角模式了+++++++++++++"); Bitmap output = Bitmap.createBitmap(bitmap.getWidth(), bitmap.getHeight(), Config.ARGB_8888); Canvas canvas = new Canvas(output); final int col... 阅读全文
posted @ 2013-11-04 21:27 skyko 阅读(1540) 评论(0) 推荐(0) 编辑
摘要: activity:package com.example.android_contentprovider;import java.util.ArrayList;import java.util.List;import android.app.Activity;import android.app.AlertDialog;import android.content.Intent;import android.database.Cursor;import android.graphics.BitmapFactory;import android.net.Uri;import android.os 阅读全文
posted @ 2013-11-01 09:22 skyko 阅读(919) 评论(0) 推荐(0) 编辑
摘要: private ViewPager viewPager;viewPager = (ViewPager) findViewById(R.id.viewpager);viewPager.setAdapter(new SectionsPagerAdapter( getSupportFragmentManager())); 适配器/** * viewpager适配器 * * @author Administrator * */ private class SectionsPagerAdapte... 阅读全文
posted @ 2013-10-31 19:55 skyko 阅读(468) 评论(0) 推荐(0) 编辑
摘要: package com.example.baofenanim;import java.util.ArrayList;import java.util.List;import android.app.Activity;import android.os.Bundle;import android.support.v4.view.PagerAdapter;import android.support.v4.view.ViewPager;import android.support.v4.view.ViewPager.OnPageChangeListener;import android.view. 阅读全文
posted @ 2013-10-31 19:38 skyko 阅读(938) 评论(0) 推荐(0) 编辑
摘要: You can useListPopupWindowto anchor to a host view and display a list of options. In this recipe, you will learn to anchorListPopupWindowto anEditTextcontrol. When the user clicks in theEditTextcontrol,ListPopupWindowwill appear displaying a list of options. After the user selects an option fromList 阅读全文
posted @ 2013-10-31 09:12 skyko 阅读(6340) 评论(0) 推荐(0) 编辑
摘要: package com.example.android_activity.test;import com.example.android_activity.R;import android.app.LauncherActivity;import android.content.ComponentName;import android.content.Intent;import android.os.Bundle;import android.view.Menu;import android.widget.ArrayAdapter;public class MyTestActivity exte 阅读全文
posted @ 2013-10-29 11:33 skyko 阅读(731) 评论(0) 推荐(0) 编辑
摘要: 在主activty中调用 Intent intent = new Intent(MyActivity.this, MyResultActivity.class); // 调用返回 startActivityForResult(intent, 1);并且重载下列方法:@Override protected void onActivityResult(int requestCode, int resultCode, Intent data) { super.onActivityResult(requestCode, resultCode... 阅读全文
posted @ 2013-10-29 10:53 skyko 阅读(213) 评论(0) 推荐(0) 编辑