文件名称:PinnedSectionListview
文件大小:494KB
文件格式:ZIP
更新时间:2018-02-12 03:02:53
Pinned
@Override protected void onCreate Bundle savedInstanceState { super onCreate savedInstanceState ; setContentView R layout activity main ; if savedInstanceState null { isFastScroll savedInstanceState getBoolean "isFastScroll" ; addPadding savedInstanceState getBoolean "addPadding" ; isShadowVisible savedInstanceState getBoolean "isShadowVisible" ; hasHeaderAndFooter savedInstanceState getBoolean "hasHeaderAndFooter" ; } initializeHeaderAndFooter ; initializeAdapter ; initializePadding ; } @Override protected void onSaveInstanceState Bundle outState { super onSaveInstanceState outState ; outState putBoolean "isFastScroll" isFastScroll ; outState putBoolean "addPadding" addPadding ; outState putBoolean "isShadowVisible" isShadowVisible ; outState putBoolean "hasHeaderAndFooter" hasHeaderAndFooter ; } @Override protected void onListItemClick ListView l View v int position long id { Item item Item getListView getAdapter getItem position ; if item null { Toast makeText this "Item " + position + ": " + item text Toast LENGTH SHORT show ; } else { Toast makeText this "Item " + position Toast LENGTH SHORT show ; } } @Override public boolean onCreateOptionsMenu Menu menu { getMenuInflater inflate R menu main menu ; menu getItem 0 setChecked isFastScroll ; menu getItem 1 setChecked addPadding ; menu getItem 2 setChecked isShadowVisible ; return true; }">@Override protected void onCreate Bundle savedInstanceState { super onCreate savedInstanceState ; setContentView R layout activity main ; if savedInstanceState null { isFastScroll savedInstanceState getBoolean "isFastScroll" ; addPadding savedInstanceState getB [更多]
【文件预览】:
pinned-section-listview-master
----.gitignore(48B)
----README.md(3KB)
----library()
--------.gitignore(7B)
--------build.gradle(410B)
--------AndroidManifest.xml(360B)
--------proguard-project.txt(781B)
--------src()
--------project.properties(584B)
--------res()
--------assets()
----screen1.png(23KB)
----screen2.png(22KB)
----screen3.png(22KB)
----example()
--------ic_launcher-web.png(44KB)
--------AndroidManifest.xml(880B)
--------proguard-project.txt(781B)
--------libs()
--------src()
--------project.properties(602B)
--------res()
--------assets()