In this code we are placing two TextViews inside our BoxInsetLayout. One will be placed on the bottom right corner, and the other will be placed on the upper left corner. With the layout_box attribute, we are also specifying that we want them to adapt their position on round screens, so the first one will be boxed on the upper left corner, and the second one will be boxed on the bottom right.
If we display this layout in a square Android Wear device, we’ll see no difference between the BoxInsetLayout and a normal FrameLayout.
But when testing our layout on a round screen, we will see that the layout_box rules we added are affecting to the TextView’s position.
As we can see, the TextViews are in the corners of the round screen. If no layout_box attribute is specified, we would have this:
Well, I wasn’t sure about if this post was appropiate for this blog or not. A 10-inch tablet running Windows 8.1 is actually a mobile device, plus this info may be helpful, so I decided to include it ;-).
If you find this error, that is becoming very usual as you may notice in forums, check if you are infected by the Binkiland virus.
When on the black screen, Hit Ctrl+Alt+Del.
Go to Task Manager, then Apps or Applications.
Right-click one of them, and select “Find on explorer”. You will have an access to a window running the Explorer.
Inside it, click on Control Panel, and then Uninstall an Application.
Select all applications related to “Binkiland” (there will be more than one), and delete them.
Windows will go back to its normal state, or at least it did in my tablet.
I strongly recommend to factory reset your device after this.
Hope it helps! Made me waste an hour to find this solution 😦
Note that Android Studio will suggest you to use yourapp:showAsAction instead of android:showAsAction, adding a new xml namespace (xmlns:android=”…” on the root element). DON’T DO THAT if you are not using the android-support-v7-appcompat library! Search view will never be displayed.
Don’t fix this issue if you are not using android-support-v7-appcompat. Leave the warning unmodified. Hope this saves you all the time i wasted discovering it 😛