Update the following piece of code such that it displays a toast that shows the number of double-tap gestures that occur
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Update the following piece of code such that it displays a toast that shows the number of double-tap gestures that occur
Update the following piece of code such that it displays a toast that shows the number of double-tap gestures that occurred on the layout 'main_layout' so far. Note: You must provide the shortest possible code. import android.os.Bundle; import android.view.View; public class MainActivity extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.activity_main); View layout=findViewById(R.id.main_layout); }
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!