Project

General

Profile

« Previous | Next » 

Revision 56cbe1cf

Added by Leszek Koltunski almost 8 years ago

Re-write Vertex3D to provide similar functionality to Fragment3D (displaying the center and region bitmaps still missing)

View differences:

src/main/res/layout/vertex3dlayout.xml
13 13
    <LinearLayout
14 14
        android:orientation="horizontal"
15 15
        android:layout_width="match_parent"
16
        android:layout_height="wrap_content"
17
        android:layout_marginBottom="5dp"
18
        android:background="@android:color/holo_green_dark">
16
        android:layout_height="50dp"
17
        android:layout_gravity="center">
19 18

  
20
        <LinearLayout
21
            android:orientation="vertical"
22
            android:layout_width="0dp"
23
            android:layout_height="match_parent"
24
            android:layout_weight="0.8">
25

  
26
            <TextView
27
                android:id="@+id/vertex3dcenterText"
28
                android:layout_width="wrap_content"
29
                android:layout_height="wrap_content"
30
                android:layout_marginEnd="5dp"
31
                android:layout_marginStart="5dp"
32
                android:layout_marginTop="3dp"
33
                />
34

  
35
            <LinearLayout
36
                android:orientation="horizontal"
37
                android:layout_width="match_parent"
38
                android:layout_height="match_parent"
39
                >
40

  
41
                <SeekBar
42
                    android:layout_width="fill_parent"
43
                    android:layout_height="wrap_content"
44
                    android:id="@+id/vertex3dcenterX"
45
                    android:layout_weight="0.5"
46
                    android:paddingLeft="5dp"
47
                    android:paddingRight="3dp"/>
19
        <Button
20
            android:layout_width="wrap_content"
21
            android:layout_height="wrap_content"
22
            android:text="@string/Add"
23
            android:id="@+id/buttonAdd"
24
            android:onClick="newEffect"
25
            />
48 26

  
49
                <SeekBar
50
                    android:layout_width="fill_parent"
51
                    android:layout_height="wrap_content"
52
                    android:id="@+id/vertex3dcenterY"
53
                    android:layout_weight="0.5"
54
                    android:paddingLeft="3dp"
55
                    android:paddingRight="5dp"/>
56
            </LinearLayout>
27
        <TextView
28
            android:layout_width="wrap_content"
29
            android:layout_height="wrap_content"
30
            android:textAppearance="?android:attr/textAppearanceMedium"
31
            android:text="@string/New"
32
            android:id="@+id/textView10"/>
57 33

  
58
        </LinearLayout>
34
        <Spinner
35
            android:layout_width="wrap_content"
36
            android:layout_height="wrap_content"
37
            android:id="@+id/vertex3dspinner"
38
            android:layout_weight="0.5"/>
59 39

  
60 40
        <Button
61
            android:id="@+id/buttonDefault"
62
            android:layout_width="60dp"
41
            android:layout_width="wrap_content"
63 42
            android:layout_height="wrap_content"
64
            android:onClick="Default"
65
            android:text="@string/reset"
66
            android:layout_gravity="right"
67
            android:layout_marginTop="3dp"/>
43
            android:text="@string/RemoveAll"
44
            android:id="@+id/buttonRemove"
45
            android:onClick="removeAll"
46
            />
47

  
68 48
    </LinearLayout>
69 49

  
50
    <View
51
        android:layout_height="4dip"
52
        android:background="#777777"
53
        android:layout_width="match_parent"
54
        />
55

  
70 56
    <ScrollView
71 57
        android:id="@+id/vertex3dscrollView"
72 58
        android:layout_width="match_parent"
73 59
        android:layout_height="0dp"
74
        android:layout_weight="0.82" >
60
        android:layout_weight="0.82"
61
        >
75 62

  
76 63
        <LinearLayout
77 64
            android:id="@+id/vertex3dlayout"

Also available in: Unified diff