I am trying to turn a couple buttons into a reusable component in Android. I have successfully gotten the XML / UI portion working, but I can\'t figure out how to make code
By using in XML layout, you're making only the layout reusable, not any Java code that uses it.
You must create a subclass of View, if you want to reuse Java logic as well. The tutorial from your link has a sample that fits your need very well:
public class OkCancelBar extends LinearLayout { ...