Don't make it a View... Make it a Button.  Button inherits from TextView.
http://developer.android.com/reference/android/widget/Button.html

Thanks,
Justin

----------------------------------------------------------------------
There are only 10 types of people in the world...
Those who know binary and those who don't.
----------------------------------------------------------------------


On Tue, Sep 15, 2009 at 8:01 PM, cellurl <[email protected]> wrote:

>
> Heres my code.
> I don't see a .setText for View.
> I guess I am confusing button and view.
> thanks for any help.
> jp
>
>
> --------AndroidManifest.xml--------------
>
>        <activity android:name=".About25"
>                android:label="@string/about_title"
>                android:theme="@android:style/Theme.Dialog">
>        </activity>
>
>
> -------Translate.java----------------
>
>
>   private void findViews
>      // Set up click listeners for all the buttons
>      View aboutButton25 = findViewById(R.id.about_button25);
>      aboutButton25.setOnClickListener(this);
>
>      broke here <<<<<<??>>>>>>
>      if(mph) {
>         aboutButton25.setText("25 Mph");
>      } else {
>         aboutButton25.setText("25 Kph");
>      }
>
>   }
>
>
>   public void onClick(View v) {
>
>      switch (v.getId()) {
>
>      case R.id.about_button25:
>         Intent i25 = new Intent(this, About25.class);
>         startActivity(i25);
>         break;
>   }
>
>
> ------About25.java-----------
>
>
> public class About25 extends Activity {
>
> }
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to