- 浏览: 1665245 次
- 性别:
- 来自: 福州
-
最新评论
-
z小小Jean:
有具体的解决方法吗
用命名imp导入DMP时报无法解析指定的连接标识符的解决办法 -
njoiop:
这些都是常用接口,IP地址、手机归属和身份证查询接口,基站定位 ...
IP地址、手机归属和身份证查询接口 -
Fs_sky:
那导出DMP如何包含序列等其他东西?
在plsql中如何导出dmp文件 -
qiywtc:
请问该怎么判断视频的格式再选择对应的播放格式来播放啊?
asp.net各种类型视频播放代码(全) -
xinghenhouzi:
楼主说的版本不同无法导入导出是什么意思?我用10g的exp.e ...
在plsql中如何导出dmp文件
文章列表
android 隐藏域
- 博客分类:
- Android
<TextView
android:id="@+id/gift_item_id"
android:layout_width="0dp"
android:layout_height="0dp"
/>
在Activity中设置隐藏域的值
eclipse 调试不了
- 博客分类:
- Android
在开发的过程中,有时会碰到eclipse明明打了断点,却调试不了,断点变成有个斜杆,这几天也被这个问题困扰了很久,很是郁闷,后来在网上查了些资料,有人说把工作区换过,就可以解决了,于是乎把项目考到别的地方,然后把工作区换到相应的位置,结果,真可以了,真是神奇,暂时也只找到这么个解决方案
解决EditText 自动打开软键盘的方法
- 博客分类:
- Android
相信刚做android开发的朋友都会遇到这个问题:如果一个界面有EditText或者AutoComplete控件的时候,EditText得到焦点了会自动的打开系统的软键盘,那么怎么才能让软键盘在第一次看到界面的时候隐藏起来喃?有两种办法:
1:
<Linearlayout
android:focusable="true"
android:focusableintouchmode="true"
android:layout_height="0px"
android:layout_width ...
一:不同的layout
Android手机屏幕大小不一,有480x320, 640x360, 800x480.怎样才能让App自动适应不同的屏幕呢?
其实很简单,只需要在res目录下创建不同的layout文件夹,比如layout-640x360,layout-800x480,所有的layout文件在编译之后都会写入R.java里,而系统会根据屏幕的大小自己选择合适的layout进行使用。
二:hdpi、mdpi、ldpi
在之前的版本中,只有一个drawable,而2.1版本中有drawable-mdpi、drawable-ldpi、drawable-hdpi三个,这三个主要是为了 ...
方法一:在XML文件中指定 单击事件函数
<Button
android:id="@+id/button1"
android:layout_width="120dip"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_below="@+id/text ...
常规类型的格式化
String类的format()方法用于创建格式化的字符串以及连接多个字符串对象。熟悉C语言的读者应该记得C语言的sprintf()方法,两者有类似之处。format()方法有两种重载形式。
l format(String format, Object... args)
该方法使用指定的字符串格式和参数生成格式化的新字符串。 新字符串始终使用本地语言环境。例如当前日期信息在中国语言环境中的表现形式为“2007-10-27”,但是在其他国家有不同的表现形式。
语法:
String.format(format,args...)
format:字符串格 ...
import android.app.Activity;
import android.graphics.Rect;
import android.os.Bundle;
import android.util.Log;
import android.view.Window;
import android.widget.ImageView;
public class Main extends Activity {
ImageView iv;
@Override
public void onCreate(Bundle ...
<View
android:layout_height="1dip"
android:background="#B7B7B7" />
<TableLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_margin="10dp"
...
package me.mcar.parking.control;
import android.content.Context;
import android.graphics.Paint;
import android.util.AttributeSet;
import android.widget.TextView;
public class AutoAjustSizeTextView extends TextView
{
private static float DEFAULT_MIN_TEXT_SIZE = 10;
private static float ...
width属性必须要设才有作用:
<TextView android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:id="@+id/PopNameList"
android:singleLine="true"
android:ellipsize="end"
android:textStyle="bold"
android:textSize=" ...
Intent intent = new Intent();
intent.setClass(helloworld.this,android2.class);//helloworld.class为Activity,android2.class为Activity。
intent.putExtra("name", "传值测试!");//设置传递内容。
startActivity(intent);//跳转。
finish();//关闭当前Activity。
第一种写法,用于批量添加数据到Intent:
Intent intent = new I ...
在网上看了一些对Layout_weight的讲解,有些说的比较片面,只列举了一种情况,然后自己通过实验和一些比较好的文章总结了一下,特此记录下来,以备以后所用。Layout_weight是线性布局,也就是LinearLayout里面用到的,下面通过实 ...
Eclipse 快捷键
- 博客分类:
- Android
一、多行注释快捷键
1.选中你要加注释的区域,用ctrl+shift+C 或者ctrl+/ 会加上//注释
2.先把你要注释的东西选中,用shit+ctrl+/ 会加上/* */注释
3.以上快捷在重复按一下就会去掉加上的注释
4.要修改在eclispe中的命令的快捷键方式我们只需进入windows -> preference -> General -> key设置就行了
二、Eclipse中添加文档注释快捷键
1.例如默认的文档注释:
/**
* @author 梦断
*
...
去掉应用程序界面上部显示应用程序名部分
- 博客分类:
- Android
具体的操作是:
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
requestWindowFeature(Window.FEATURE_NO_TITLE);// 填充标题栏
setContentView(R.layout.main);
requestWindowFeature();
这句需要在setContentView之前使用
Android xml 转义字符
- 博客分类:
- Android
XML转义字符
以下为XML标志符的数字和字符串转义符
" (" 或 ")
' (' 或 ')
& (& 或 &)
lt(<) (< 或 <)
gt(>) (> 或 >)
下面的字符在 [XML]中被定义为 空白(whitespace)字符:
空格 ( )
Tab (	)
回车 (
)
换行 (& ...
- 2012-04-01 11:07
- 浏览 1582
- 评论(0)