Android Java more than 1 return statement -
this question has answer here:
- how return multiple values? [duplicate] 4 answers
i got inside method
view android = inflater.inflate(r.layout.asd_frag, container, false); ((textview) android.findviewbyid(r.id.textviewasd01)).settext("asd"); return android; view android02 = inflater.inflate(r.layout.asd02_frag, container, false); ((textview) android.findviewbyid(r.id.textviewasd02)).settext("asd02"); return android02;
so problem cannot return 2 return statements inside method, know trick make happen.
create custom object contain 2 values or use pair.create(a, b)
Comments
Post a Comment