Nop, there is no difference,
Both are same it is simple java concept.
- in first way you are giving name of object of TextView and second way you
are making anonymous object.
otherwise every thing is same.
Regards
Imran ali
On Monday, May 28, 2012 11:15:27 AM UTC+5:30, Jovish P wrote:
>
> I just want to know any difference is there in the following methods
> like memory allocation , performance issues
>
>
> TextView txtView = (TextView)findViewById(R.id. username);
> txtView.setText("Method 1");
>
> ((TextView)
> findViewById(R.id.priority_rel_layout)).setText(priorityList[i]);
>
> Regards,
> Jovish
>
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en