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
QML设计登陆界面
本文博客链接:http://blog.csdn.net/jdh99,作者:jdh,转载请注明.
环境:
主机:WIN7
开发环境:Qt5.2
说明:
用QML设计一个应用的登陆界面
效果图:
源代码:
main.qml
import QtQ...
分类:
其他好文 时间:
2014-07-22 23:02:34
阅读次数:
430
//UI界面的布局 文件 package
com.example.saveuserandpasswor; import android.app.Activity; import
android.content.Sh...
分类:
移动开发 时间:
2014-05-01 19:55:30
阅读次数:
510
2dx中的相对布局和Android中的非常类似,如果之前做过Android应该非常容易上手。
Size widgetSize = Director::getInstance()->getWinSize();
Text* alert = Text::create("Layout", "fonts/Marker Felt.ttf", 30 );
...
分类:
其他好文 时间:
2014-05-01 18:33:56
阅读次数:
2383
相对某个控件进行布局
Size widgetSize = Director::getInstance()->getWinSize();
Text* alert = Text::create("Layout", "fonts/Marker Felt.ttf", 30 );
alert->setColor(Color3B(159, 168, 176)...
分类:
其他好文 时间:
2014-05-01 18:04:08
阅读次数:
503
方案一:利用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