(Android) Small tweaks

This commit is contained in:
Twinaphex 2012-06-19 09:55:02 +02:00
parent 9697937130
commit 0aa3ad0ce2
3 changed files with 5 additions and 3 deletions

View File

@ -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"

View File

@ -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());

View File

@ -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;