- 浏览: 541890 次
- 性别:
- 来自: 深圳
-
文章分类
- 全部博客 (95)
- Android——Adapter相关 (1)
- Android——Button相关 (3)
- Android——技术细节 (21)
- Android——ListView之listSelector (1)
- Android——标题栏相关 (1)
- Android——ListView相关 (4)
- Android——入门 (1)
- Android——系统资源挖掘 (1)
- Android——Filter相关 (2)
- Android——布局属性介绍 (2)
- Android——清单manifest.xml (1)
- Android——正则表达式 (3)
- Android——TabHost (1)
- Android——线程(Thread+Handler) (2)
- Android——文件操作 (2)
- 宿松人在天涯 (2)
- Android——Activity及其特效 (4)
- Android——网络相关 (2)
- Android——图形图像基础 (1)
- Android源码编译 (6)
- Java基础 (9)
- Linux基础 (6)
- Andorid------Launcher开发相关 (1)
- Android——View相关 (9)
- Andorid——Context相关 (1)
- Android——Package相关 (2)
- Android——自定义属性类似于(android:...) (0)
- Andorid------手势识别 (1)
- Android——网络 (1)
- Linux Samba (1)
- ubuntu (1)
- 代码管理工具 (1)
最新评论
-
hongbingfans:
4楼正解;
毫秒转换成时分秒 格式:HH:mm:ss Java实现 -
贫僧法号虚脱:
今天刚好需要这个效果,非常感谢!
Android--去除EditText边框,添加下划线, -
814687491:
不错!学习了!
Android--ListView 分割线 -
ivanf8e62:
lan恰 写道怎么感觉这个跟android没半毛钱关系的呢?C ...
Android——padding/margin详解(转载) -
TienYow:
学习了,但怎么设置单向边框呢?比如下边框,上边框!
Android--为TextView添加边框
InputType的参数:
用法:((EditText)findViewById(R.id.edit)).setInputType(InputType.*);
int TYPE_CLASS_DATETIME Class for dates and times. int TYPE_CLASS_NUMBER Class for numeric text. int TYPE_CLASS_PHONE Class for a phone number. int TYPE_CLASS_TEXT Class for normal text. int TYPE_DATETIME_VARIATION_DATE Default variation of TYPE_CLASS_DATETIME: allows entering only a date. int TYPE_DATETIME_VARIATION_NORMAL Default variation of TYPE_CLASS_DATETIME: allows entering both a date and time. int TYPE_DATETIME_VARIATION_TIME Default variation of TYPE_CLASS_DATETIME: allows entering only a time. int TYPE_MASK_CLASS Mask of bits that determine the overall class of text being given. int TYPE_MASK_FLAGS Mask of bits that provide addition bit flags of options. int TYPE_MASK_VARIATION Mask of bits that determine the variation of the base content class. int TYPE_NULL Special content type for when no explicit(明确的) type has been specified. int TYPE_NUMBER_FLAG_DECIMAL Flag of TYPE_CLASS_NUMBER: the number is decimal, allowing a decimal point to provide fractional values. int TYPE_NUMBER_FLAG_SIGNED Flag of TYPE_CLASS_NUMBER: the number is signed, allowing a positive or negative sign at the start. int TYPE_TEXT_FLAG_AUTO_COMPLETE Flag for TYPE_CLASS_TEXT: the text editor is performing auto-completion of the text being entered based on its own semantics, which it will present to the user as they type. int TYPE_TEXT_FLAG_AUTO_CORRECT Flag for TYPE_CLASS_TEXT: the user is entering free-form text that should have auto-correction applied to it. int TYPE_TEXT_FLAG_CAP_CHARACTERS Flag for TYPE_CLASS_TEXT: capitalize all characters. int TYPE_TEXT_FLAG_CAP_SENTENCES Flag for TYPE_CLASS_TEXT: capitalize first character of each sentence. int TYPE_TEXT_FLAG_CAP_WORDS Flag for TYPE_CLASS_TEXT: capitalize first character of all words. int TYPE_TEXT_FLAG_IME_MULTI_LINE Flag for TYPE_CLASS_TEXT: the regular text view associated with this should not be multi-line, but when a fullscreen input method is providing text it should use multiple lines if it can. int TYPE_TEXT_FLAG_MULTI_LINE Flag for TYPE_CLASS_TEXT: multiple lines of text can be entered into the field. int TYPE_TEXT_FLAG_NO_SUGGESTIONS Flag for TYPE_CLASS_TEXT: the input method does not need to display any dictionary-based candidates. int TYPE_TEXT_VARIATION_EMAIL_ADDRESS Variation of TYPE_CLASS_TEXT: entering an e-mail address. int TYPE_TEXT_VARIATION_EMAIL_SUBJECT Variation of TYPE_CLASS_TEXT: entering the subject line of an e-mail. int TYPE_TEXT_VARIATION_FILTER Variation of TYPE_CLASS_TEXT: entering text to filter contents of a list etc. int TYPE_TEXT_VARIATION_LONG_MESSAGE Variation of TYPE_CLASS_TEXT: entering the content of a long, possibly formal message such as the body of an e-mail. int TYPE_TEXT_VARIATION_NORMAL Default variation of TYPE_CLASS_TEXT: plain old normal text. int TYPE_TEXT_VARIATION_PASSWORD Variation of TYPE_CLASS_TEXT: entering a password. int TYPE_TEXT_VARIATION_PERSON_NAME Variation of TYPE_CLASS_TEXT: entering the name of a person. int TYPE_TEXT_VARIATION_PHONETIC Variation of TYPE_CLASS_TEXT: entering text for phonetic pronunciation, such as a phonetic name field in contacts. int TYPE_TEXT_VARIATION_POSTAL_ADDRESS Variation of TYPE_CLASS_TEXT: entering a postal mailing address. int TYPE_TEXT_VARIATION_SHORT_MESSAGE Variation of TYPE_CLASS_TEXT: entering a short, possibly informal message such as an instant message or a text message. int TYPE_TEXT_VARIATION_URI Variation of TYPE_CLASS_TEXT: entering a URI. int TYPE_TEXT_VARIATION_VISIBLE_PASSWORD Variation of TYPE_CLASS_TEXT: entering a password, which should be visible to the user. int TYPE_TEXT_VARIATION_WEB_EDIT_TEXT Variation of TYPE_CLASS_TEXT: entering text inside of a web form.EditText et = (EditText) findViewById(R.id.et); et.setInputType(InputType.TYPE_CLASS_NUMBER); TYPE_CLASS_DATETIME Class for dates and times. int TYPE_CLASS_NUMBER Class for numeric text. int TYPE_CLASS_PHONE Class for a phone number. int TYPE_CLASS_TEXT Class for normal text. int TYPE_DATETIME_VARIATION_DATE Default variation of TYPE_CLASS_DATETIME: allows entering only a date. int TYPE_DATETIME_VARIATION_NORMAL Default variation of TYPE_CLASS_DATETIME: allows entering both a date and time. int TYPE_DATETIME_VARIATION_TIME Default variation of TYPE_CLASS_DATETIME: allows entering only a time. int TYPE_MASK_CLASS Mask of bits that determine the overall class of text being given. int TYPE_MASK_FLAGS Mask of bits that provide addition bit flags of options. int TYPE_MASK_VARIATION Mask of bits that determine the variation of the base content class. int TYPE_NULL Special content type for when no explicit type has been specified. int TYPE_NUMBER_FLAG_DECIMAL Flag of TYPE_CLASS_NUMBER: the number is decimal, allowing a decimal point to provide fractional values. int TYPE_NUMBER_FLAG_SIGNED Flag of TYPE_CLASS_NUMBER: the number is signed, allowing a positive or negative sign at the start. int TYPE_TEXT_FLAG_AUTO_COMPLETE Flag for TYPE_CLASS_TEXT: the text editor is performing auto-completion of the text being entered based on its own semantics, which it will present to the user as they type. int TYPE_TEXT_FLAG_AUTO_CORRECT Flag for TYPE_CLASS_TEXT: the user is entering free-form text that should have auto-correction applied to it. int TYPE_TEXT_FLAG_CAP_CHARACTERS Flag for TYPE_CLASS_TEXT: capitalize all characters. int TYPE_TEXT_FLAG_CAP_SENTENCES Flag for TYPE_CLASS_TEXT: capitalize first character of each sentence. int TYPE_TEXT_FLAG_CAP_WORDS Flag for TYPE_CLASS_TEXT: capitalize first character of all words. int TYPE_TEXT_FLAG_IME_MULTI_LINE Flag for TYPE_CLASS_TEXT: the regular text view associated with this should not be multi-line, but when a fullscreen input method is providing text it should use multiple lines if it can. int TYPE_TEXT_FLAG_MULTI_LINE Flag for TYPE_CLASS_TEXT: multiple lines of text can be entered into the field. int TYPE_TEXT_FLAG_NO_SUGGESTIONS Flag for TYPE_CLASS_TEXT: the input method does not need to display any dictionary-based candidates. int TYPE_TEXT_VARIATION_EMAIL_ADDRESS Variation of TYPE_CLASS_TEXT: entering an e-mail address. int TYPE_TEXT_VARIATION_EMAIL_SUBJECT Variation of TYPE_CLASS_TEXT: entering the subject line of an e-mail. int TYPE_TEXT_VARIATION_FILTER Variation of TYPE_CLASS_TEXT: entering text to filter contents of a list etc. int TYPE_TEXT_VARIATION_LONG_MESSAGE Variation of TYPE_CLASS_TEXT: entering the content of a long, possibly formal message such as the body of an e-mail. int TYPE_TEXT_VARIATION_NORMAL Default variation of TYPE_CLASS_TEXT: plain old normal text. int TYPE_TEXT_VARIATION_PASSWORD Variation of TYPE_CLASS_TEXT: entering a password. int TYPE_TEXT_VARIATION_PERSON_NAME Variation of TYPE_CLASS_TEXT: entering the name of a person. int TYPE_TEXT_VARIATION_PHONETIC Variation of TYPE_CLASS_TEXT: entering text for phonetic pronunciation, such as a phonetic name field in contacts. int TYPE_TEXT_VARIATION_POSTAL_ADDRESS Variation of TYPE_CLASS_TEXT: entering a postal mailing address. int TYPE_TEXT_VARIATION_SHORT_MESSAGE Variation of TYPE_CLASS_TEXT: entering a short, possibly informal message such as an instant message or a text message. int TYPE_TEXT_VARIATION_URI Variation of TYPE_CLASS_TEXT: entering a URI. int TYPE_TEXT_VARIATION_VISIBLE_PASSWORD Variation of TYPE_CLASS_TEXT: entering a password, which should be visible to the user. int TYPE_TEXT_VARIATION_WEB_EDIT_TEXT Variation of TYPE_CLASS_TEXT: entering text inside of a web form.
发表评论
-
Android 添加系统设置属性
2011-11-09 11:01 5777有时候我们需要一个满足下面条件的属性值: 1. 整个andr ... -
Java实现: 正则表达式消除空行
2011-01-11 18:57 2550string.replaceAll("(\n|\r\ ... -
Android 各种音量的获取和设置
2011-01-10 11:51 5638Android 各种音量的获取和设置 (2010-09 ... -
Android——添加屏幕待机选项
2010-12-28 20:54 2297如题,在“屏幕待机”弹出菜单里添加“1个小时”选项。 只要修 ... -
Android——禁止设备休眠
2010-12-28 16:25 3842实现这一功能的方法有两种,一种是在Manifest.xml文件 ... -
Android——Intent动作汇总(转)
2010-12-10 21:26 1745String ADD_SHORTCUT_ACTION 动作:在 ... -
Android—— Android 的属性系统(转载)
2010-12-07 15:11 1491每个属性都有一个名称和值,他们都是字符串格式。属性被大 ... -
Android——点击对话框上按钮不关闭对话框
2010-12-04 13:57 4975有时候我没可能需要在点击按钮进行一些检测,但是并不想关闭 ... -
Android— Eclipse运行Emulator时提示权限不够解决方案(ubuntu 10.10)
2010-12-03 14:28 2919NAND: could not create te ... -
Android ——真机调试
2010-11-30 10:25 27141. 设置android手机为USB调试模式。步骤: me ... -
Android——全屏显示的两种方式
2010-11-19 15:58 1520A、设置主题实现全屏直接在AndroidManifest.xm ... -
Android-----获取屏幕尺寸
2010-11-18 12:44 1602DisplayMetrics dm = new Displ ... -
Android——字符高亮显示(转载)
2010-10-21 17:52 3215String str="adsjoiasdjpais ... -
Android——截屏技术
2010-10-21 17:46 1916view.setDrawingCacheEnabled(tru ... -
Android——禁止转屏
2010-10-19 17:41 2093android:screenOrientation=" ... -
Android——转屏时禁止调用onCreate()(转载)
2010-10-19 17:26 4827屏幕自动横竖旋转时,每次都会重新调用onCreate,然后如果 ... -
Android-----完全隐藏软键盘
2010-10-14 14:43 2731隐藏软键盘一直是我头痛的事情,没有找到一种真正能隐藏的方法。点 ... -
往Android模拟器中“插入”SD卡(转载)
2010-10-13 09:00 3844使用Win+R、在弹出的框中输入CMD、然后那个黑色框框就会自 ... -
Android--全局变量 很好很强大
2010-09-30 15:39 13383As you know, each Activity i ... -
Android中 单位 介绍
2010-09-26 11:19 1477看到有很多网友不太理解dp、sp和px的区别:现在这里介绍一下 ...
相关推荐
最后,将虚拟机的光驱设置为我们刚才下载的 Android-x86 iso。 step 3:安装 Android-x86 到虚拟机 启动虚拟机后,可以看到安装界面,选择 Installation - Install Android-x86 to harddisk,然后选择 Create/...
Android-Prefix-Input 为EditText添加prefix 前缀模式
StickTextView Android图片文字贴纸功能 可以设置自定义背景,自定义设置文字的位置,可以限制文字字数,可以设置单行多行模式
android-羽毛笔 适用于 Android 平板电脑的手写笔记应用... “仅限笔”模式(可选)在书写时禁用触摸输入。 Android 3.x 硬件加速图形。 开源 (GPL),因此您的笔记不会卡在不透明的文件格式中。 PDF 导出(保存到 SD
Android N 多窗口支持 大纲 开发文档 多窗口模式 分屏模式 自由形状模式 功能简介 禁用多窗口模式 多窗口变更通知和查询 在多窗口模式中启动新 Activity 为多窗口模式准备的布局属性 支持拖放 参考 开发...
安卓x86安装到windows平板或台式电脑笔记本等设备后,显示wifi已连接,不能连接互联网。...在控制台下方输入框里输入adb命令。 不同x86版本命令不同,我的平板用的安卓x86 8.1 32位版本。测试成功。
Android Android Android Android 盈利模式 Android 的 App Market 模式,软件开发者获得 7 成收入, 3 成用于系统维护。难点在于位置营销。 设备商通过卖设备、内置特色应用来获得盈利。也可以兼职专业软件开发者...
2、服务器端工作流程 (1)创建服务器端套接字并绑定到一个端口上 (2)套接字设置监听模式等待连接请求 (3)接受连接请求后进行通信 (4)返回,等待赢一个连接请求 3、客户端工作流程 (1)创建客户端套接字(指定服务器...
MVP 模式(Model-View-Presenter)可以说是 MVC 模式(Model-View-Controller)在 Android 开发上的一种变种、进化模式。 在 MVC 模式中,Activity 应该是属于 View 这一层。而实质上,它既承担了 View,同时也包含...
Java项目:在Android中使用Model-View-Intent(MVI)架构模式下对Kotlin协程的性能分析 概述:本文通过对Kotlin协程的性能分析,比较了在Android中使用Model-View-Intent(MVI)架构模式下Kotlin协程和RxJava ...
android平台工厂测试模式代码,主要用于输入指令测试平台硬件。
微客工作室安卓开发组 > 本仓库用于存放安卓开发过程中积累总结的项目开发规范、常用...android中的框架设计模式 MVP模式 优秀开源项目推荐 Android 开源项目分类汇总 AnimeTaste -- 优秀开源app progit中文版教程 gi
2.键盘输入模式: 向电脑发送文字(中英) 回车 退格 以及DOS下的输入 电脑方向键的控制 WSAD模式 和 UP DOWN LEFT RIGHT 音量键可根据用户需求自定义设置功能 3.手柄控制模式: 横屏下 左边为控制方向 右边为操作 ...
Android-MVP_设计模式Model-View-Presenter(MVP)是Model-View-Controller(MVC)模式的一种变体,但专门针对页面事件模型。 MVP模式Model-View-Presenter(MVP)是Model-View-Controller(MVC)模式的一种变体,但...
操作方式:输入文本框设置线程数 点击第一个按钮请求10个地址信息 点击第二个按钮中断10个地址信息 1:判断当前网络环境 2:编写了3套方案 Old_GridViewActivity 简单线程回调 AsyncTask_GridViewActivity 使用...
支持根据分辨率自动缩放显示,支持原始大小显示及四分之一大小显示等四种缩放模式,支持屏幕自动旋转。 支持实时保存Android桌面到BMP文件、PNG文件和系统剪贴板(Clipboard)。 支持局域网内的自动侦测与连接,无需...
室内-搜索-救援-使用-Android-应用程序使用 Android 应用程序进行室内搜救代码流 应用程序启动(启动画面) ModeSelector 活动开始 { 允许用户在文本字段中输入 IP 地址。 当“Go”按钮被按下时:与意图捆绑的 ...
android全屏模式下计算键盘的大小.rar,太多无法一一验证是否可用,程序如果跑不起来需要自调,部分代码功能进行参考学习。
CS-478 ---用于移动平台的软件开发-Android- 项目1 (活动,意图,GUI,用户输入和交互) 创建一个简单的项目来了解激活性,意图和用户与应用程序的交互。 该应用程序有两个活动。 单击第一个活动上的按钮后,会将...
Unity实现内嵌网页插件,支持3d模式 包含2个插件, 3D_WebView_For_iOS_Android4.2.2和3D_WebView_For_Mac_Windows4.2