上QQ阅读APP看书,第一时间看更新
Defining layouts
Wearable applications can use the same layouts that we use in handheld Android device programming but with specific constraints for Wear applications. We should not do heavy processing actions similar to handheld Android devices in Wear applications and expect a good user experience.
An application designed for a round screen will not look great on square Wear devices. To resolve this, the Android Wear support library comes with the following two solutions:
- BoxInsetLayout
- Curved Layout
We can provide different resources to allow Android to detect the shape of the Android Wear at runtime.