Back to project page MagicViews.
The source code is released under:
Apache License
If you think the Android project MagicViews 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 com.ivankocijan.TestApp.activites; // w w w .ja v a 2 s. c o m import android.app.Activity; import android.content.Intent; import android.os.Bundle; import com.ivankocijan.TestApp.R; import com.ivankocijan.magicviews.views.MagicButton; import butterknife.ButterKnife; import butterknife.InjectView; import butterknife.OnClick; public class MainActivity extends Activity { @InjectView(R.id.preference_example) MagicButton preferenceExample; @Override protected void onCreate (Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); ButterKnife.inject(this); } @OnClick(R.id.preference_example) protected void goToPrefs () { startActivity(new Intent(MainActivity.this, PreferenceExampleActivity.class)); } }