• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

AFormChange: 一个免费的、开源的、简易的、遵循Apache Licence 2.0开源协议发布,超 ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

AFormChange

开源软件地址:

https://gitee.com/quanke/AFormChange

开源软件介绍:

#AFormChange android表单值修改框架

AFormChange为库,可以直接导出jar包

AFormChangeDemo为演示,快速学习使用AFormChange为库

AValidations使用

1.下载zip或者克隆AFormChange项目

2.导入Eclipse,右键工程->preference->Android->library->Add,选择AFormChange工程加入后 apply应用

3.demo

    private TextView tvChange;    private EditText editText1;    private EditText editText2;    private Button button1;    private FormHandler formHandler;    @Override    protected void onCreate(Bundle savedInstanceState) {    super.onCreate(savedInstanceState);	setContentView(R.layout.activity_main);	tvChange = (TextView) findViewById(R.id.tv_change);	editText1 = (EditText) findViewById(R.id.editText1);	editText2 = (EditText) findViewById(R.id.editText2);	button1 = (Button) findViewById(R.id.button1);		formHandler = new FormHandler(ViewsUtil.getAllEditTexts(this));	//初始化数据和文本改变监听器,必须放在赋值之后	formHandler.initTextAndTextChangedListener();	button1.setOnClickListener(new OnClickListener() {	    @Override	    public void onClick(View v) {		if (formHandler.isTextChange()) {//isTextChange判断是否改变		    tvChange.setText("Change");		} else {		    tvChange.setText("Not Change");		}	    }	});    }

Copyright 2014 ken.cai (http://www.shangpuyun.com)

Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
ComActionBar: 自定义ActionBar,轻量级的自定义控件发布时间:2022-03-24
下一篇:
ZZNetwork: 封装AFNetworking 3.0网络请求发布时间:2022-03-24
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap