1.首先是写
service脚本service脚本需要进入到目录/etc/init.d中,然后touch memcached,最后vim
memcached后进行脚本编写,脚本如下:#!/bin/bash#chkconfig:345 60 60#description:auto_runexport
...
分类:
系统相关 时间:
2014-05-17 00:52:40
阅读次数:
357
IOS自动布局简介自动布局在iOS 6.0中引入,仅可以支持IOS6.0 及
更高版本。它可以帮助我们创建用于多个种设备的界面。实例步骤1.创建一个简单的 View based application2.修改
ViewController.m 的文件内容,如下所示#import "ViewContr...
分类:
移动开发 时间:
2014-05-16 19:59:44
阅读次数:
427
android:fillViewport=trueScrollView下面的组件如果有android:layout_height="fill_parent"或android:layout_height="wrap_content"那么必须将ScrollView的android:fillViewpor...
分类:
移动开发 时间:
2014-05-16 18:09:45
阅读次数:
368
1、可以使某些资源文件或UI组件可重用 2、定义一个文本编辑框,使用绝对定位
android:layout_x="20dip" android:layout_y="80dip" 3、控件位置
android:layout_centerHorizontal 控制该组件是否位于布局容器的水平居中位置 a...
分类:
移动开发 时间:
2014-05-16 18:07:41
阅读次数:
571
(一)滚动条样式主要涉及到如下CSS属性:overflow属性:
检索或设置当对象的内容超过其指定高度及宽度时如何显示内容overflow: auto; 在需要时内容会自动添加滚动条overflow: scroll;
总是显示滚动条overflow-x: hidden; 禁止横向的滚动条overfl...
分类:
Web程序 时间:
2014-05-14 09:39:30
阅读次数:
325
1.图片自动等比例缩放{display:block;width:100%; height:auto;}
分类:
Web程序 时间:
2014-05-13 22:47:10
阅读次数:
453
1)创建一个android项目填写项目信息2)创建一个新Activity右键点击Eclipse左边(默认)你要加入Activity的包,比如,我的包是com.INdroid.layout。然后选New->Class,输入类名后(注意首字母大写),在Superclass的Browse那里点击。最后在C...
分类:
移动开发 时间:
2014-05-13 20:56:51
阅读次数:
473
1.电话拨号器:
activity_main.xml
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
a...
分类:
移动开发 时间:
2014-05-13 15:08:57
阅读次数:
508
// 处理另存文件的菜单
public void handleSaveAsFile() {
// 设置对话框的风格
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
} catch (Exception e1) {
// TODO Auto-generated catch...
分类:
其他好文 时间:
2014-05-13 14:45:25
阅读次数:
239
一、Gallery学习、看懂Logcat的提示信息看实际错误的第一句,像这句错误提示:android.widget.Gallery$LayoutParams,可以看出与Gallery有关的布局参数可能出错了,所以你定位错误的大致方向就有啦,你可以按照“Gallery”和“Layout”这两个字眼来查找在代码中出现的位置,这..
分类:
其他好文 时间:
2014-05-13 12:33:10
阅读次数:
352