Skip to content

Instantly share code, notes, and snippets.

@Harshhb101
Created April 10, 2019 05:40
Show Gist options
  • Save Harshhb101/55e25da72e3a474aeeb422d5e231d3e3 to your computer and use it in GitHub Desktop.
Save Harshhb101/55e25da72e3a474aeeb422d5e231d3e3 to your computer and use it in GitHub Desktop.
FeedViewHolder(View v) {
super(v);
//Linking all Text views
userName = v.findViewById(R.id.userName);
time_date = v.findViewById(R.id.time_date);
title = v.findViewById(R.id.title);
postDesc = v.findViewById(R.id.postDesc);
jobTypeText = v.findViewById(R.id.jobTypeText);
experienceText = v.findViewById(R.id.experienceText);
industryText = v.findViewById(R.id.industryText);
locationText = v.findViewById(R.id.locationText);
emailText = v.findViewById(R.id.emailText);
downloadText = v.findViewById(R.id.downloadText);
websiteText = v.findViewById(R.id.websiteText);
contactText = v.findViewById(R.id.contactText);
amountRaised = v.findViewById(R.id.amountRaised);
achievedPercent = v.findViewById(R.id.achievedPercent);
minAmount = v.findViewById(R.id.minAmount);
maxAmount = v.findViewById(R.id.maxAmount);
investorText = v.findViewById(R.id.investorText);
videoLinkText = v.findViewById(R.id.videoLinkText);
likeCount = v.findViewById(R.id.likeCount);
commentCount = v.findViewById(R.id.commentCount);
companyText = v.findViewById(R.id.companyText);
attrib1Name = v.findViewById(R.id.attrib1Name);
attrib1Value = v.findViewById(R.id.attrib1Value);
attrib2Name = v.findViewById(R.id.attrib2Name);
attrib2Value = v.findViewById(R.id.attrib2Value);
investorCompanyText = v.findViewById(R.id.investorCompanyText);
seeDetails = v.findViewById(R.id.seeDetails);
likeText = v.findViewById(R.id.likeText);
commentText = v.findViewById(R.id.commentText);
shareText = v.findViewById(R.id.shareText);
postActionText = v.findViewById(R.id.postActionText);
saveText = v.findViewById(R.id.saveText);
showMoreToggle = v.findViewById(R.id.showMoreToggle);
//Linking all the Image views
postImage = v.findViewById(R.id.postImage);
jobTypeIcon = v.findViewById(R.id.jobTypeIcon);
companyIcon = v.findViewById(R.id.companyIcon);
experienceIcon = v.findViewById(R.id.experienceIcon);
industryIcon = v.findViewById(R.id.industryIcon);
locationIcon = v.findViewById(R.id.locationIcon);
downloadIcon = v.findViewById(R.id.downloadIcon);
emailIcon = v.findViewById(R.id.emailIcon);
websiteIcon = v.findViewById(R.id.websiteIcon);
contactIcon = v.findViewById(R.id.contactIcon);
investorIcon = v.findViewById(R.id.investorIcon);
videoLinkIcon = v.findViewById(R.id.videoLinkIcon);
investorCompanyIcon = v.findViewById(R.id.investorCompanyIcon);
postMenu = v.findViewById(R.id.postMenu);
// postActionImage = v.findViewById(R.id.postActionImage);
// saveImage = v.findViewById(R.id.saveImage);
// shareImage = v.findViewById(R.id.shareImage);
// commentImage = v.findViewById(R.id.commentImage);
// likeImage = v.findViewById(R.id.likeImage);
//Linking all the Linear Layouts
layoutTypeOfJob = v.findViewById(R.id.layoutTypeOfJob);
layoutCompany = v.findViewById(R.id.layoutCompany);
layoutExperience = v.findViewById(R.id.layoutExperience);
layoutIndustry = v.findViewById(R.id.layoutIndustry);
layoutLocation = v.findViewById(R.id.layoutLocation);
downloadPostContent = v.findViewById(R.id.downloadPostContent);
layoutEmail = v.findViewById(R.id.layoutEmail);
layoutWebsite = v.findViewById(R.id.layoutWebsite);
layoutContact = v.findViewById(R.id.layoutContact);
layoutGoals = v.findViewById(R.id.layoutGoals);
layoutInvestorType = v.findViewById(R.id.layoutInvestorType);
layoutVideoLink = v.findViewById(R.id.layoutVideoLink);
layoutLike = v.findViewById(R.id.layoutLike);
layoutComment = v.findViewById(R.id.layoutComment);
layoutShare = v.findViewById(R.id.layoutShare);
layoutSave = v.findViewById(R.id.layoutSave);
layoutPostAction = v.findViewById(R.id.layoutPostAction);
layoutAttributes = v.findViewById(R.id.layoutAttributes);
layoutAttrib1 = v.findViewById(R.id.layoutAttrib1);
layoutAttrib2 = v.findViewById(R.id.layoutAttrib2);
layoutInvestorCompany = v.findViewById(R.id.layoutInvestorCompany);
layoutImageGallery = v.findViewById(R.id.layoutImageGallery);
//Linking the Progress Bar
goalProgressBar = v.findViewById(R.id.goalProgressBar);
loadingProgressBar = v.findViewById(R.id.loadingProgressBar);
//Linking the view
bottom_view = v.findViewById(R.id.bottom_view);
//Linking the Circular Icons
profilePhoto = v.findViewById(R.id.profilePhoto);
typeOfPostIcon = v.findViewById(R.id.typeOfPostIcon);
messageIcon = v.findViewById(R.id.messageIcon);
//Setting the click listeners for the required buttons and layouts
layoutLike.setOnClickListener(this);
likeCount.setOnClickListener(this);
layoutComment.setOnClickListener(this);
commentCount.setOnClickListener(this);
layoutShare.setOnClickListener(this);
layoutSave.setOnClickListener(this);
layoutPostAction.setOnClickListener(this);
profilePhoto.setOnClickListener(this);
userName.setOnClickListener(this);
title.setOnClickListener(this);
emailText.setOnClickListener(this);
websiteText.setOnClickListener(this);
contactText.setOnClickListener(this);
videoLinkText.setOnClickListener(this);
seeDetails.setOnClickListener(this);
messageIcon.setOnClickListener(this);
postMenu.setOnClickListener(this);
layoutImageGallery.setOnClickListener(this);
downloadPostContent.setOnClickListener(this);
showMoreToggle.setOnClickListener(this);
// postDesc.setInterpolator(new OvershootInterpolator());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment