Back to project page sres.
The source code is released under:
Apache License
If you think the Android project sres listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package me.tatarka.sres.sample; /* www.j a v a2s.c o m*/ import android.app.Activity; import android.os.Bundle; import android.view.View; /** * Created by evan on 3/1/14. */ public class MainActivity extends Activity { private static MyModel model = new MyModel(); @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main_activity); final layout.MainActivity view = (layout.MainActivity) findViewById(R.id.content); view.myButton.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { model.addItem("Net Item"); model.toggle(); } }); view.bind(model); } }