Added: 2 years ago
From: robertMacHale
Views: 10,037
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (17)

Sign In or Sign Up now to post a comment!
  • As a user of 10+ other languages, I'm not sure I like the way they did this.... But thanks for showing us how it works :)

  • I have to agree. MSVC did this same mechanism in 1991, i.e. lookup the control. This is a productivity drain.

  • Thanks for postng this tutorial! I have a comfortable understanding of Java and the drag and drop GUI builder for Eclipse is great ... only thing I couldn't grasp was how to bind a control / widget with Java methods / variables - This tute helps a great deal! Thanks once again :) U get my sub :)

  • What a joke are Java and Android SDK. :-|

    You spent 5 minutes just to add an onclick handler?!

    In .NET you doubleclick the goddamn button and that's it, nothing to type, nothing to search by resource ID, just doubleclick!

    Switch to .NET step into a XXI century!

  • @TheMrColak :: Apples & Oranges...the UI Builder in Visual Studio 2010 is awesome. Are you judging the Android platform based on the Eclipse text editor and UI Builder? Keep looking deeper, there is a brighter future in the Android Mobile pathway than you may have noticed. (:o) RM

  • @TheMrColak yeah that's a great idea. .net is on so many phones these days... ha!

  • Check to see if the event binding for onClick is setup via OnClickListener. The LogCat is available through a standard import statement. Thanks. RM

  • I don't have any entries in my LogCat, you have others besides your "OnClick", do I have to enable logging somewhere?

  • Comment removed

  • thanks. That was great.

    does anyone know how to use the onClick feild in the properties box? why can you just put a "call this funciton" thing in there?

  • The content of R.java is auto-generated. So, there is no need to place content here. When an image is imported, or a button added, then Eclipse takes care of this file. RM

  • thanks man.... this really helped... trying to bind from my SQLite to my android ui button....

  • I am having the same problem Stef.

    If I try to change the R.java file manually it just deletes it when it saves.

    is there a way of getting hold of the complete files so that we can have a look at them ?

    Otherwise it's a very good, well paced tutorial.

  • when did the Id-class in R get created?

  • @StefConEnterprises Put an adroid:id="@+id\widget_id" into its tag in the layout xml

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more