xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" creationComplete="init(event)">
import mx.core.IVisualElement;
import mx.core.IVisualElementContai...
分类:
其他好文 时间:
2014-07-22 23:05:55
阅读次数:
338
//UI界面的布局 文件 package
com.example.saveuserandpasswor; import android.app.Activity; import
android.content.Sh...
分类:
移动开发 时间:
2014-05-01 19:55:30
阅读次数:
510
在canvas中使用颜色和透明度,通过context的strokeStyle和fillStyle属性设置,strokeStyle和fillStyle的值可以是任意有效的css颜色字串。可以用RGB、RGBA、HSL、HSLA以及十六进制RGB标注来指定颜色,也可以通过
“yellow”、“sil.....
分类:
Web程序 时间:
2014-05-01 19:53:35
阅读次数:
548
/**
* java 边界布局
* @author gao
*/
package com.gao;
import java.awt.BorderLayout;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.Empty...
分类:
编程语言 时间:
2014-05-01 18:32:35
阅读次数:
370
方案一:利用UINavigationBar 自带的布局item(Fixed space Bar Button Item)来适配ios7. 其实就是在原来返回按钮的位置上在多加一个占位的Item
为UINavigationBar 写一个分类。UINavigationItem+correct_offset.h
#import
@interface UINavigationIte...
分类:
移动开发 时间:
2014-05-01 17:29:39
阅读次数:
525
在android学习中,动作交互是软件中重要的一部分,其中的Scroller就是提供了拖动效果的类,在网上,比如说一些Launcher实现滑屏都可以通过这个类去实现。下面要说的就是上次Scroller类学习的后的实践了。
如果你还不了解Scroller类,那请先点击:Android
界面滑动实现---Scroller类 从源码和开发文档中学习(让你的布局动起来)
了解之后再...
分类:
移动开发 时间:
2014-04-30 22:32:39
阅读次数:
515
<Window x:Class="WpfApplication2.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Mai...
分类:
其他好文 时间:
2014-04-30 22:24:38
阅读次数:
226
弹窗常用AlertDialog来袜,因为AlertDialog可以很方便的添加所要的项。比如确定/取消按钮,自定义的标题栏、自定义的信息布局等。在自定义布局时,比如我们采用LinearLayout来布局,然后再往LinearLayout中添加一些项,比如TextView、EditText等。这些都很容易实现。
不过,如果添加spinner,可能就会出问题了。找了很久,发现是context引起的。...
分类:
移动开发 时间:
2014-04-30 22:13:38
阅读次数:
422