in getView(,,,)

Solution..

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";
}

Thanks
RK

On Mon, Aug 27, 2012 at 10:30 PM, Justin Anderson <[email protected]>wrote:

>
> http://android-dev-tips-and-tricks.blogspot.com/2012/08/so-you-need-help.html
>
> Thanks,
> Justin Anderson
> MagouyaWare Developer
> http://sites.google.com/site/magouyaware
>
>
>
> On Mon, Aug 27, 2012 at 10:07 AM, TreKing <[email protected]> wrote:
>
>> On Mon, Aug 27, 2012 at 3:21 AM, Rahul Kaushik 
>> <[email protected]>wrote:
>>
>>> how to find the particular table row  TableLayout  from the  ListView
>>
>>
>> http://www.catb.org/esr/faqs/smart-questions.html
>>
>>
>> -------------------------------------------------------------------------------------------------
>> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
>> transit tracking app for Android-powered devices
>>
>>
>>  --
>> 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
>>
>
>  --
> 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
>

-- 
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

Reply via email to