  With the increasing interconnection of smart devices, users often desire to
adopt the same app on quite different devices for identical tasks, such as
watching the same movies on both their smartphones and TVs. However, the
significant differences in screen size, aspect ratio, and interaction styles
make it challenging to adapt Graphical User Interfaces (GUIs) across these
devices. Although there are millions of apps available on Google Play, only a
few thousand are designed to support smart TV displays. Existing techniques to
map a mobile app GUI to a TV either adopt a responsive design, which struggles
to bridge the substantial gap between phone and TV or use mirror apps for
improved video display, which requires hardware support and extra engineering
efforts. Instead of developing another app for supporting TVs, we propose a
semi-automated approach to generate corresponding adaptive TV GUIs, given the
phone GUIs as the input. Based on our empirical study of GUI pairs for TVs and
phones in existing apps, we synthesize a list of rules for grouping and
classifying phone GUIs, converting them to TV GUIs, and generating dynamic TV
layouts and source code for the TV display. Our tool is not only beneficial to
developers but also to GUI designers, who can further customize the generated
GUIs for their TV app development. An evaluation and user study demonstrate the
accuracy of our generated GUIs and the usefulness of our tool.
