Hey guys i have an implementation doubt.
Im use different types of buttons, Android.Widget.Button, Google.Android.Material.Button, Android.Widget.CompoundButton, etc and i need to have a way to perform some text validations before displaying the text itself.
Right now i have different custom views that extend the different types of buttons that i use but this doesnt seem the best way to do it. Isnt there a easier way to do it? Like having some sort of generic Button that can handle all of these different cases?
public CustomButton : Button
{
//Constructors
override SetText....
}
public CustomButton2 : MaterialButton
{
//Constructors
override SetText....
}