-
Android实现按回车确认键显示其它输入框的EditText
Android实现按回车确认键显示其它输入框的EditText,在正常状态下,其它部分的EditText是灰色的,当按下回车键后,高亮显示进入输入状态,相关代码可参考如下代码:
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
editTexts[0] = (EditText) findViewById(R.id.edittext1);
editTexts[1] = (EditText) findViewById(R.id.edittext2);
editTexts[2] = (EditText) findViewById(R.id.edittext3);
for (int i = 0; i < editTexts.length; i++)
editTexts[i].setOnKeyListener(this);
buttons[0] = (Button) findViewById(R.id.button1);
buttons[1] = (Button) findViewById(R.id.button2);
buttons[2] = (Button) findViewById(R.id.button3);
}
- 2022-03-26 11:46:37下载
- 积分:1
-
视频拍摄压缩
视频拍摄,H264编码压缩,只是一个demo,具体功能请自行添加
- 2014-03-27下载
- 积分:1
-
高仿京东商城
高仿京东商城
高仿京东商城,希望对你有帮助
高仿京东商城,希望对你有帮助
- 2022-01-25 22:38:42下载
- 积分:1
-
视屏录制demo,可以支持usb
android-eye
===========
Change your android phone to a surveillance security camera.
## Download ##
You can download binrary from Google Play:
https://play.google.com/store/apps/details?id=teaonly.droideye
## Specifications ##
* Streaming
* Build-in web service, you can see the video via browser in pc and another phone, a modem browser with HTML5 is reauired.
* H.264 video and G.726 audio
* Streaming via websocket between browser and android phone.
* Decoding H.264 and G.726 in pure Javascript
* Smart
* Support motion detecting (doing)
* Support advanced vision algorithms (doing)
* Publishing alarm messages to SNS (not ready)
* Access over internet
* This app don"t support internet, you can try my another ap
- 2022-11-06 02:50:03下载
- 积分:1
-
平衡车
#include //定义支持库文件
AF_Stepper motor(48, 2); //定义步进电机对象,2号步进电机步数值是48
void setup() {
Serial.begin(9600); // 设置串行数率在 9600 bps
Serial.println("Stepper test!");
motor.setSpeed(10); // 电机每分钟要转动10步
motor.step(100, FORWARD, SINGLE); //电机向前单相励磁方式转动100步
motor.release();
delay(1000);
}
void loop()
{
motor.step(100, FORWARD, SINGLE);
motor.step(100, BACKWARD, SINGLE);
motor.step(100, FORWARD, DOUBLE);
- 2022-07-17 20:05:53下载
- 积分:1
-
game-engin
java平台上一些专门为android编写的游戏引擎代码,非常适合新手练习!简单易懂,代码可读性强!(some of the java platform written specifically for android game engine code, very suitable for novices to practice! Easy to understand, code readability!)
- 2014-01-13 23:04:50下载
- 积分:1
-
安卓手机通过蓝牙控制单片机小车
本套源码是利用手机的蓝牙,利用Socket套接字,分别将控制小车前进(go)、后退(back)、左转(left)、右转(right)、停止(stop)等字符串通过蓝牙发给串口。然后再单片机端,用一个蓝牙模块接收手机发来的数据通过51的串口发送给单片机,进而驱动小车的运动!
- 2022-03-21 06:45:55下载
- 积分:1
-
Android PopupWindow弹出式信息窗口用法示例
Android PopupWindow弹窗示例,今天的这个弹窗比较单一,比较基础,如果你是Android开发新手的话,那就更好了,非常适合新手朋友学习Android UI中的PopupWindow。
这个实例运行后,在窗体中显示一个小按钮,单击按钮后,将弹出一个图片信息窗口,可关闭这个窗口,是最简单的Android PopupWindow应用了,最终的效果请参见截图所示。
- 2022-03-09 18:51:45下载
- 积分:1
-
功能测试参考代码
@Override
public void onItemClick(AdapterView parent, View view, int position, long id) {
// TODO Auto-generated method stub
Toast.makeText(getApplicationContext(), itemName.get(position), Toast.LENGTH_SHORT).show();
isAllTest = false;
switch (position) {
case 0:
startCorrelationActivity(TouchEdgeActivity.class);
break;
case 1:
startCorrelationActivity(ScreenActivity.class);
break;
case 2:
startCorrelationActivity(SpeekActivity.class);
break;
case 3:
startCorrelationActivity(WifiActivity.class);
break;
case 4:
startCorrelationActivity(WifiProbeActivity.class);
brea
- 2022-01-22 15:12:48下载
- 积分:1
-
android图像识别OCR
简单的图像识别技术,android实现,通过检测暗、亮的模式确定其形状,然后用字符识别方法将形状翻译成计算机文字的过程;即,针对印刷体字符,采用光学的方式将纸质文档中的文字转换成为黑白点阵的图像文件,并通过识别软件将图像中的文字转换成文本格式,供文字处理软件进一步编辑加工的技术
- 2022-05-26 23:58:49下载
- 积分:1