I recently installed and checked my application on Amazon's FireTV and found that it has some Display setup settings from which user can adjust the screen or use default which is a Zoomed in display for the device making the application views not properly displayed and being cut from the edges.
I cam basically add this snipped and in each Activity try to set the margins to the layout:
public static boolean isFireTv() {
return android.os.Build.MANUFACTURER.equalsIgnoreCase("Amazon")
&& (android.os.Build.MODEL.equalsIgnoreCase("AFTB") );
}
However, it doesn't seem right so i want to know if there is any better solution for it. Something in XML or a better way of doing it through code