AFormChange v1.0, Android form value modification framework

AFormChange v1.0, Android form value modification framework

AFormChange is a free, open source, simple framework for processing Android form data changes, released under the Apache Licence 2.0 open source protocol, and is super easy to extend.
AFormChange android form value modification framework

AFormChange is a library, and you can directly export the jar package

AFormChangeDemo is a demonstration to quickly learn how to use AFormChange as a library

AValidations Use

1. Download the zip or clone the AFormChange project

2. Import into Eclipse, right click on the project->preference->Android->library->Add, select AFormChange project and add it, then apply the application

3.demo

  1. private TextView tvChange;
  2. private EditText editText1;
  3. private EditText editText2;
  4.  
  5. private Button button1;
  6.  
  7. private FormHandler formHandler;
  8.  
  9. @Override  
  10. protected   void onCreate(Bundle savedInstanceState) {
  11. super .onCreate(savedInstanceState);
  12. setContentView(R.layout.activity_main);
  13.  
  14. tvChange = (TextView) findViewById(R.id.tv_change);
  15. editText1 = (EditText) findViewById(R.id.editText1);
  16. editText2 = (EditText) findViewById(R.id.editText2);
  17. button1 = (Button) findViewById(R.id.button1);
  18.  
  19. formHandler = new FormHandler(ViewsUtil.getAllEditTexts( this ));
  20. //Initialize data and text change listeners, must be placed after assignment  
  21. formHandler.initTextAndTextChangedListener();
  22.  
  23. button1.setOnClickListener( new OnClickListener() {
  24.  
  25. @Override  
  26. public   void onClick(View v) {
  27. if (formHandler.isTextChange()) { //isTextChange determines whether it has changed  
  28. tvChange.setText( "Change" );
  29. } else {
  30. tvChange.setText( "Not Change" );
  31. }
  32. }
  33. });
  34.  
  35. }

<<:  Focusing on heart age, the world's first healthy heart watch UME Watch was launched in Beijing

>>:  UltimateAndroid 0.7.0 released, split UI module

Recommend

Google's 20 rules for developers

[[133902]] For developers, everyone hopes that th...

up to date! Baidu information flow product manual!

This article shares with you the latest "Bai...

What methods do internet celebrities like Papi Jiang use for live streaming?

Live streaming has gradually evolved from an earl...

China Electronics Society: 2021 China Robotics Industry Development Report

The report shows that even though the scale of Ch...

How to contribute to the ASO optimization of your own app through comments?

ASO optimization mainly involves conventional mea...

Mobile product operation: 9 factors affecting ASO optimization

An app with a good ranking in search engines can ...

Analysis of Toutiao’s recommendation mechanism!

Preface If there is any company in China's cu...

Four challenges you must consider when developing IoT devices

Introduction The Internet of Things is a buzzword...

Advertising placement: An optimizer’s guide to avoiding pitfalls!

Working in the optimization industry, I deal with...

Who created the largest cycle on Earth? It's right next to you!

In recent years, "carbon neutrality" an...

Does the death of Qvod P2P have anything to do with porn trafficking?

This week, Kuaibo, which was supposed to be compl...