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