Skip to content

Commit

Permalink
hide connect button after press
Browse files Browse the repository at this point in the history
  • Loading branch information
jonasb committed Apr 7, 2012
1 parent f5b8a34 commit 101c8e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/se/forskningsavd/MainActivity.java
Expand Up @@ -30,11 +30,12 @@ public void onTargetImageChanged(Bitmap bitmap) {
LinearLayout layout = new LinearLayout(this);
layout.setOrientation(LinearLayout.VERTICAL);

Button button = new Button(this);
final Button button = new Button(this);
button.setText("Connect");
button.setOnClickListener(new View.OnClickListener() {
public void onClick(View view) {
mCommunicator.connect();
button.setVisibility(View.GONE);
}
});
layout.addView(button);
Expand Down

0 comments on commit 101c8e1

Please sign in to comment.