Permalink
Browse files

Tap to start fonctionne en appuyant sur le logo aussi

  • Loading branch information...
Simon Thibert
Simon Thibert committed May 11, 2012
1 parent 5767b34 commit 2c774afbe6ddcc72eed77d47f9131b6234d963de
Showing with 8 additions and 2 deletions.
  1. +2 −2 res/layout/main.xml
  2. +6 −0 src/com/mobilecityguide/MobileCityGuideActivity.java
View
@@ -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>
@@ -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) {
@@ -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.