ListView 中有多个选项,长按每个选项,都能弹出一个上下文菜单,并能获取所按选项的详细信息。关键步骤:private static final int DELETE_ID = Menu.FIRST + 1;//使用Menu.FIRST常量而不使用其他常量的原因:程序封装的变量 用起来不占内存 ...
分类:
移动开发 时间:
2014-06-28 17:56:45
阅读次数:
347
Recently I am trying to run the sliding menu examples which was given in this blog:http://www.curious-creature.org/2012/12/14/android-recipe-3-sliding...
分类:
移动开发 时间:
2014-06-28 15:06:19
阅读次数:
421
有时候,我们的页面中可能会包含一些布局,这些布局默认是隐藏的,当用户触发了一定的操作之后,隐藏的布局才会显示出来。比如,我们有一个Activity用来显示好友的列表,当用户点击Menu中的“导入”以后,在当前的Activity中才会显示出一个导入好友的布局界面。从需求的角度来说,这个导入功能,一般情...
分类:
移动开发 时间:
2014-06-20 19:38:21
阅读次数:
260
第一部分 个性化控件(View)主要介绍那些不错个性化的View,包括ListView、ActionBar、Menu、ViewPager、Gallery、GridView、ImageView、ProgressBar、TextView、ScrollView、TimeView、TipView、FlipV...
分类:
移动开发 时间:
2014-06-20 16:20:13
阅读次数:
929
测试成功,完美解决。
只需修改VIM目录下面的这个文件_vimrc。
加油吧,骚年。很强大的!
set encoding=utf-8
set fileencodings=utf-8,chinese,latin-1
if has("win32")
set fileencoding=chinese
else
set fileencoding=utf-8
endif
"解决菜单乱码
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
"解决cons...
//菜单下拉function menu(){ var oNav=document.getElementById('top-menu'); var aLi=oNav.getElementsByTagName('li'); for(var m=0;m<aLi.length;m++) { ...
分类:
其他好文 时间:
2014-06-17 19:47:29
阅读次数:
249
1、开机点击F1进入到bios界面2、进入Security—Secure Boot—Disabled如果不修改Secure boot选项为Disabled,在光驱引导时可能会出现报错3、进入Startup—UEFI/Legacy Boot选项,以下有两种选择(1)UEFI/Legacy Boot选项...
分类:
移动开发 时间:
2014-06-15 14:44:31
阅读次数:
185
第一个步骤“配置内核”。在这里,我比较建议在发行版默认的config的基础上再进行配置,这样 配置出的内核和发行版本身才会有更好的相容性。比如可以在运行“make menuconfig”之前执行命令“cp /boot/config-2.6.35-24-generic .config”,或者在menu...
分类:
其他好文 时间:
2014-06-14 16:17:42
阅读次数:
234
方法1.go to the Product menu and find the Edit
Scheme menu there.While in Edit Scheme window, select the "Run" option on the
left hand side of the scree...
分类:
其他好文 时间:
2014-06-12 21:03:42
阅读次数:
317
1、
package com.example.myreceiver;
import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.content.IntentFilter;
import android.view.Menu;
import android...
分类:
移动开发 时间:
2014-06-10 11:10:49
阅读次数:
275