抽取样式,在values中定义一个xml文件,在文件中,
根节点
设置一个样式名字
value设置样式中每一项的名字和值
fill_parent
45dip
#355E9E
left|center_vertical
#EBC950
...
分类:
移动开发 时间:
2014-11-23 13:10:15
阅读次数:
229
#include #include #include #include using namespace std;int main() { int N; double mcap, dist, davg; scanf("%lf%lf%lf%d", &mcap, &dist, &dav...
分类:
其他好文 时间:
2014-11-23 12:55:37
阅读次数:
253
此为测试所用,没有参考价值
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:gravity="center"
a...
分类:
其他好文 时间:
2014-11-21 18:53:30
阅读次数:
265
1. Titanium中,通过ImageView Controller 显示图片,图片地址要放在app/assets下,然后自己建一个文件夹,把图片放在这里。如下图,然后alloy代码: 完事。2. 图片没有占满整个屏幕?--没关系,在tss文件中, width: Ti.UI.FILL 即可。3.弄...
分类:
移动开发 时间:
2014-11-19 23:41:43
阅读次数:
299
界面文件activity_main.xml<Button
android:id="@+id/createButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_below="@id/hello_world"
android:text="createdatabase"/>
<Button
android:id="@+id/updateButton"
a..
分类:
移动开发 时间:
2014-11-19 18:54:14
阅读次数:
303
点击Start按钮,每隔3秒在Logcat里打印一句话<Button
android:id="@+id/startButton"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Start"/>
<Button
android:id="@+id/endButton"
android:layout_width="fill_parent"
a..
分类:
移动开发 时间:
2014-11-19 02:07:42
阅读次数:
216
窗口创建的标志#define WM_CF_HASTRANS (1<<0) /* Has transparency. Needs to be defined for windows which do not fill the entire ...
分类:
其他好文 时间:
2014-11-18 17:23:44
阅读次数:
197
线性布局<?xmlversion="1.0"encoding="utf-8"?>
<LinearLayoutxmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<!--
android:id为控件..
分类:
移动开发 时间:
2014-11-17 19:43:38
阅读次数:
283
第一步:为了更好的比较,准备两个一模一样的EditText(当Activity启动时,焦点会在第一个EditText上,如果你不希望这样只需要写一个高度和宽带为0的EditText即可避免,这里就不这么做了),代码如下:viewplain<EditTextandroid:layout_width="fill_parent"android:layout_he..
分类:
其他好文 时间:
2014-11-17 19:40:31
阅读次数:
218
ie6支持的png格式图片的实现方法。在title 标题引用这段js文件即可 PNG.js 文件:var PNG = { ns: 'PNG', imgSize: {}, createVmlNameSpace: function() { /* enable VML */ if (document...
分类:
其他好文 时间:
2014-11-14 12:02:46
阅读次数:
143