mirror of
https://github.com/libretro/RetroArch
synced 2025-02-22 12:40:09 +00:00
(Android) implement fast scroll in XML layout, not code
This commit is contained in:
parent
834b457294
commit
0fb902cc47
@ -2,6 +2,8 @@
|
|||||||
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
|
<ListView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||||
android:id="@+id/list"
|
android:id="@+id/list"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" >
|
android:layout_height="wrap_content"
|
||||||
|
android:fastScrollEnabled="true" >
|
||||||
|
|
||||||
</ListView>
|
</ListView>
|
||||||
|
|
||||||
|
@ -150,7 +150,6 @@ public class DirectoryActivity extends Activity implements
|
|||||||
ListView list = (ListView) findViewById(R.id.list);
|
ListView list = (ListView) findViewById(R.id.list);
|
||||||
list.setAdapter(adapter);
|
list.setAdapter(adapter);
|
||||||
list.setOnItemClickListener(this);
|
list.setOnItemClickListener(this);
|
||||||
list.setFastScrollEnabled(true);
|
|
||||||
|
|
||||||
// Load Directory
|
// Load Directory
|
||||||
if (savedInstanceState != null) {
|
if (savedInstanceState != null) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user