|
|
@@ -68,27 +68,27 @@ public class FriendSortAdapter extends BaseAdapter implements SectionIndexer {
|
|
|
if (position == getPositionForSection(section)) {
|
|
|
isFrist = true;
|
|
|
}
|
|
|
- if (isLog.get(position) == null || isLog.get(position).isEmpty()) {
|
|
|
- Log.i("gongpengming", "position" + position + "@@为空");
|
|
|
- if (isFrist) {
|
|
|
- isLog.put(position, "true");
|
|
|
- RelativeLayout relativeLayout= (RelativeLayout) convertView.findViewById(R.id.rela);
|
|
|
- relativeLayout.setBackgroundColor(mContext.getResources().getColor(R.color.item_color1));
|
|
|
- if (relativeLayout!=null)
|
|
|
- ViewAlphaUtil.setViewAlpha(relativeLayout);
|
|
|
- } else {
|
|
|
- isLog.put(position, "false");
|
|
|
- convertView.setBackgroundColor(mContext.getResources().getColor(R.color.item_color2));
|
|
|
- }
|
|
|
-
|
|
|
- } else {
|
|
|
- if (isLog.get(position).equals("true")) {
|
|
|
- convertView.setBackgroundColor(mContext.getResources().getColor(R.color.item_color1));
|
|
|
- ViewAlphaUtil.setViewAlpha(convertView);
|
|
|
- } else {
|
|
|
- convertView.setBackgroundColor(mContext.getResources().getColor(R.color.item_color2));
|
|
|
- }
|
|
|
- }
|
|
|
+// if (isLog.get(position) == null || isLog.get(position).isEmpty()) {
|
|
|
+
|
|
|
+// if (isFrist) {
|
|
|
+// isLog.put(position, "true");
|
|
|
+// RelativeLayout relativeLayout= (RelativeLayout) convertView.findViewById(R.id.rela);
|
|
|
+// relativeLayout.setBackgroundColor(mContext.getResources().getColor(R.color.item_color1));
|
|
|
+// if (relativeLayout!=null)
|
|
|
+// ViewAlphaUtil.setViewAlpha(relativeLayout);
|
|
|
+// } else {
|
|
|
+// isLog.put(position, "false");
|
|
|
+// convertView.setBackgroundColor(mContext.getResources().getColor(R.color.item_color2));
|
|
|
+// }
|
|
|
+//
|
|
|
+// } else {
|
|
|
+// if (isLog.get(position).equals("true")) {
|
|
|
+// convertView.setBackgroundColor(mContext.getResources().getColor(R.color.item_color1));
|
|
|
+// ViewAlphaUtil.setViewAlpha(convertView);
|
|
|
+// } else {
|
|
|
+// convertView.setBackgroundColor(mContext.getResources().getColor(R.color.item_color2));
|
|
|
+// }
|
|
|
+// }
|
|
|
|
|
|
// if (isFrist) {
|
|
|
// convertView.setBackgroundColor(mContext.getResources().getColor(R.color.item_color1));
|
|
|
@@ -106,6 +106,7 @@ public class FriendSortAdapter extends BaseAdapter implements SectionIndexer {
|
|
|
if (position == getPositionForSection(section)) {
|
|
|
catagoryTitleTv.setVisibility(View.VISIBLE);
|
|
|
catagoryTitleTv.setText(mSortFriends.get(position).getFirstLetter());
|
|
|
+// ViewAlphaUtil.setViewAlpha(catagoryTitleTv,127);
|
|
|
} else {
|
|
|
catagoryTitleTv.setVisibility(View.GONE);
|
|
|
}
|