Last active
September 13, 2016 02:56
-
-
Save Kozlov-V/6129942 to your computer and use it in GitHub Desktop.
Android Button
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Demo extends Activity { | |
private View.OnClickListener curlPostListener; | |
private Button curlPost; | |
/** Called when the activity is first created. */ | |
@Override | |
public void onCreate(Bundle savedInstanceState) { | |
super.onCreate(savedInstanceState); | |
setContentView(R.layout.main); | |
InitializeApp(); | |
} | |
private void InitializeApp() { | |
curlPost = (Button) findViewById(R.id.button); | |
curlPostListener = new View.OnClickListener() { | |
public void onClick(View v) { | |
} | |
}; | |
curlPost.setOnClickListener(curlPostListener); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment