0

I'm beginner to Android Studio and was wondering in general should each layout page of your app have a class associated with it? Or can you have a single class controlling multiple layouts?

Thanks in advance

1 Answers1

0

When you make a layout with widgets or components you will need to link it to a class to use them. So to use any layout yes you need to attach a class to it, but you don't necessarily need a new class for every layout. You can have one class use multiple layouts. But not simultaneously.

Example

Community
  • 1
  • 1
Mnai
  • 407
  • 3
  • 8