Friday, November 25, 2011

[android-developers] Re: Textview Issue?

When case is 2, it is not showing TextView but when it is case1, it is showing image properly. The question here is how to show textview on the other fragment when clicked on the list on the other link.

On Fri, Nov 25, 2011 at 10:38 PM, Navindian <navindian@gmail.com> wrote:
PFA screenshot.
 
On Click of a link, I am able to show the image.
I wish to show the text instead.
 
 

switch(magznumber){

case 1:

i.setImageResource(R.drawable.

efymag);

break;

case 2:

textViewObject.setText("text");

break;

}

Please comment by looking at the above code. case 2 is not showing the text. The following link will help you understanding.
 
 
 
Thanks
navind

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment