Click here to Skip to main content
16,017,502 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am having list with "n" items. using item "overid" ..

for ex : {

"BallID": "1",
"Des": ".",
"OverID": "1",
"Overs": "0.1",
"Rank": "1"

} i will display the values in the list using "OverID" , if OverID is changes to 2 or any value ,i want to display this symbol "|" between values ..every time the "OverID" changes i want to display this "|" symbol . ..

What I have tried:

Here is my current cod :

if (overCount > OVER_COUNT) {
row = mInflater.inflate(R.layout.list_item_balldetail_adpater, parent, false);
mBallCount = (TextView) row.findViewById(R.id.tv_ball);
mBallCount1 = (TextView) row.findViewById(R.id.tv_ball1);
AppFonts.VagRoundLight(ctx, mBallCount);
mBallCount1.setVisibility(View.VISIBLE);
OVER_COUNT++;
}

else {
row = mInflater.inflate(R.layout.list_item_balldetail_adpater, parent, false);
mBallCount = (TextView) row.findViewById(R.id.tv_ball);
mBallCount1 = (TextView) row.findViewById(R.id.tv_ball1);
AppFonts.VagRoundLight(ctx, mBallCount);
mBallCount.setText(mLtOversList.get(position).getDes());
mBallCount1.setVisibility(View.GONE);
}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900