Question: Consider the following figure: A: LinearLayout (vertical) B: TextView C: LinearLayout (horizontal) D: LinearLayout (horizontal) E: Linearlayout (horizontal) F: Button 1. Answer the following: Note:

 Consider the following figure: A: LinearLayout (vertical) B: TextView C: LinearLayout

(horizontal) D: LinearLayout (horizontal) E: Linearlayout (horizontal) F: Button 1. Answer the

Consider the following figure: A: LinearLayout (vertical) B: TextView C: LinearLayout (horizontal) D: LinearLayout (horizontal) E: Linearlayout (horizontal) F: Button 1. Answer the following: Note: Student's answer shall able to show the exact match as figure above. a) Write the XML code for A. b) Write the XML code for B. c) Write the XML code for C. d) Write the XML code for D. e) Write the XML code for E. f) Write the XML code for F g) Construct the hierarchical layout of views (only views, No attributes) h) Create a string resources, and add ALL possibilities string i) In your opinion, does all widgets above needs resource ID? Is there possibility some widgets were created without a resource ID? Explain your answer. 2. When a project is created, A Mainzctivity.kt is developed. Answer the following: a) Write a declaration for widgets in C b) Write the Activity.findViewById(int), for answer in question (a). c) Write the listener for widgets in C, and produce a toast. 3. Writing a kotlin code for widgets C,D and E, you will see a repetition action. Using your knowledge in programming, what would you suggest to reduce this redundancy

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!