码迷,mamicode.com
首页 >  
搜索关键字:button image位置    ( 10387个结果
在Android中实现图片的裁剪
本实例的功能室将用户选择的图片裁剪后放入ImagView,布局文件是个Button和ImageView。为了图片的正常显示,我们在裁剪后先将裁剪好的图片先存放到SD卡中,这样就能在以后开启应用的时候直接调用了。main_activity.xml MainActivity.javapa...
分类:移动开发   时间:2014-07-22 22:48:32    阅读次数:371
Android防止按钮连续点击
为了防止用户或者测试MM疯狂的点击某个button,写个方法防止按钮连续点击。public class Utils { private static long lastClickTime; publicsynchronized static boolean isFastClick() {...
分类:移动开发   时间:2014-07-22 22:41:33    阅读次数:247
Android学习笔记三:Intent实现页面跳转
在主Activity的OnCreate()方法中,通过findViewById得到Activiity_main中已定义的组件,例如Button、EditText等,注意需要强制转型view到具体的类型。给取得的组件btn添加监听器如OnClickListener(),在其中实例化Intent对象,参...
分类:移动开发   时间:2014-07-22 22:40:55    阅读次数:264
UIBarButtonItem
一个bar button item是专门用来放在uitoolbar 和uinavigationbar上的对象。他继承自UIBarItem。UIBarButtonItem定义了额外的初始化方法和属性用于再toolbars喝navigation bars上。Initializing an Item–in...
分类:其他好文   时间:2014-07-22 22:39:55    阅读次数:209
ios中改变UIImagePickerController页面的button的文字为中文
UIImagePickerController 定制...
分类:移动开发   时间:2014-07-22 14:10:24    阅读次数:207
iOS uibutton image/backgroundimage
http://stackoverflow.com/questions/3723831/set-a-button-background-image-iphone-programmaticallyhttp://stackoverflow.com/questions/11469908/how-to-cha...
分类:移动开发   时间:2014-07-22 00:37:33    阅读次数:239
仿糯米弹框效果demo
代码如下: Tabs /* Remove margin padding */ body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td { margin:0; padding:0; } /* Default Font...
分类:其他好文   时间:2014-07-22 00:16:33    阅读次数:316
导航菜单(移动出现子菜单)
代码如下: /* 这以下是重置样式 Remove margin padding */ body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td { margin:0; padding:0; } /*...
分类:移动开发   时间:2014-07-22 00:15:36    阅读次数:361
wpf 自定义RadioButton控件样式
实现的效果为:我感觉来自定义RadioButton样式和定义button空间的样式差不多,只是类型不同而已。接下来分析一下样式代码: XAML中代码为:
分类:其他好文   时间:2014-07-22 00:11:35    阅读次数:1575
Mediator - 中介者模式
定义 用一个中介对象来封装一系列的对象的交互。中介者使各对象不需要显示地相互使用,从而使其耦合松散,而且可以独立的改变他们之间的交互。 案例 比如有一个图像界面,在界面上有一个输入框LineEdit,有个一个列表框ListBox,有一个按钮Button。当输入框LineEdit没有内容的时候,按钮是灰显,不可用的,当在LineEdit输入了正确的选项后,ListBox...
分类:其他好文   时间:2014-07-21 23:29:41    阅读次数:311
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!