Project

General

Profile

« Previous | Next » 

Revision bfcf419a

Added by Leszek Koltunski over 7 years ago

Improvements for the 'Cubes' and 'Effects3D' apps.

View differences:

src/main/res/layout/cubespickerlayout.xml
1 1
<?xml version="1.0" encoding="utf-8"?>
2 2

  
3 3
   <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
4
    android:orientation="vertical"
5
    android:layout_width="match_parent"
6
    android:layout_height="match_parent">
4
       android:orientation="vertical"
5
       android:layout_width="match_parent"
6
       android:layout_height="match_parent">
7 7

  
8 8
       <LinearLayout
9
        android:orientation="horizontal"
10
        android:layout_width="match_parent"
11
        android:layout_height="wrap_content">
9
           android:orientation="horizontal"
10
           android:layout_width="match_parent"
11
           android:layout_height="wrap_content">
12 12

  
13
        <NumberPicker
14
         android:id="@+id/cubespicker_rows"
15
         android:layout_width="wrap_content"
16
         android:layout_height="wrap_content"
17
         android:orientation="vertical"
18
         android:layout_span="1"
19
         />
13
           <NumberPicker
14
               android:id="@+id/cubespicker_rows"
15
               android:layout_width="wrap_content"
16
               android:layout_height="wrap_content"
17
               android:orientation="vertical"
18
               android:descendantFocusability="blocksDescendants"
19
           />
20 20

  
21
        <NumberPicker
22
         android:id="@+id/cubespicker_cols"
23
         android:layout_width="wrap_content"
24
         android:layout_height="wrap_content"
25
         android:orientation="vertical"
26
         android:layout_span="2"/>
21
           <NumberPicker
22
               android:id="@+id/cubespicker_cols"
23
               android:layout_width="wrap_content"
24
               android:layout_height="wrap_content"
25
               android:orientation="vertical"
26
               android:descendantFocusability="blocksDescendants"
27
           />
27 28

  
28
        <Button
29
            android:id="@+id/cubespicker_create"
30
            android:onClick="Create"
31
            android:text="@string/Create"
32
            android:layout_width="match_parent"
33
            android:layout_height="fill_parent"
34
            android:layout_span="3"
35
            android:layout_marginTop="5dp"/>
36
    </LinearLayout>
29
           <Button
30
               android:id="@+id/cubespicker_create"
31
               android:onClick="Create"
32
               android:text="@string/Create"
33
               android:layout_width="match_parent"
34
               android:layout_height="fill_parent"
35
           />
36
       </LinearLayout>
37 37

  
38 38
       <LinearLayout
39
        android:id="@+id/cubespicker_buttongrid"
40
        android:layout_width="match_parent"
41
        android:layout_height="fill_parent"
42
        android:gravity="center"
43
        android:orientation="vertical"
44
        android:layout_weight="0.8">
45
    </LinearLayout>
39
           android:id="@+id/cubespicker_buttongrid"
40
           android:layout_width="match_parent"
41
           android:layout_height="0dp"
42
           android:gravity="center"
43
           android:orientation="vertical"
44
           android:layout_weight="0.8">
45
       </LinearLayout>
46 46

  
47 47
   </LinearLayout>

Also available in: Unified diff