Back to project page RoboBinding-gallery.
The source code is released under:
Apache License
If you think the Android project RoboBinding-gallery listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package org.robobinding.gallery.model.adapterview; //from w w w .java 2s. c om import com.google.common.collect.Lists; import java.util.Collections; import java.util.List; /** * * @since 1.0 * @version $Revision: 1.0 $ * @author Cheng Wei */ public class SampleStrings { private static final List<String> strings = createSample("Sample"); private static final List<String> sample1 = createSample("Sample1"); private static final List<String> sample2 = createSample("Sample2"); private static List<String> createSample(String sampleName) { List<String> strings = Lists.newArrayList(); strings.add(sampleName+" text1"); strings.add(sampleName+" text2"); return strings; } public static List<String> getSample() { return Collections.unmodifiableList(strings); } public static List<String> getSample1() { return Collections.unmodifiableList(sample1); } public static List<String> getSample2() { return Collections.unmodifiableList(sample2); } }