This shows you the differences between two versions of the page.
dapm:laboratoare:02_2 [2021/03/28 12:44] ioana_maria.culic [Interacting with the interface] |
dapm:laboratoare:02_2 [2021/03/28 12:51] (current) ioana_maria.culic [Exercices] |
||
---|---|---|---|
Line 74: | Line 74: | ||
i.setImageResource(R.drawable.image); | i.setImageResource(R.drawable.image); | ||
</code> | </code> | ||
+ | |||
+ | =====Exercices===== | ||
+ | - Create an application that displays 3 gray buttons, one next to the other, each having one centered text representing one color: Red, Green, Blue. | ||
+ | - Under the 3 buttons place the text ''Gray'' and when one of the buttons is clicked, change the text to the color written on the pressed button. | ||
+ | - Change the application behavior so when one of the buttons is pressed, it also changes the color according to the text written on it. | ||
+ | - Create a new application that contains a form for a student that needs to register for an extra-curricular course. The student needs to insert the following information: Name, Birthdate, Faculty, Name of the course to enroll in. When a submit button is pressed, all the information will be displayed using a ''Toast''. | ||
+ | **BONUS** | ||
+ | - Change the form so the student can choose the course from a ''Spinner''. |