Project

General

Profile

« Previous | Next » 

Revision eb49fa90

Added by Leszek Koltunski over 2 years ago

Use the off-center objects to display the object in Tutorial mode properly.
Now it is not covered by the right bar!

View differences:

src/main/res/layout/tutorial.xml
13 13
        android:layout_height="0dp"
14 14
        android:layout_weight="1"/>
15 15

  
16
    <LinearLayout
16
    <RelativeLayout
17 17
        android:id="@+id/tutorialLowerPart"
18 18
        android:layout_width="match_parent"
19 19
        android:layout_height="0dp"
20
        android:layout_weight="1.2"
21
        android:orientation="horizontal"
22
        android:background="@android:color/transparent">
20
        android:layout_weight="1.2">
23 21

  
24 22
        <org.distorted.tutorials.TutorialSurfaceView
25 23
           android:id="@+id/tutorialSurfaceView"
26
           android:layout_width="0dp"
27
           android:layout_height="match_parent"/>
24
           android:layout_width="match_parent"
25
           android:layout_height="match_parent"
26
           android:layout_alignParentStart="true"/>
28 27

  
29 28
        <LinearLayout
30 29
           android:id="@+id/tutorialRightBar"
30
           android:layout_alignParentRight="true"
31 31
           android:layout_width="0dp"
32 32
           android:layout_height="match_parent"
33

  
34 33
           android:orientation="vertical"
35 34
           android:background="@android:color/transparent">
35
        </LinearLayout>
36 36

  
37
    </RelativeLayout>
38
</LinearLayout>
37 39

  
38
        </LinearLayout>
39
    </LinearLayout>
40
</LinearLayout>

Also available in: Unified diff