Project

General

Profile

« Previous | Next » 

Revision 1cb36646

Added by Leszek Koltunski about 4 years ago

Make the top and bottom bars transparent, above the GLSurfaceView.

View differences:

src/main/res/layout/main.xml
1 1
<?xml version="1.0" encoding="utf-8"?>
2
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
2
<RelativeLayout  xmlns:android="http://schemas.android.com/apk/res/android"
3
    android:id="@+id/relativeLayout"
3 4
    android:layout_width="fill_parent"
4
    android:layout_height="fill_parent"
5
    android:orientation="vertical" >
5
    android:layout_height="fill_parent" >
6

  
7
    <org.distorted.main.RubikSurfaceView
8
        android:id="@+id/rubikSurfaceView"
9
        android:layout_width="fill_parent"
10
        android:layout_height="fill_parent"
11
        android:layout_alignParentStart="true"
12
        android:layout_alignParentTop="true"/>
6 13

  
7 14
    <LinearLayout
8 15
        android:id="@+id/upperBar"
16
        android:layout_alignParentTop="true"
9 17
        android:layout_width="fill_parent"
10 18
        android:layout_height="0dp"
11
        android:layout_weight="0.12"
12 19
        android:gravity="center"
13 20
        android:orientation="horizontal"
14 21
        android:background="@android:color/transparent">
15 22
    </LinearLayout>
16 23

  
17
    <org.distorted.main.RubikSurfaceView
18
        android:id="@+id/rubikSurfaceView"
19
        android:layout_width="fill_parent"
20
        android:layout_height="0dp"
21
        android:layout_weight="1" />
22

  
23 24
    <LinearLayout
24 25
        android:id="@+id/lowerBar"
26
        android:layout_alignParentBottom="true"
25 27
        android:layout_width="match_parent"
26 28
        android:layout_height="0dp"
27
        android:layout_weight="0.12"
28 29
        android:orientation="horizontal"
29 30
        android:background="@android:color/transparent">
30 31
    </LinearLayout>
31 32

  
32
</LinearLayout>
33
</RelativeLayout>

Also available in: Unified diff