Код: Выделить всё
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?
) = inflater.inflate(
when (ussdType) {
UssdType.USSD_TYPE -> R.layout.fragment_transaction
else -> R.layout.fragment_balance
}, container, false
)
Код: Выделить всё
override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
continue_button.setOnClickListener { onContinueAction(it) }
}
Подробнее здесь: https://stackoverflow.com/questions/653 ... le-layouts
Мобильная версия