Permalink
Browse files

hide connect button after press

  • Loading branch information...
1 parent f5b8a34 commit 101c8e1bdf5453291bdd49f3c9309006e19a3ef8 @jonasb committed Apr 7, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/se/forskningsavd/MainActivity.java
@@ -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);

0 comments on commit 101c8e1

Please sign in to comment.