private fun init(context: Context, theme: RuqusTheme, currClassName: String) { currClassName = currClassName inflate(context, R.layout.sort_field_view, this) setOrientation(VERTICAL) label = findViewById(R.id.sort_field_label) as TextView? sortFieldChooser = findViewById(R.id.sort_field) as Spinner removeButton = findViewById(R.id.remove_field) as ImageButton sortDirRg = findViewById(R.id.rg_sort_dir) as RadioGroup ascRb = findViewById(R.id.asc) as RadioButton descRb = findViewById(R.id.desc) as RadioButton setTheme(theme) sortFieldChooser.setOnTouchListener(sortFieldChooserListener) sortFieldChooser.setOnItemSelectedListener(sortFieldChooserListener) }
Initialize our view .