Skip to content

Aditya0452/Onclick-TextView

Repository files navigation

OnClick View

This application describes about Onclick-TextView application using Android Studio.

🟢🟡🔴

Files

  • main_activity.xml - about Designing layout
  • MainActivity.java - about Java code makes functional Onclick Listeners. These two are main files to apply layout designings and functions.

    main_activity.xml

Layout

  • inserting two TextViews as OnClick View text and Hi 👋🙂 User !! text
  • inserting three EditTexts to enter Name,Roll.No,Branch.
  • inserting a TextView that shows all content that entered above EditTexts.
  • that entered Texts appears below the Click here button as one set of content
  • Inserting a button
    • Click here it directs to view the Text's entered in java code.

    MainActivity.java

  • importing library and required files
  • assigning defined ID's to Variables to use in methods
  • Setting main activity content to view
  • call methods (on Click,Edit Texts,Text Views,..)
  • Writing... logic to the methods.

🟢🟡🔴

Output

Screenshot 2023-12-14 210709