Exemplo n.º 1
0
 /** 11运夺金子列表 */
 private void showSubYdjCaiListView() {
   adpterlist = getSubInfoForListView("11-ydj");
   noticePrizesTitle.setText(R.string.ydj_kaijianggonggao);
   adapter = new SubEfficientAdapter(this, str, adpterlist, LISTYDJ, false);
   listview.setAdapter(adapter);
   PublicMethod.setmydividerHeight(listview);
 }
Exemplo n.º 2
0
 /** 22选5 */
 private void showSubTwentyListView() {
   adpterlist = getSubInfoForListView("22-5");
   noticePrizesTitle.setText(R.string.ydj_kaijianggonggao);
   adapter = new SubEfficientAdapter(this, str, adpterlist, LISTTWENTY, true);
   listview.setAdapter(adapter);
   PublicMethod.setmydividerHeight(listview);
 }
Exemplo n.º 3
0
 /** 超级大乐透子列表 */
 private void showSubChaoJiDaLeTouListView() {
   adpterlist = getSubInfoForListView("cjdlt");
   noticePrizesTitle.setText(R.string.chaojidaletou_kaijianggonggao);
   adapter = new SubEfficientAdapter(this, str, adpterlist, LISTDLT, true);
   listview.setAdapter(adapter);
   PublicMethod.setmydividerHeight(listview);
 }
Exemplo n.º 4
0
 /** 排列三子列表 */
 private void showSubPaiLieSanListView() {
   adpterlist = getSubInfoForListView("pl3");
   noticePrizesTitle.setText(R.string.pailiesan_kaijianggonggao);
   adapter = new SubEfficientAdapter(this, str, adpterlist, LISTPL3, true);
   listview.setAdapter(adapter);
   PublicMethod.setmydividerHeight(listview);
 }
Exemplo n.º 5
0
 /** 七乐彩子列表 */
 private void showSubQiLeCaiListView() {
   adpterlist = getSubInfoForListView("qlc");
   noticePrizesTitle.setText(R.string.qilecai_kaijianggonggao);
   adapter = new SubEfficientAdapter(this, str, adpterlist, LISTQLC, true);
   listview.setAdapter(adapter);
   PublicMethod.setmydividerHeight(listview);
 }
Exemplo n.º 6
0
 /** 福彩3D子列表 */
 private void showSubFuCai3DListView() {
   adpterlist = getSubInfoForListView("fc3d");
   noticePrizesTitle.setText(R.string.fucai3d_kaijianggonggao);
   adapter = new SubEfficientAdapter(this, str, adpterlist, LIST3D, true);
   listview.setAdapter(adapter);
   PublicMethod.setmydividerHeight(listview);
 }
Exemplo n.º 7
0
 /** 双色球子列表view */
 private void showSubShuangSeQiuListView() {
   adpterlist = getSubInfoForListView("ssq"); // 获取缓存中的数据
   noticePrizesTitle.setText(R.string.shuangseqiu_kaijianggonggao); // 双色球开奖公告
   adapter = new SubEfficientAdapter(this, str, adpterlist, LISTSSQ, true);
   listview.setAdapter(adapter);
   PublicMethod.setmydividerHeight(listview);
 }
Exemplo n.º 8
0
 /** 足彩子列表 */
 private void showSubZuCaiListView(String type) {
   adpterlist = getSubInfoForListView(type);
   if (type.equals("sfc")) {
     noticePrizesTitle.setText(R.string.shengfucai_kaijiang);
   } else if (type.equals("rxj")) {
     noticePrizesTitle.setText(R.string.renxuanjiu_kaijiang);
   } else if (type.equals("lcb")) {
     noticePrizesTitle.setText(R.string.liuchangban_kaijiang);
   } else if (type.equals("jqc")) {
     noticePrizesTitle.setText(R.string.jinqiucai_kaijiang);
   }
   adapter = new SubEfficientAdapter(this, str, adpterlist, LISTSFC, false);
   listview.setAdapter(adapter);
   PublicMethod.setmydividerHeight(listview);
 }
Exemplo n.º 9
0
  /**
   * 创建帮助中心界面
   *
   * @return
   */
  public void showView(List<Map<String, String>> map) {
    isMain = true;
    listview = (ListView) findViewById(R.id.ruyihelper_listview_ruyihelper_id);
    Button btnreturn = (Button) findViewById(R.id.ruyizhushou_btn_return);
    btnreturn.setBackgroundResource(R.drawable.returnselecter);

    /** 添加获取更多按钮 */
    if (moreView == null) {
      LayoutInflater mInflater =
          (LayoutInflater) this.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
      moreView = mInflater.inflate(R.layout.lookmorebtn, null);
      ProgressBar progressbar = (ProgressBar) moreView.findViewById(R.id.getmore_progressbar);
      listview.addFooterView(moreView);
      moreView.setOnClickListener(
          new OnClickListener() {

            @Override
            public void onClick(View v) {
              addmore();
            }
          });
    }

    btnreturn.setOnClickListener(
        new ImageView.OnClickListener() {
          public void onClick(View v) {
            finish();
          }
        });
    // 数据源
    HelpCenterAdapter adapter = new HelpCenterAdapter(this, map);
    // 适配器
    listview.setAdapter(adapter);
    listview.setOnItemClickListener(
        new OnItemClickListener() {
          @Override
          public void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
            // TODO Auto-generated method stub
            Intent intent = new Intent(HelpTitles.this, HelpCenterItemActivity.class);
            Bundle bundle = new Bundle();
            bundle.putString("id", titleList.get(arg2).get("id").toString());
            bundle.putString("title", titleList.get(arg2).get("title").toString());
            intent.putExtras(bundle);
            startActivity(intent);
          }
        });
    PublicMethod.setmydividerHeight(listview);
  }
Exemplo n.º 10
0
  /** “更多”选项列表 */
  public void showMoreListView() {
    returnType = 0;
    setContentView(R.layout.ruyihelper_listview);
    relativeLayout = (RelativeLayout) findViewById(R.id.ruyihelper_listview_relative);
    relativeLayout.setVisibility(RelativeLayout.GONE);
    // 数据源
    list = getListForMoreAdapter();

    ListView listview = (ListView) findViewById(R.id.ruyihelper_listview_ruyihelper_id);

    // 适配器
    SimpleAdapter adapter =
        new SimpleAdapter(
            this,
            list,
            R.layout.ruyihelper_listview_icon_item,
            new String[] {TITLE, IICON, TEL, CONTENT},
            new int[] {
              R.id.ruyihelper_icon_text,
              R.id.ruyihelper_iicon,
              R.id.ruyihelper_icon_layout_text1,
              R.id.ruyihelper_icon_layout_text2
            });

    listview.setAdapter(adapter);
    PublicMethod.setmydividerHeight(listview);

    /* 列表的点击后的背景 */
    OnItemClickListener clickListener =
        new OnItemClickListener() {

          public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
            text = (TextView) view.findViewById(R.id.ruyihelper_icon_text);
            textStr = text.getText().toString();
            //				relativeLayout.setVisibility(RelativeLayout.VISIBLE);
            //				iQuitFlag = 10;//当前主界面下一级
            onClickListener(textStr);
          }
        };
    listview.setOnItemClickListener(clickListener);
  }