>
> below solution will fetch data from SharedPrefrence and will
> coloured(below instead of changing colour am putting background image) the
> Required Table Row as per the requirement
>
> try
> {
> String[] color=getFromPrefs();//you can use your own logic
>  TableRow ActiveItem = (TableRow) convertView.findViewById(R.id.tbldata);
>  for (String strColour:color)
> {
>
> String [] arr=null;
>  arr=strColour.split("-");
> int a=Integer.parseInt(arr[0]);
>  int b=Integer.parseInt(uid[position]);
> if(a==b)
> {
>
> ActiveItem.setBackgroundResource(R.drawable.topbg1);
> break;
>
> }
> else
> {
>  ActiveItem.setBackgroundResource(R.drawable.message);
> }
>
>  }
> }
> catch(Exception e)
>  {
> String s="Rahul";
> }
>

I fail to see how anyone other than yourself would have been able to come
up with an answer like this based on your initial question...

As a reminder your initial question was this:

how to find the particular table row  TableLayout  from the  ListView
> Please sugest
>



Thanks,
Justin Anderson
MagouyaWare Developer
http://sites.google.com/site/magouyaware


On Mon, Aug 27, 2012 at 10:17 PM, Rahul Kaushik <rahulkaushi...@gmail.com>wrote:

> below solution will fetch data from SharedPrefrence and will
> coloured(below instead of changing colour am putting background image) the
> Required Table Row as per the requirement

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to