title: How can I transform a Button in Android into a Facebook.LoginButton?
body: <p>I'm creating a library to implement a Facebook login without having to compile FacebookSDK directly in the project using the library, meaning, the library (i.e. FacebookLogingUtils) compiles the Facebook SDK and uses its methods to create simpler methods for a programmer to implement Facebook login. The programmer won't ever have to compile Facebook SDK since everything dealing with it is managed within the library.</p>
  
  <p>The issue is the following one: I want to provide the user with a button which they can call in their layout file instead of FacebookLogginButton, so once the button is received by the library, it will be converted into a Facebook.LoginButton and can be used as such. How can I do this? How can I change a button I receive as a parameter into a different kind of button and return it?</p>