0

How to address views inside a fragment?

view story
linux-howto

http://stackoverflow.com – I'm sorry for my ambigous question title. I'll try to clarify my issue. I've tried running this code to populate my spinner: public void UcitajPromenljive(int id) { if(id==0) { //#SPISAK } if(id==1) { //#PRETRAGA try { Spinner oblasti = (Spinner) findViewById(R.id.spinnerOblasti); ArrayAdapter<CharSequence> adapter = ArrayAdapter.createFromResource(this,R.array.oblasti, android.R.layout.simple_spinner_item); adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); o (HowTos)