repeat layout same in kotlin by pressing layout in kotlin code example Example: kotlin repeat n times repeat(repetitions) { // Do something }