A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Code Examples of ViewHolder


		
		boolean IsExtraLine = position >= MeemisData.size();
		
		if (convertView == null) {
			vi = ViewInflater.inflate(R.layout.meemi_msgs_list_row, null);
			holder = new ViewHolder();
			holder.Avatar = (ImageView) vi.findViewById(R.id.UserAvatar);
			holder.Nick = (TextView) vi.findViewById(R.id.UserNick);
			holder.Time = (TextView) vi.findViewById(R.id.MeemeTime);
			holder.Message = (TextView) vi.findViewById(R.id.Message);
			holder.OtherInfo = (TextView) vi.findViewById(R.id.OtherInfo);
			vi.setTag(holder);
		} else {
			holder = (ViewHolder) vi.getTag();
		}
		
		if ( !holder.IsLoadOtherMeemi ) {
			if (IsExtraLine) {
				vi = ViewInflater.inflate(R.layout.list_row_other_loads, null);
				
				((TextView)vi.findViewById(id.RowLoadNewLabel)).setText(ResIDString);
				
				if (UseResIDIcon) {
					((ImageView)vi.findViewById(id.RowLoadNewIcon)).setImageResource(ResIDIcon);
				}
				
				holder = new ViewHolder();
				holder.IsLoadOtherMeemi = true;
				vi.setTag(holder);
			}
		} else {
			if (!IsExtraLine) {
				vi = ViewInflater.inflate(R.layout.meemi_msgs_list_row, null);
				holder = new ViewHolder();
				holder.Avatar = (ImageView) vi.findViewById(R.id.UserAvatar);
				holder.Nick = (TextView) vi.findViewById(R.id.UserNick);
				holder.Time = (TextView) vi.findViewById(R.id.MeemeTime);
				holder.Message = (TextView) vi.findViewById(R.id.Message);
				holder.OtherInfo = (TextView) vi.findViewById(R.id.OtherInfo);

View Full Code Here


		
		boolean IsExtraLine = position >= UsersData.size();
		
		if (convertView == null) {
			vi = ViewInflater.inflate(R.layout.meemi_users_list_row, null);
			holder = new ViewHolder();
			holder.image = (ImageView) vi.findViewById(R.id.UserRowAvatar);
			holder.text = (TextView) vi.findViewById(R.id.UserRowNick);
			vi.setTag(holder);
		} else {
			holder = (ViewHolder) vi.getTag();
		}
		
		if ( !holder.IsLoadOtherUsers ) {
			if (IsExtraLine) {
				vi = ViewInflater.inflate(R.layout.list_row_other_loads, null);
				
				((TextView)vi.findViewById(id.RowLoadNewLabel)).setText(ResIDString);
				
				if (UseResIDIcon) {
					((ImageView)vi.findViewById(id.RowLoadNewIcon)).setImageResource(ResIDIcon);
				}
				
				holder = new ViewHolder();
				holder.IsLoadOtherUsers = true;
				vi.setTag(holder);
			}
		} else {
			if (!IsExtraLine) {
				vi = ViewInflater.inflate(R.layout.meemi_users_list_row, null);
				holder = new ViewHolder();
				holder.image = (ImageView) vi.findViewById(R.id.UserRowAvatar);
				holder.text = (TextView) vi.findViewById(R.id.UserRowNick);
				vi.setTag(holder);
			}
			

View Full Code Here


		ViewHolder holder;
		
		if (convertView == null) {
			convertView = inflater.inflate(R.layout.compare_two_products_list_item, null);
			
			holder = new ViewHolder();
			holder.txtProductOne = (TextView) convertView.findViewById(R.id.txtProductOne);
			holder.txtProductTwo = (TextView) convertView.findViewById(R.id.txtProductTwo);
			holder.txtProductOne.setWidth(WIDTH);
			holder.txtProductTwo.setWidth(WIDTH);
			

View Full Code Here


		ViewHolder holder;
		
		if (convertView == null) {
			convertView = inflater.inflate(R.layout.compare_two_products_list_item, null);
			
			holder = new ViewHolder();
			holder.txtProductOne = (TextView) convertView.findViewById(R.id.txtProductOne);
			holder.txtProductTwo = (TextView) convertView.findViewById(R.id.txtProductTwo);
			holder.txtProductOne.setWidth(WIDTH);
			holder.txtProductTwo.setWidth(WIDTH);
			

View Full Code Here

TOP

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

TOP