Skip to content

Commit

Permalink
Tap to start fonctionne en appuyant sur le logo aussi
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Thibert committed May 11, 2012
1 parent 5767b34 commit 2c774af
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions res/layout/main.xml
Expand Up @@ -18,8 +18,8 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="30dp"
android:layout_marginTop="10dp"
android:text="@string/splash_screen_text"
android:textAppearance="?android:attr/textAppearanceMedium" />
android:textAppearance="?android:attr/textAppearanceLarge" />

</LinearLayout>
6 changes: 6 additions & 0 deletions src/com/mobilecityguide/MobileCityGuideActivity.java
Expand Up @@ -36,6 +36,8 @@ public void onCreate(Bundle savedInstanceState) {
private void setListeners() {
View enterButton = findViewById(R.id.contentLayout);
enterButton.setOnClickListener(this);
View logoButton = findViewById(R.id.logo);
logoButton.setOnClickListener(this);
}

public void onClick(View v) {
Expand All @@ -45,6 +47,10 @@ public void onClick(View v) {
intent = new Intent(this, Connect.class);
startActivity(intent);
break;
case R.id.logo:
intent = new Intent(this, Connect.class);
startActivity(intent);
break;
}
}
}

0 comments on commit 2c774af

Please sign in to comment.