`
文章列表
3.1 数据导出:  1 将数据库SampleDB完全导出,用户名system 密码manager 导出到E:\SampleDB.dmp中    exp system/manager@TestDB file=E:\sampleDB.dmp full=y  2 将数据库中system用户与sys用户的表导出    exp system/manager@TestDB file=E:\sampleDB.dmp  owner=(system,sys)  3 将数据库中的表 TableA,TableB 导出     exp system/manager@TestDB  file=E:\s ...
进度条: 1.默认进度条 <ProgressBar android:layout_width="warp_content" android:layout_height="warp_content" /> 2. <ProgressBar android:layout_width="warp_content" android:layout_height="warp_content" style="?android:attr/progre ...

ListView

ListView 列表视图: 适配器: ArrayAdapter:最简单的适配器,只能显示一行文字 SimpleAdapter:具有很好扩展性的适配器,可以显示自定义内容 ArrayAdapter:------------------ | | ListView lv = new ListView(TextViewActivity.this); | List<String> list = new ArrayList<String>(); | list.add("Item1"); | li ...

ImageButton

<ImageButton android:id="@+id/imgBtn" android:layout_width="wrap_content" android:layout_height="wrap_content" android:background="@drawable/nopress" /> final ImageButton imgBtn = (ImageButton) ...

CheckBox

<CheckBox android:id="@+id/box1" android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="@string/box1" /> <CheckBox android:id="@+id/box2" ...

Layout 布局

1.LinearLayout 线性布局:LinearLayout 通过android:orientation设置线性布局的方向(水平、垂直) <LinearLayout android:layout_width="fill_parent" android:layout_height="warp_content" android:orientation="vertical" //垂直 //horizontal 水平 > <EditText ...

Activity&Theme

1.生命周期//使Activity用弹出窗的形式显示 //配置AndroidManifest.xml中的Activity android:theme="@android:style/Theme.Dialog" 1.Log类 Log.v(String tag,String msg);//VERBOSE Log.d(String tag,String msg);//DEBUG Log.i(String tag,String msg);//INFO Log.w(String tag,String msg);//WARN Log.e(String ...

Intent

1.拔打电话: //Intent intent=new Intent(Intent.ACTION_CALL,Uri.parse("tel:"+telPhone)); Integer intent = new Intent(); intent.setAction(Intent.ACTION_CALL); intent.setData(Uri.parse("tel:110")); startActivity(intent); 2.发送短信 Intent intent = new Intent(); intent. ...

DDMS&Button

DDMS Emulator Control Incoming number:呼叫号码 (如:5554) Voice 打电话 SMS 短信 Message : ----- Button: <Button android:layout_width="warp_content" android:layout_height="warp_content" android:text="clickMe" /> //添加事件 Butto ...

EditText

//html - input type='text' EditText-> TextView的子类 <EditText android:layout_width="fill_parent" android:layout_heght="warp_content" /> /* 去除自动焦点 1. 定义一个高宽都为0的EditText,这样,就可以了。 */ //限制输入字符数量 android:maxLength="11" //多行文本框(默认) andro ...

TextView

1.基类:(不允许用户修改文字信息) 代码创建 TextView tv = new TextView(content); contnet(对象 Activity) -> this = TextView tv = new TextView(this); tv.setText("hello"); setContentView(tv); XML /* 设置字体大小时 建议使用sp ...

oracle_索引

1.查看Oracle当前用户下的信息(用户,表视图,索引,表空间,同义词,存储过程函数,约束条件 0、表空间   SQL>select username,default_tablespace from user_users;   查看当前用户的角色   SQL>select * from user_role_privs; ...

ngnix.conf配置

# 开多少进程 worker_processes 2; # 错误日志 error_log /data/log/nginx/nginx_error/nginx_error.log crit; # pid pid /var/run/nginx.pid; #Specifies the value for maximum file descriptors that can be opened by this process. worker_rlimit_nofile 51200; events { use epoll; worker_connectio ...

多维数组

java语言中,数组是一种最简单的复合数据类型。数组是有序数据的集合,数组中的每个元素具有相同的数据类型,可以用一个统一的数组名和下标来唯一地确定数组中的元素。数组有一维数组和多维数组。 ★ 一维数组       1 ...
    Calendar cal = Calendar.getInstance();           cal.setTime(new Date());          cal.set(Calendar.YEAR, cal.get(Calendar.YEAR) + 1);
Global site tag (gtag.js) - Google Analytics