码迷,mamicode.com
首页 >  
搜索关键字:view textfield    ( 37951个结果
Android重写ViewPager修改滑动灵敏度
使用ViewPager作为一个页面进行切换,里面可以存放很多View,但有时在操作View时不小心滑动一下就有可能跳到下一页,这并不是我们想要的,这里就需要重写ViewPager修改它的滑动条件 效果图 程序目录结构 BTViewPager.java package com.example.viewpagerdemo; import android.content.Con...
分类:移动开发   时间:2014-05-23 02:24:13    阅读次数:297
2E08-view-lists-Array(overlay)
介绍一个list滑动时通过一个text提示Array首字母位置的应用 /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file exce...
分类:其他好文   时间:2014-05-23 00:58:42    阅读次数:326
2E04-view-lists-slow-efficient-adapter
介绍自定一个的Adapter和list的监听 注意 1....
分类:其他好文   时间:2014-05-23 00:51:45    阅读次数:355
2F03-view-progress-indeterminate-in-title-bar
介绍在在title bar上显示indeterminate progress /* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file ...
分类:其他好文   时间:2014-05-23 00:31:27    阅读次数:352
2H03-view-radio-group-rating-bar
/* * Copyright (C) 2007 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * Yo...
分类:其他好文   时间:2014-05-23 00:30:50    阅读次数:415
2G03-view-radio-group
注意两点 1.通过android:checkedButton="@+id/lunch"而不是item中的 android:checked="true"设置的某人被选中状态 <RadioGroup android:layout_width="match_parent" android:layout_height="wrap_content" a...
分类:其他好文   时间:2014-05-23 00:04:35    阅读次数:344
0521.使用UIWebView加载来自NetWork、Project、Documents的html、javascript文件
话不多少,直接上代码,思路还是挺简单的。 UIWebView *webView = [[UIWebView alloc]initWithFrame:self.view.frame]; // HTML文件来自Project // 步骤:path - > url - > request with url - > loadRequest NSStrin...
分类:编程语言   时间:2014-05-22 23:53:05    阅读次数:442
Django 1.6 CBVs
Django 1.6 最佳实践: 如何正确使用 CBVs (Class-based views) Class-based views是Django为解决建站过程中的常见的呈现模式而建立的. 在这节中, 我们着重讲一下CBVs的使用技巧和一般原则. 1. CBVs的使用原则 代码越少越好永远不要重复代码View应当只包含呈现逻辑, 不应包括业务逻辑保持view逻辑清...
分类:其他好文   时间:2014-05-22 23:22:14    阅读次数:299
2E06-view-lists-separators
介绍通过方法 @Override public boolean areAllItemsEnabled() { return false; } @Override public boolean isEnabled(int position) { return !mStrings[position].startsWith("-"); } 设置list的可以选和不可选注意有...
分类:其他好文   时间:2014-05-22 23:08:09    阅读次数:388
UIImageView和UIButton
1> 使用场合* UIImageView: 如果仅仅是显示图片,不需要监听图片的点击* UIButton: 既要显示图片,又要监听图片的点击2> 相同:能显示图片3> 不同点* UIButton能处理点击事件, UIImageView不能处理点击事件* UIButton既能显示图片, 又能显示文字*...
分类:其他好文   时间:2014-05-22 16:02:38    阅读次数:198
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!