Commit 2d1b24f6c7c5ad8a643bcaa1703e33cedadf3320
1 parent
cb0a61d8
modifications pour adaptation des écrans
Showing
6 changed files
with
35 additions
and
15 deletions
Show diff stats
app/src/main/AndroidManifest.xml
@@ -9,13 +9,13 @@ | @@ -9,13 +9,13 @@ | ||
9 | android:allowBackup="true" | 9 | android:allowBackup="true" |
10 | android:icon="@mipmap/ic_launcher" | 10 | android:icon="@mipmap/ic_launcher" |
11 | android:label="@string/app_name" | 11 | android:label="@string/app_name" |
12 | - android:screenOrientation="landscape" | 12 | + |
13 | android:supportsRtl="true" | 13 | android:supportsRtl="true" |
14 | android:theme="@style/AppTheme"> | 14 | android:theme="@style/AppTheme"> |
15 | <activity | 15 | <activity |
16 | android:name=".MainActivity" | 16 | android:name=".MainActivity" |
17 | android:label="@string/app_name" | 17 | android:label="@string/app_name" |
18 | - android:screenOrientation="landscape"> | 18 | + > |
19 | <intent-filter> | 19 | <intent-filter> |
20 | <action android:name="android.intent.action.MAIN" /> | 20 | <action android:name="android.intent.action.MAIN" /> |
21 | 21 | ||
@@ -27,28 +27,28 @@ | @@ -27,28 +27,28 @@ | ||
27 | <activity | 27 | <activity |
28 | android:name=".activity_age1" | 28 | android:name=".activity_age1" |
29 | android:label="@string/app_name" | 29 | android:label="@string/app_name" |
30 | - android:screenOrientation="landscape" /> | 30 | + /> |
31 | <activity | 31 | <activity |
32 | android:name=".activity_age2" | 32 | android:name=".activity_age2" |
33 | android:label="@string/app_name" | 33 | android:label="@string/app_name" |
34 | - android:screenOrientation="landscape" /> | 34 | + /> |
35 | <activity android:name=".activity_age3" /> | 35 | <activity android:name=".activity_age3" /> |
36 | <activity | 36 | <activity |
37 | android:name=".educ3" | 37 | android:name=".educ3" |
38 | android:label="@string/app_name" | 38 | android:label="@string/app_name" |
39 | - android:screenOrientation="landscape" /> | 39 | + /> |
40 | <activity | 40 | <activity |
41 | android:name=".educ2" | 41 | android:name=".educ2" |
42 | android:label="@string/app_name" | 42 | android:label="@string/app_name" |
43 | - android:screenOrientation="landscape" /> | 43 | + /> |
44 | <activity | 44 | <activity |
45 | android:name=".educ1" | 45 | android:name=".educ1" |
46 | android:label="@string/app_name" | 46 | android:label="@string/app_name" |
47 | - android:screenOrientation="landscape" /> | 47 | + /> |
48 | <activity | 48 | <activity |
49 | android:name=".activity_hop" | 49 | android:name=".activity_hop" |
50 | android:label="@string/app_name" | 50 | android:label="@string/app_name" |
51 | - android:screenOrientation="landscape" /> | 51 | + /> |
52 | <activity | 52 | <activity |
53 | android:name=".plan_hospital" | 53 | android:name=".plan_hospital" |
54 | android:label="@string/app_name" | 54 | android:label="@string/app_name" |
app/src/main/res/layout/activity_main.xml
@@ -28,7 +28,7 @@ | @@ -28,7 +28,7 @@ | ||
28 | android:layout_marginBottom="76dp" | 28 | android:layout_marginBottom="76dp" |
29 | android:layout_above="@+id/savoir_plus" | 29 | android:layout_above="@+id/savoir_plus" |
30 | android:textColor="@android:color/background_light" | 30 | android:textColor="@android:color/background_light" |
31 | - android:textSize="24sp" | 31 | + android:textSize="@dimen/txtmenu" |
32 | tools:ignore="HardcodedText,UnusedAttribute" | 32 | tools:ignore="HardcodedText,UnusedAttribute" |
33 | android:onClick="send_age2" | 33 | android:onClick="send_age2" |
34 | android:layout_alignRight="@+id/age1" | 34 | android:layout_alignRight="@+id/age1" |
@@ -45,7 +45,7 @@ | @@ -45,7 +45,7 @@ | ||
45 | android:layout_above="@+id/savoir_plus" | 45 | android:layout_above="@+id/savoir_plus" |
46 | android:layout_marginBottom="12dp" | 46 | android:layout_marginBottom="12dp" |
47 | android:textColor="@android:color/background_light" | 47 | android:textColor="@android:color/background_light" |
48 | - android:textSize="24sp" | 48 | + android:textSize="@dimen/txtmenu" |
49 | tools:ignore="HardcodedText,UnusedAttribute" | 49 | tools:ignore="HardcodedText,UnusedAttribute" |
50 | android:onClick="send_age3" | 50 | android:onClick="send_age3" |
51 | android:layout_alignLeft="@+id/age2" | 51 | android:layout_alignLeft="@+id/age2" |
@@ -62,7 +62,7 @@ | @@ -62,7 +62,7 @@ | ||
62 | android:layout_marginBottom="15dp" | 62 | android:layout_marginBottom="15dp" |
63 | android:layout_above="@+id/age2" | 63 | android:layout_above="@+id/age2" |
64 | android:textColor="@android:color/background_light" | 64 | android:textColor="@android:color/background_light" |
65 | - android:textSize="24sp" | 65 | + android:textSize="@dimen/txtmenu" |
66 | tools:ignore="HardcodedText,UnusedAttribute" | 66 | tools:ignore="HardcodedText,UnusedAttribute" |
67 | android:onClick="send_age1" | 67 | android:onClick="send_age1" |
68 | android:layout_alignRight="@+id/hop_jour" | 68 | android:layout_alignRight="@+id/hop_jour" |
@@ -78,7 +78,7 @@ | @@ -78,7 +78,7 @@ | ||
78 | android:backgroundTint="@color/colorPrimary" | 78 | android:backgroundTint="@color/colorPrimary" |
79 | android:layout_marginBottom="26dp" | 79 | android:layout_marginBottom="26dp" |
80 | android:textColor="@android:color/background_light" | 80 | android:textColor="@android:color/background_light" |
81 | - android:textSize="24sp" | 81 | + android:textSize="@dimen/txtmenu" |
82 | tools:ignore="UnusedAttribute" | 82 | tools:ignore="UnusedAttribute" |
83 | android:onClick="send_savoirplus" | 83 | android:onClick="send_savoirplus" |
84 | android:layout_alignParentBottom="true" | 84 | android:layout_alignParentBottom="true" |
@@ -94,7 +94,7 @@ | @@ -94,7 +94,7 @@ | ||
94 | android:layout_height="wrap_content" | 94 | android:layout_height="wrap_content" |
95 | android:textColor="@android:color/background_light" | 95 | android:textColor="@android:color/background_light" |
96 | android:id="@+id/hop_jour" | 96 | android:id="@+id/hop_jour" |
97 | - android:textSize="24sp" | 97 | + android:textSize="@dimen/txtmenu" |
98 | tools:ignore="HardcodedText,UnusedAttribute" | 98 | tools:ignore="HardcodedText,UnusedAttribute" |
99 | android:layout_marginBottom="15dp" | 99 | android:layout_marginBottom="15dp" |
100 | android:onClick="send_hop" | 100 | android:onClick="send_hop" |
@@ -108,7 +108,7 @@ | @@ -108,7 +108,7 @@ | ||
108 | android:id="@+id/imageView6" | 108 | android:id="@+id/imageView6" |
109 | tools:ignore="RtlHardcoded" | 109 | tools:ignore="RtlHardcoded" |
110 | android:contentDescription="@string/ok" | 110 | android:contentDescription="@string/ok" |
111 | - android:layout_marginTop="59dp" | 111 | + android:layout_marginTop="@dimen/hauteurimage" |
112 | android:layout_below="@+id/textView5" | 112 | android:layout_below="@+id/textView5" |
113 | android:layout_centerHorizontal="true" /> | 113 | android:layout_centerHorizontal="true" /> |
114 | 114 | ||
@@ -117,7 +117,7 @@ | @@ -117,7 +117,7 @@ | ||
117 | android:backgroundTint="@color/colorPrimary" | 117 | android:backgroundTint="@color/colorPrimary" |
118 | android:layout_width="wrap_content" | 118 | android:layout_width="wrap_content" |
119 | android:textColor="@android:color/background_light" | 119 | android:textColor="@android:color/background_light" |
120 | - android:textSize="24sp" | 120 | + android:textSize="@dimen/txtmenu" |
121 | tools:ignore="HardcodedText,UnusedAttribute" | 121 | tools:ignore="HardcodedText,UnusedAttribute" |
122 | android:layout_height="wrap_content" | 122 | android:layout_height="wrap_content" |
123 | android:text="MàJ" | 123 | android:text="MàJ" |