Is Google Glass an added margin to activity?

When building layouts for glass using Activity and Fragment, it seems that there are some additional layout layouts on top, left, right, and bottom. Is there any way to reset what?

+4
source share
2 answers

Do you also see these fields if you are making a screencast for your mobile phone? In my case, if I do not set any field for the main layout of my activity, I can see some margin, as you say, but if I make a screencast for my mobile device (using the MyGlass application), I will check that there is no field.

0
source

40 , .

, 0, , , :

<AbsoluteLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent">
    <ImageView
        android:layout_height="match_parent"
        android:layout_width="match_parent"
        android:src="@drawable/bg" 
    />
</AbsoluteLayout>

" " (640x350).

, , , , , .

0

Source: https://habr.com/ru/post/1540202/


All Articles