Project

General

Profile

Download (4.94 KB) Statistics
| Branch: | Revision:

examples / src / main / res / layout / meshfilelayout.xml @ 4d49605b

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

    
7
    <SeekBar
8
        android:id="@+id/meshfileScale"
9
        android:layout_width="match_parent"
10
        android:layout_height="wrap_content"
11
        android:paddingLeft="10dp"
12
        android:paddingRight="10dp"
13
        android:paddingTop="10dp"
14
        android:paddingBottom="10dp" />
15

    
16
    <org.distorted.examples.meshfile.MeshFileSurfaceView
17
        android:id="@+id/meshfileSurfaceView"
18
        android:layout_width="fill_parent"
19
        android:layout_height="0dp"
20
        android:layout_weight="1" />
21

    
22
    <LinearLayout
23
        android:orientation="horizontal"
24
        android:layout_width="match_parent"
25
        android:layout_height="wrap_content">
26

    
27
        <CheckBox
28
            android:layout_width="wrap_content"
29
            android:layout_height="match_parent"
30
            android:id="@+id/meshfileNormals"
31
            android:layout_weight="0.2"
32
            android:onClick="onNormals"
33
            android:checked="false"/>
34

    
35
        <Spinner
36
            android:layout_width="0dp"
37
            android:layout_height="wrap_content"
38
            android:layout_weight="0.9"
39
            android:id="@+id/meshfileSpinner"/>
40

    
41
        <Button
42
            android:id="@+id/meshfileButton"
43
            android:layout_width="100dp"
44
            android:layout_height="fill_parent"
45
            android:gravity="center_vertical|center"
46
            android:text="@string/open"
47
            android:onClick="Open"
48
            android:textAppearance="?android:attr/textAppearanceMedium"
49
            android:layout_gravity="center_vertical"/>
50

    
51
    </LinearLayout>
52

    
53
    <LinearLayout
54
        android:orientation="horizontal"
55
        android:layout_width="match_parent"
56
        android:layout_height="wrap_content">
57

    
58
        <TextView
59
                android:layout_width="wrap_content"
60
                android:layout_height="wrap_content"
61
                android:gravity="left"
62
                android:text="@string/vertices"
63
                android:textAppearance="?android:attr/textAppearanceMedium" />
64
        <TextView
65
                android:id="@+id/meshfileVertices"
66
                android:layout_width="0dp"
67
                android:layout_height="wrap_content"
68
                android:layout_weight="0.33"
69
                android:paddingLeft="5dp"
70
                android:gravity="right"
71
                android:textAppearance="?android:attr/textAppearanceSmall" />
72

    
73
        <TextView
74
                android:layout_width="wrap_content"
75
                android:layout_height="wrap_content"
76
                android:paddingLeft="5dp"
77
                android:gravity="left"
78
                android:text="@string/size"
79
                android:textAppearance="?android:attr/textAppearanceMedium" />
80
        <TextView
81
                android:id="@+id/meshfileSize"
82
                android:layout_width="0dp"
83
                android:layout_height="wrap_content"
84
                android:layout_weight="0.33"
85
                android:paddingLeft="5dp"
86
                android:gravity="right"
87
                android:textAppearance="?android:attr/textAppearanceSmall" />
88

    
89
        <TextView
90
                android:layout_width="wrap_content"
91
                android:layout_height="wrap_content"
92
                android:paddingLeft="5dp"
93
                android:gravity="left"
94
                android:text="@string/time"
95
                android:textAppearance="?android:attr/textAppearanceMedium" />
96
        <TextView
97
                android:id="@+id/meshfileTime"
98
                android:layout_width="0dp"
99
                android:layout_height="wrap_content"
100
                android:layout_weight="0.33"
101
                android:paddingLeft="5dp"
102
                android:gravity="right"
103
                android:textAppearance="?android:attr/textAppearanceSmall" />
104

    
105
    </LinearLayout>
106

    
107
    <View
108
        android:layout_height="4dip"
109
        android:background="#777777"
110
        android:layout_width="match_parent"
111
        />
112

    
113
    <TextView
114
          android:text="@string/effComponents"
115
          android:layout_width="wrap_content"
116
          android:layout_height="wrap_content"
117
          android:gravity="center"
118
          android:layout_marginEnd="5dp"
119
          android:layout_marginStart="5dp"
120
          android:layout_marginTop="5dp"/>
121

    
122
    <View
123
        android:layout_height="4dip"
124
        android:background="#777777"
125
        android:layout_width="match_parent"
126
        />
127

    
128
    <ScrollView
129
        android:id="@+id/meshfileScrollView"
130
        android:layout_width="match_parent"
131
        android:layout_height="0dp"
132
        android:layout_weight="0.5">
133

    
134
        <LinearLayout
135
            android:id="@+id/meshfileComponentLayout"
136
            android:layout_width="match_parent"
137
            android:layout_height="wrap_content"
138
            android:orientation="vertical" >
139
        </LinearLayout>
140

    
141
    </ScrollView>
142

    
143
</LinearLayout>
(33-33/54)