Any user interface for phones and tablets


#1

Is it possible to do so. When you run the application on your phone to start up a html file, and another file on the tablet?


#2

I just looked up the device plugin from cordova and it doesn’t seem to differentiate between phones and tablets (to my knowledge). But if it was possible, I wouldn’t suggest doing so. There would be performance and UX issues as you try to figure out what device you’re on (phone/tablet).

Your best bet would be to work something up and use CSS for an adaptive layouts that can adjust to work with the change in screen sizes across all supported devices.


#3

I agree with @mhartington Your best bet is to use media queries to layout according to device size. If you really want to go down a rabbit hole, you could use ng-if based on some device detection - that would be easier than separate HTML files.


#4

Is there a some example?