Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
TEACHING-MATERIALS/Week_05_AdapterViews_and_Fragments/MyFragments/app/src/main/java/com/example/jianhuayang/myfragments/data/Candidates.java
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
40 lines (37 sloc)
1.23 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.example.jianhuayang.myfragments.data; | |
import com.example.jianhuayang.myfragments.R; | |
/** | |
* Created by jianhuayang on 31/10/2017. | |
*/ | |
public class Candidates { | |
public static final String[] candidateNames = { | |
"Hillary Clinton", | |
"Bernie Sanders", | |
"Martin O'Malley", | |
"Lincoln Chafee", | |
"Donald Trump", | |
"Ben Carson", | |
"Marco Rubio", | |
"Jeb Bush" | |
}; | |
public static final String[] candidateDetails = { | |
"Former US Secretary of State Hillary Clinton (New York)", | |
"US Senator Bernie Sanders (Vermont)", | |
"Former Governor Martin O\'Malley (Maryland)", | |
"Former Governor Lincoln Chafee (Rhode Island)", | |
"Businessman Donald Trump (New York)", | |
"Dr. Ben Carson (Florida)", | |
"US Senator Marco Rubio (Florida)", | |
"Former Governor Jeb Bush (Florida)", | |
}; | |
public static final int[] candidatePhotos = { | |
R.drawable.clinton, | |
R.drawable.sanders, | |
R.drawable.omalley, | |
R.drawable.chafee, | |
R.drawable.trump, | |
R.drawable.carson, | |
R.drawable.rubio, | |
R.drawable.bush | |
}; | |
} |