Loading, please wait ...
Open its course - Android Development

Fill in Blanks Questions for Android Events Handling

  • 1 Give the key app_name to the following string resource in string.xml file.
    <?xml version="1.0" encoding="utf-8"?>
    <resources>
       <string _____name="app_name">myapplication</string>
    </resources>
    
    View Answer

  • 2 Add 30dp text size for the text view below:
    <TextView
          android:id="@+id/textView1"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:text="Event Handling "
          android:layout_alignParentTop="true"
          android:layout_centerHorizontal="true"
          android:_____textSize="30dp" />
    
    View Answer

  • 3 You can check if the device is in touch mode by calling the View class’s _____isInTouchMode_____() method. View Answer

  • 4 For onClick() event, Its listener is _____OnClickListener()_____. View Answer

  • 5 When an event happens and we have registered an event listener for the event, the event listener calls the _____Event Handlers_____, which is the method that actually handles the event. View Answer

Contact Us

support@subexpert.com
Write to Us View Help
Subject Expert Logo

Subject Expert

Learn, Evaluate and Optimize

Follow Us
Facebook Switch Display Mode Enable Translation
© 2024 - Subject Expert