Questions tagged [boxinsetlayout]

BoxInsetLayout is a more advanced and flexible version of WatchViewStub. It was introduced with the Android wear 2.0, but is also available as part of the Support Library

BoxInsetLayout is a screen shape-aware FrameLayout that can box its children in the center square of a round screen by using the layout_box attribute. The values for this attribute specify the child's edges to be boxed in: left|top|right|bottom or all. The layout_box attribute is ignored on a device with a rectangular screen.

2 questions
0
votes
2 answers

Layout gets cropped on round chin

The layout below gets cropped on a round chin Wear device. The round chin Wear device only displays the first TextView.
rminaj
  • 560
  • 6
  • 28
0
votes
1 answer

how to apply different styles to views for round & square watches inside BoxInsetLayout?

I am using LinearLayout inside BoxInsetLayout and required to have gravity center for round face & left for square face. It's possible with WatchViewStub but i have to use BoxInsetLayout. so is there way we can apply 2 different styles for each…
Sanket Kachhela
  • 10,861
  • 8
  • 50
  • 75