自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 [Flutter] Build macos desktop app with flutter

First of all:Should switch flutter branch tomasterto enable app run on macOS .Create project:Normal project (consists of mobile platforms, android and iOS )Type in terminalflutter ...

2019-11-07 09:57:30 405

原创 measure screen dp

//measure the screen width and heightDisplay display = getActivity().getWindowManager().getDefaultDisplay();DisplayMetrics outMetrics = new DisplayMetrics ();display.getMetrics(outMetrics);float de

2016-10-18 14:06:08 209

原创 Handsome Toast

to customm a toat to make your app looks handsomehow to ? write a class as follow is okay.public class GreanToast { private Toast toast; private Context mContext; public GreanToast(Cont

2016-10-11 09:58:08 255

原创 custom a switch

‘cuz the switch android provides is in solid height. it’s too narrow to contain my texton/off. I work out a solution building a custom switch.there are three steps: 1/ prepare a xml (a relative layou

2016-10-10 14:22:23 203

转载 欢迎使用CSDN-markdown编辑器

欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl

2016-10-10 14:21:37 153

原创 iterator & foreach

iterator & foreach

2016-09-29 10:13:15 73

原创 several things about EditText

EditText

2016-09-29 10:12:37 170

原创 SQLite operations

SQLiteOpenHelper

2016-09-29 10:11:35 476

原创 Fragments 优化切换卡顿 & 屏蔽穿透点击事件

1、用add(R.id.frag, fragment) &  hide(fragment)  show(fragment)来解决切换的卡顿当多个Fragment间切换时  会有明显的卡顿。以下就是 radio.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {

2016-09-21 14:07:35 886

原创 android studio导入eclipse的library/ import libraries from eclipse to android studio

when you pick a library in eclipse and want to export it.  it says as followit means you can import it straight in android studio. steps are as follow:1/ eclipse: new module -- import packag

2016-09-19 14:21:10 452

转载 [android] string format (sth like %1$s..)

from 博客园:http://www.cnblogs.com/bluestorm/p/3713717.html[personal technical diary]%1$s %1$d Android string (java & Android 格式化字符串)1$s // String%1$d // int//R.string.old:我今年%1$d

2016-09-19 14:09:09 2850

原创 [android] how to hide system bar and navigation bar in android

several ways I found, (wait to verify):1/secly.setSystemUiVisibility(View.SYSTEM_UI_FLAG_HIDE_NAVIGATION);secly is my layout , setcontent,  second activity is ok, but in main activity does not

2016-08-30 10:27:59 952

原创 [eclipse] there is no android application option at run as

just because the prj is not right. if it's right built, there should be.

2016-08-29 14:20:43 426

原创 [android] (new buttons in java not in xml) share onclick in one activity,

public class SecondAct extends Activity implements View.OnClickListener {first should implements View.OnClickListener  then you can override onclick@Overridepublic void onClick(View v) {

2016-08-29 13:57:57 276

原创 found that when click menu then click again, back to main activity but not the one when click menu.

that isactivity A is main activity of app,then activity A  has a button to activity B,when in B, click menu button, shows recent apps, click again-- should return to B, but found to be A.r

2016-08-27 14:15:38 397

原创 [Android Studio] always goes wrong "meata_data" "cant find API 21" when import a prj from eclipse

1/problem: automatically insert  meata_data  in manifest.xml  cant delete.solve: comment  out " google .. client" 2/problem: after attempt to import a prj from eclipse, goes wrong. says ca

2016-08-26 17:34:42 526

原创 [Android] Start your activity after boot completed

several ways as follow:1. register in manifest.xml  as android:name="android.intent.action.MAIN" /> android:name="android.intent.category.DEFAULT" /> android:name="android.intent

2016-08-26 14:45:01 483

空空如也

空空如也

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

TA关注的人

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