From e579aee986afa31495fafb7274be905a3a69eb33 Mon Sep 17 00:00:00 2001 From: Equip de Desenvolupadors de PBE Date: Sat, 8 Dec 2012 11:13:56 +0000 Subject: [PATCH] --- gen/com/upc/pbe/upcnews/R.java | 13 ++++++------- src/com/upc/pbe/upcnews/MainActivity.java | 7 +++---- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/gen/com/upc/pbe/upcnews/R.java b/gen/com/upc/pbe/upcnews/R.java index b1e4f23..e344092 100644 --- a/gen/com/upc/pbe/upcnews/R.java +++ b/gen/com/upc/pbe/upcnews/R.java @@ -21,17 +21,16 @@ public final class R { public static final class id { public static final int AbsoluteLayout1=0x7f090006; public static final int LinearLayout1=0x7f090001; - public static final int button=0x7f090008; - public static final int itemhelp=0x7f09000d; - public static final int itemprefs=0x7f09000c; + public static final int button=0x7f090007; + public static final int itemhelp=0x7f09000c; + public static final int itemprefs=0x7f09000b; public static final int listView1=0x7f090003; - public static final int menu_settings=0x7f09000b; - public static final int rowTextView=0x7f09000a; + public static final int menu_settings=0x7f09000a; + public static final int rowTextView=0x7f090009; public static final int textView1=0x7f090004; public static final int textView2=0x7f090005; - public static final int textViewRoute=0x7f090007; public static final int textViewTitle=0x7f090002; - public static final int textViewXml=0x7f090009; + public static final int textViewXml=0x7f090008; public static final int videoView1=0x7f090000; } public static final class layout { diff --git a/src/com/upc/pbe/upcnews/MainActivity.java b/src/com/upc/pbe/upcnews/MainActivity.java index 750101a..992bbc8 100644 --- a/src/com/upc/pbe/upcnews/MainActivity.java +++ b/src/com/upc/pbe/upcnews/MainActivity.java @@ -11,7 +11,7 @@ import android.view.Menu; import android.view.MenuItem; import android.view.View; import android.view.View.OnClickListener; -import android.widget.Button; +import android.widget.ImageButton; import android.widget.TextView; import android.widget.Toast; @@ -21,7 +21,7 @@ public class MainActivity extends Activity implements OnClickListener { WifiManager wifi; Directoris dir; - Button buttonDescarrega; + ImageButton buttonDescarrega; String file = "ejemplo.xml"; String folder = "Environment.getExternalStorageDirectory.getPath()"; TextView showText, showRoute; @@ -32,10 +32,9 @@ public class MainActivity extends Activity implements OnClickListener { super.onCreate(savedInstanceState); setContentView(R.layout.main_activity); Log.d(TAG, "onCreated"); - buttonDescarrega = (Button) findViewById(R.id.button); + buttonDescarrega = (ImageButton) findViewById(R.id.button); buttonDescarrega.setOnClickListener(this); showText = (TextView) findViewById(R.id.textViewXml); - showRoute = (TextView) findViewById(R.id.textViewRoute); this.getUrl(); new Thread() { -- libgit2 0.22.2