文件名称:ListView多条目显示
文件大小:1.63MB
文件格式:RAR
更新时间:2018-12-15 10:52:03
ListView, android Listview,
ListView复用多个布局文件。 //复用三个布局文件 @Override public View getView(int position, View convertView, ViewGroup parent) { viewHolder1 holder1 = null; viewHolder2 holder2 = null; viewHolder3 holder3 = null; //得到当期的返回类型 int type = getItemViewType(position); if (convertView == null) { switch (type) { case TYPE_1: convertView = View.inflate(MainActivity.this, R.layout.list_item3, null); holder1 = new viewHolder1(); holder1.textView = (TextView) convertView .findViewById(R.id.text2); holder1.checkBox = (CheckBox) convertView .findViewById(R.id.image); convertView.setTag(holder1); break;
【文件预览】:
ListViewDome
----bin()
--------classes.dex(435KB)
--------res()
--------ListViewDome.apk(360KB)
--------dexedLibs()
--------classes()
--------resources.ap_(209KB)
--------AndroidManifest.xml(888B)
----res()
--------drawable-ldpi()
--------values-v11()
--------menu()
--------values-v14()
--------drawable-hdpi()
--------drawable-xhdpi()
--------drawable-xxhdpi()
--------values()
--------values-sw720dp-land()
--------drawable-mdpi()
--------values-sw600dp()
--------layout()
----proguard-project.txt(781B)
----ic_launcher-web.png(50KB)
----assets()
----gen()
--------com()
----.settings()
--------org.eclipse.jdt.core.prefs(177B)
----src()
--------com()
----.project(848B)
----.classpath(364B)
----project.properties(563B)
----AndroidManifest.xml(888B)
----libs()
--------android-support-v4.jar(377KB)