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

Is it reliable to take Western medicine while drinking Chinese medicine?

This is the 4648th article of Da Yi Xiao Hu When ...

Break down event planning and promotion in three steps!

Many times, when we organize a marketing campaign...

What do the HTTP status codes in website logs mean? What does it mean?

Friends who do website SEO optimization know that...

Summary of issues regarding live broadcast advertising

【Q1】 We are engaged in direct investment in funct...

How to open the "All Photos" permission in iOS 14

Apple has brought new privacy management features...

The formation of the next supercontinent may not be habitable for mammals

Although the Earth is a sphere, its surface is ma...

The evolution of programmer communication in the post-IT era

[[154418]] Every programmer wants to change the w...

Apple's Tim Cook: 2015 will be the year of Apple Pay

During Apple's first quarterly conference cal...

The lakes on the Qinghai-Tibet Plateau are quietly "expanding"

The Qinghai-Tibet Plateau is home to the world...