Blame view

app/src/main/java/com/dinhcv/lifelogpedometer/model/DummyData.java 5.93 KB
7f095a929   chudinhbka@gmail.com   Create GIT Project
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
  package com.dinhcv.lifelogpedometer.model;
  
  import android.content.Context;
  
  import com.dinhcv.lifelogpedometer.R;
  import com.dinhcv.lifelogpedometer.model.structure.SelectItemInfo;
  
  import java.util.ArrayList;
  import java.util.List;
  
  public class DummyData {
  
      public static List<SelectItemInfo> getProvinceList(Context context){
  
          List<SelectItemInfo> selectItemInfos = new ArrayList<>();
  
          selectItemInfos.add( new SelectItemInfo( 1, context.getResources().getString(R.string.city_item_1)));
          selectItemInfos.add( new SelectItemInfo( 2, context.getResources().getString(R.string.city_item_2)));
          selectItemInfos.add( new SelectItemInfo( 3, context.getResources().getString(R.string.city_item_3)));
          selectItemInfos.add( new SelectItemInfo( 4, context.getResources().getString(R.string.city_item_4)));
          selectItemInfos.add( new SelectItemInfo( 5, context.getResources().getString(R.string.city_item_5)));
          selectItemInfos.add( new SelectItemInfo( 6, context.getResources().getString(R.string.city_item_6)));
          selectItemInfos.add( new SelectItemInfo( 7, context.getResources().getString(R.string.city_item_7)));
          selectItemInfos.add( new SelectItemInfo( 8, context.getResources().getString(R.string.city_item_8)));
          selectItemInfos.add( new SelectItemInfo( 9, context.getResources().getString(R.string.city_item_9)));
          selectItemInfos.add( new SelectItemInfo( 10, context.getResources().getString(R.string.city_item_10)));
          selectItemInfos.add( new SelectItemInfo( 11, context.getResources().getString(R.string.city_item_11)));
          selectItemInfos.add( new SelectItemInfo( 12, context.getResources().getString(R.string.city_item_12)));
          selectItemInfos.add( new SelectItemInfo( 13, context.getResources().getString(R.string.city_item_13)));
          selectItemInfos.add( new SelectItemInfo( 14, context.getResources().getString(R.string.city_item_14)));
          selectItemInfos.add( new SelectItemInfo( 15, context.getResources().getString(R.string.city_item_15)));
          selectItemInfos.add( new SelectItemInfo( 16, context.getResources().getString(R.string.city_item_16)));
          selectItemInfos.add( new SelectItemInfo( 17, context.getResources().getString(R.string.city_item_17)));
          selectItemInfos.add( new SelectItemInfo( 18, context.getResources().getString(R.string.city_item_18)));
          selectItemInfos.add( new SelectItemInfo( 19, context.getResources().getString(R.string.city_item_19)));
          selectItemInfos.add( new SelectItemInfo( 20, context.getResources().getString(R.string.city_item_20)));
          selectItemInfos.add( new SelectItemInfo( 21, context.getResources().getString(R.string.city_item_21)));
          selectItemInfos.add( new SelectItemInfo( 22, context.getResources().getString(R.string.city_item_22)));
          selectItemInfos.add( new SelectItemInfo( 23, context.getResources().getString(R.string.city_item_23)));
          selectItemInfos.add( new SelectItemInfo( 24, context.getResources().getString(R.string.city_item_24)));
          selectItemInfos.add( new SelectItemInfo( 25, context.getResources().getString(R.string.city_item_25)));
          selectItemInfos.add( new SelectItemInfo( 26, context.getResources().getString(R.string.city_item_26)));
          selectItemInfos.add( new SelectItemInfo( 27, context.getResources().getString(R.string.city_item_27)));
          selectItemInfos.add( new SelectItemInfo( 28, context.getResources().getString(R.string.city_item_28)));
          selectItemInfos.add( new SelectItemInfo( 29, context.getResources().getString(R.string.city_item_29)));
          selectItemInfos.add( new SelectItemInfo( 30, context.getResources().getString(R.string.city_item_30)));
          selectItemInfos.add( new SelectItemInfo( 31, context.getResources().getString(R.string.city_item_31)));
          selectItemInfos.add( new SelectItemInfo( 32, context.getResources().getString(R.string.city_item_32)));
          selectItemInfos.add( new SelectItemInfo( 33, context.getResources().getString(R.string.city_item_33)));
          selectItemInfos.add( new SelectItemInfo( 34, context.getResources().getString(R.string.city_item_34)));
          selectItemInfos.add( new SelectItemInfo( 35, context.getResources().getString(R.string.city_item_35)));
          selectItemInfos.add( new SelectItemInfo( 36, context.getResources().getString(R.string.city_item_36)));
          selectItemInfos.add( new SelectItemInfo( 37, context.getResources().getString(R.string.city_item_37)));
          selectItemInfos.add( new SelectItemInfo( 38, context.getResources().getString(R.string.city_item_38)));
          selectItemInfos.add( new SelectItemInfo( 39, context.getResources().getString(R.string.city_item_39)));
          selectItemInfos.add( new SelectItemInfo( 40, context.getResources().getString(R.string.city_item_40)));
          selectItemInfos.add( new SelectItemInfo( 41, context.getResources().getString(R.string.city_item_41)));
          selectItemInfos.add( new SelectItemInfo( 42, context.getResources().getString(R.string.city_item_42)));
          selectItemInfos.add( new SelectItemInfo( 43, context.getResources().getString(R.string.city_item_43)));
          selectItemInfos.add( new SelectItemInfo( 44, context.getResources().getString(R.string.city_item_44)));
          selectItemInfos.add( new SelectItemInfo( 45, context.getResources().getString(R.string.city_item_45)));
          selectItemInfos.add( new SelectItemInfo( 46, context.getResources().getString(R.string.city_item_46)));
          selectItemInfos.add( new SelectItemInfo( 47, context.getResources().getString(R.string.city_item_47)));
  
          return selectItemInfos;
      }
  
      public static List<SelectItemInfo> getSexList(Context context){
          List<SelectItemInfo> listRelationship = new ArrayList<>();
          listRelationship.add(new SelectItemInfo(0,context.getResources().getString(R.string.male)));
          listRelationship.add(new SelectItemInfo(1,context.getResources().getString(R.string.female)));
          return listRelationship;
      }
  
  }