会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
龟窝
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
3
4
5
6
7
8
下一页
2015年10月21日
fragment在水平/垂直时的应用
摘要: 直接看代码 1 public class MainActivity extends Activity { 2 3 @Override 4 protected void onCreate(Bundle savedInstanceState) { 5 super.on...
阅读全文
posted @ 2015-10-21 17:07 龟窝
阅读(238)
评论(0)
推荐(0)
2015年10月11日
Activity堆栈管理
摘要: 1. Intent对象的Activity启动标记说明:FLAG_ACTIVITY_BROUGHT_TO_FRONT:应用程序代码中通常不设置这个标记,而是由系统给单任务启动模式的Activity的设置。FLAG_ACTIVITY_CLEAR_TASK:如果给Intent对象添加了这个标记,那么在Ac...
阅读全文
posted @ 2015-10-11 21:54 龟窝
阅读(445)
评论(0)
推荐(0)
ORMLite的使用
摘要: 首先需要下载core和android两个jarhttp://ormlite.com/releases/然后拷贝到libs文件夹下并且添加为库具体的使用看标程:School.java 1 package com.turtle920.ormlitedemo; 2 3 import com.j256.o...
阅读全文
posted @ 2015-10-11 21:49 龟窝
阅读(301)
评论(0)
推荐(0)
onItemLongClick事件的监听
摘要: 首先需要implements1 public class MainActivity extends AppCompatActivity implements OnItemLongClickListener再绑定1 ListView listView = (ListView)findViewById...
阅读全文
posted @ 2015-10-11 21:23 龟窝
阅读(717)
评论(0)
推荐(1)
2015年10月9日
Bundle的使用
摘要: a、Activity1发送: Intent intent = new Intent();intent.setClass(activity1.this, activity2.class);//描述起点和目标Bundle bundle = new Bundle();//创建Bundle对象bundle...
阅读全文
posted @ 2015-10-09 12:22 龟窝
阅读(229)
评论(0)
推荐(0)
有关implicit Intent的使用
摘要: 1 Intent intent = new Intent(Intent.ACTION_VIEW);2 intent.setData(Uri.parse("geo:20.000,50.000"));3 startActivity(...
阅读全文
posted @ 2015-10-09 11:04 龟窝
阅读(189)
评论(0)
推荐(0)
switch控件的使用
摘要: java中: 1 public class MainActivity extends Activity implements OnCheckedChangeListener{ 2 3 private Switch aSwitch; 4 5 @Override 6 prot...
阅读全文
posted @ 2015-10-09 10:14 龟窝
阅读(459)
评论(0)
推荐(0)
弹出和收起软键盘
摘要: 1 InputMethodManager imm = (InputMethodManager)getSystemService(INPUT_METHOD_SERVICE);//这两行是弹出软键盘2 imm.showSoftInput(textView,...
阅读全文
posted @ 2015-10-09 10:09 龟窝
阅读(240)
评论(0)
推荐(0)
2015年10月8日
EditText动态转换只读/编辑状态
摘要: 1 public class MyActivity extends Activity 2 { 3 private KeyListener listener; 4 private EditText editText; 5 6 public void onCreate(......
阅读全文
posted @ 2015-10-08 17:18 龟窝
阅读(322)
评论(0)
推荐(0)
有关Botton的用法(二)
摘要: 关于设置listener监听onClicked事件的步骤分析Steps:1.tell android you are interested in listening to a button click2.bring your xml button inside java3.tell your jav...
阅读全文
posted @ 2015-10-08 13:27 龟窝
阅读(264)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
下一页
公告