自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

翻译 支持不同的安卓系统

在AndroidManifest文件里面申明目标API和最小API。 ...为了使用不同的设备,需要了解app中用到的功能,例如判使用ActoinBar就需要api11及以上的系统。private void setUpActionBar() { // Make sure we're running on Honeycomb or higher to

2015-12-01 11:13:09 214 1

翻译 支持不同的屏幕

安卓中有四种比较常见的屏幕尺寸:small,normal,large,xlarge。也有四种部较常见的像素密度:low((ldpi),medium(mdpi),high(hdpi),extra high(xhdpi)。不过现在ldpi不怎么常见了,较多的是xhdpi,xxhdpi。创建不同的布局文件:大小屏:MyProject/ res/ layout/

2015-12-01 10:52:33 237

翻译 支持不同的语言

创建对应语言的资源文件,例如values-es/就是包含“es”的语言代码。MyProject/ res/ values/ strings.xml values-es/ strings.xml values-fr/ strings.xmlEnglish(默认的语言),/value

2015-12-01 10:43:07 253

原创 最佳启动Acitivity

public class MyStartActivity extends Activity(){public static void actionStart(Context context,String data1,String data2){Intent intent = new Intent(context,TragetActivity.class);intent.putExtra("para

2015-11-14 16:20:32 225

转载 ViewPager体验

使用ViewPager1.在布局文件中加入该组件<android.support.v4.view.ViewPager android:id="@+id/viewPager" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gr

2015-10-09 17:02:06 287

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除