Blame view

app/src/main/res/layout/tutorial2_display.xml 1.77 KB
d55d5943   aarnaude   resolution Bravo
1
2
3
4
5
6
  <?xml version="1.0" encoding="utf-8"?>
  <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      android:orientation="vertical">
  
713264a5   aarnaude   ajout drag n drop...
7
8
9
10
11
12
13
  <LinearLayout
      android:id="@+id/ts2l1"
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:gravity="center"
      android:orientation="vertical">
  
d55d5943   aarnaude   resolution Bravo
14
15
16
      <TextView
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
713264a5   aarnaude   ajout drag n drop...
17
18
19
          android:layout_margin="5dp"
          android:textSize="15sp"
          android:text="Fais glisser le rectangle bleu sur le rectangle rouge." />
d55d5943   aarnaude   resolution Bravo
20
  
713264a5   aarnaude   ajout drag n drop...
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
      <ImageView
          android:id="@+id/blue_rectangle"
          android:layout_width="50dp"
          android:layout_height="50dp"
          android:layout_margin="50dp"
          android:background="@drawable/blue_rectangle"/>
  
  </LinearLayout>
  
      <RelativeLayout
          android:id="@+id/ts2r1"
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:layout_below="@id/ts2l1"
          android:orientation="vertical">
  
          <ImageView
              android:id="@+id/red_rectangle"
              android:layout_width="50dp"
              android:layout_height="50dp"
              android:layout_centerInParent="true"
              android:background="@drawable/red_rectangle" />
  
          <Button
              android:id="@+id/button_id_home"
              android:layout_width="wrap_content"
              android:layout_height="wrap_content"
              android:layout_alignParentBottom="true"
              android:layout_alignParentLeft="true"
              android:layout_margin="5dp"
              android:onClick="backHome"
              android:text="@string/home" />
  
      </RelativeLayout>
d55d5943   aarnaude   resolution Bravo
55
56
  
  </RelativeLayout>