zoukankan      html  css  js  c++  java
  • 第一阶段冲刺第十天

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    public View getView(int position, View convertView, ViewGroup parent)
      {
       View item = mInflater.inflate(R.layout.list_item_icon_text,
      null);
       ((TextView)
      item.findViewById(R.id.text)).setText(DATA[position]);
       ((ImageView) item.findViewById(R.id.icon)).setImageBitmap(
       (position & 1) == 1 ? mIcon1 : mIcon2);
      return item;
      }
    复制代码

      

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    public View getView(int position, View convertView, ViewGroup parent)
      {
         if (convertView == null) {
             convertView = mInflater.inflate(R.layout.item, parent, false);
         }
       ((TextView)
      convertView.findViewById(R.id.text)).setText(DATA[position]);
       ((ImageView)
      convertView.findViewById(R.id.icon)).setImageBitmap(
      (position & 1) == 1 ? mIcon1 : mIcon2);
      return convertView;
      }
  • 相关阅读:
    数据库ACID
    tcp ip detatils
    process vs thread
    C++ virtual descructor
    static_cast dynamic_cast const_cast reinterpret_cast总结对比
    Meta Programming
    C++ traits
    c++内存管理
    洛谷 P4136 谁能赢呢?
    洛谷 P1166 打保龄球
  • 原文地址:https://www.cnblogs.com/wwbzuiku/p/12876055.html
Copyright © 2011-2022 走看看