mirror of
https://github.com/libretro/RetroArch.git
synced 2025-02-23 19:30:45 +00:00
(Android) Small tweaks
This commit is contained in:
parent
9697937130
commit
0aa3ad0ce2
@ -13,7 +13,7 @@
|
||||
<ListView android:id="@+id/fileChooserView"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:layout_weight="2"
|
||||
android:scrollbars="vertical"
|
||||
android:fastScrollEnabled="true"
|
||||
android:padding="2dp"
|
||||
|
@ -152,7 +152,7 @@ public class FileChooser extends Activity
|
||||
private void fill(File f)
|
||||
{
|
||||
File[]dirs = f.listFiles();
|
||||
this.setTitle("Current Dir: "+f.getAbsolutePath());
|
||||
this.setTitle("Path: "+f.getAbsolutePath());
|
||||
List<Option>dir = new ArrayList<Option>();
|
||||
List<Option>fls = new ArrayList<Option>();
|
||||
try
|
||||
@ -228,7 +228,7 @@ public class FileChooser extends Activity
|
||||
|
||||
private void onFileClick(Option o)
|
||||
{
|
||||
Toast.makeText(this, "File Clicked: "+o.getName(), Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(this, "Loading: "+o.getName() + "...", Toast.LENGTH_SHORT).show();
|
||||
|
||||
Intent intent=new Intent();
|
||||
intent.putExtra(FileChooser.PAYLOAD_FILENAME, o.getPath());
|
||||
|
@ -24,6 +24,7 @@ public class main extends Activity
|
||||
{
|
||||
super.onCreate(savedInstanceState);
|
||||
|
||||
this.setTitle("RetroArch | Main");
|
||||
ctx_gl = new rgl_context(this);
|
||||
setContentView(ctx_gl);
|
||||
}
|
||||
@ -43,6 +44,7 @@ public class main extends Activity
|
||||
this.finish();
|
||||
break;
|
||||
case R.id.open:
|
||||
Toast.makeText(this, "Select a ROM image from the Filebrowser.", Toast.LENGTH_SHORT).show();
|
||||
Intent myIntent = new Intent(main.this, FileChooser.class);
|
||||
main.this.startActivity(myIntent);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user