IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Android Discussion :

Zone saisie texte et clavier


Sujet :

Android

  1. #1
    Membre à l'essai
    Homme Profil pro
    infirmier
    Inscrit en
    Février 2014
    Messages
    23
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France

    Informations professionnelles :
    Activité : infirmier

    Informations forums :
    Inscription : Février 2014
    Messages : 23
    Points : 15
    Points
    15
    Par défaut Zone saisie texte et clavier
    Bonjour à tous et encore une fois merci pour tout ce que vous faites.

    J'ai un petit souci (toujours mon appli infirmier).
    J'ai créé une activité qui me permet de calculer des posologies de médicaments en fonction du poids de l'enfant.

    Or je ne sais pourquoi quand je lance l'activité, le clavier virtuel du téléphone s'affiche automatiquement et j'aimerais qu'il ne s'affiche que lorsqu'on clique sur le poids. Savez-vous pourquoi et comment faire???

    Merci par avance

    code java:
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    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
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    package app.reaped;
     
    import android.os.Bundle;
    import android.app.Activity;
    import android.text.Editable;
    import android.text.TextWatcher;
    import android.view.Menu;
    import android.view.View;
    import android.view.View.OnClickListener;
    import android.widget.Button;
    import android.widget.EditText;
    import android.widget.TextView;
    import android.widget.Toast;
     
    public class Antalgiques extends Activity {
    	private final String defaut = "";
     
    	EditText poids = null;
     
    	Button calcul = null;
    	Button raz = null;
     
    	TextView poso_paracetamol = null;
    	TextView paracetamol = null;
    	TextView acupan = null;
    	TextView codenfan = null;
    	TextView tramadol = null;
    	TextView morphineIV = null;
    	TextView morphineIV_titration = null;
    	TextView morphinePO = null;
    	TextView morphinePO_prise = null;
    	TextView durogesic = null;
    	TextView nubain = null;
    	TextView spasfon = null;
    	TextView catapressanIV = null;
    	TextView catapressanPO = null;
    	TextView ketamine = null;
     
    	@Override
    	protected void onCreate(Bundle savedInstanceState) {
    		super.onCreate(savedInstanceState);
    		setContentView(R.layout.antalgiques);
     
    		poids = (EditText)findViewById(R.id.poids);
     
    		calcul = (Button)findViewById(R.id.calcul);
    		raz = (Button)findViewById(R.id.raz);
     
    		poso_paracetamol = (TextView)findViewById(R.id.poso);
    		paracetamol = (TextView)findViewById(R.id.paracetamol);
    		acupan = (TextView)findViewById(R.id.acupan);
    		codenfan = (TextView)findViewById(R.id.codenfan);
    		tramadol = (TextView)findViewById(R.id.tramadol);
    		morphineIV = (TextView)findViewById(R.id.morphineIV);
    		morphineIV_titration = (TextView)findViewById(R.id.morphineIV_titration);
    		morphinePO = (TextView)findViewById(R.id.morphinePO);
    		morphinePO_prise = (TextView)findViewById(R.id.morphinePO_prise);
    		durogesic = (TextView)findViewById(R.id.durogesic);
    		nubain = (TextView)findViewById(R.id.nubain);
    		spasfon = (TextView)findViewById(R.id.spasfon);
    		catapressanIV = (TextView)findViewById(R.id.catapressanIV);
    		catapressanPO = (TextView)findViewById(R.id.catapressanPO);
    		ketamine = (TextView)findViewById(R.id.ketamine);
     
     
     
    		poids.addTextChangedListener(new TextWatcher() {
     
     
     
    			@Override
    			public void beforeTextChanged(CharSequence s, int start, int count, int after) {
    				// TODO Auto-generated method stub
     
    			}
     
    			@Override
    			public void onTextChanged(CharSequence s, int start, int before, int count) {
    				// TODO Auto-generated method stub
     
    			}
     
    			@Override
    			public void afterTextChanged(Editable s) {
    				// TODO Auto-generated method stub
     
    			}
     
    		});
     
     
    		calcul.setOnClickListener(new OnClickListener() {
     
    			@Override
    			public void onClick(View v) {
    				// TODO Auto-generated method stub
    				String p = poids.getText().toString();
     
    				if (p.equals("")) Toast.makeText(Antalgiques.this, "Veuillez saisir un poids.", Toast.LENGTH_SHORT).show();
    				else {
    					float pValue = Float.valueOf(p);				
     
    					if (pValue > 0) {
    						if (pValue*15*4 > 4000) {
    							poso_paracetamol.setText("15mg/kg/6H");
    							paracetamol.setText("1g/6H");
    						}
    						else {
    							if (pValue >= 10) {
    								poso_paracetamol.setText("15mg/kg/6H");
    								paracetamol.setText(String.valueOf(Math.round(pValue*15)) + "mg/6H");
    							}
    							else {
    								if (pValue < 1.8) {
    									poso_paracetamol.setText("IV: 7,5mg/kg/12H");
    									paracetamol.setText(String.valueOf(Math.round(pValue*7.5)) + "mg/12H");
    								}
    								else {
    									if (pValue < 3) {
    										poso_paracetamol.setText("IV: 7,5mg/kg/8H");
    										paracetamol.setText(String.valueOf(Math.round(pValue*7.5)) + "mg/8H");
    									}
    									else {
    										poso_paracetamol.setText("IV: 7,5mg/kg/6H");
    										paracetamol.setText(String.valueOf(Math.round(pValue*7.5)) + "mg/6H");
    									}
    								}
    							}	
    						}
     
     
    						if (pValue*1.5 > 120) acupan.setText("120mg/j");
    						else {
    							if (pValue < 6) {
    								float acup = Math.round(pValue*1.5*100);
    								acupan.setText(String.valueOf(acup/100) + "mg/j");
    								float codenf = Math.round(pValue*100);
    								if (pValue >= 1) codenfan.setText(String.valueOf(codenf/100) + "mg/6H");
    								else codenfan.setText(String.valueOf(codenf*10) + "γ/6H");
    								float tramad = Math.round(pValue*100);
    								if (pValue >= 1) tramadol.setText(String.valueOf(tramad/100) + "mg/6H");
    								else tramadol.setText(String.valueOf(tramad*10) + "γ/6H");
    								float morph_IV_I = Math.round(pValue*20*100);
    								float morph_IV_II = Math.round(pValue*40*100);
    								morphineIV.setText(String.valueOf(morph_IV_I/100) + "-" + String.valueOf(morph_IV_II/100) + "γ/H");
    								float morph_IV_titration = Math.round(pValue*20*100);
    								morphineIV_titration.setText(String.valueOf(morph_IV_titration/100) + "γ/5min");
    								float morph_PO = Math.round(pValue*0.5*100);
    								if (pValue*0.5 >= 1) morphinePO.setText(String.valueOf(morph_PO/100) + "mg/j");
    								else morphinePO.setText(String.valueOf(morph_PO*10) + "γ/j");
    								float morp_PO_prise = Math.round(pValue*0.5*100/4);
    								if (pValue*0.5/4 >= 1) morphinePO_prise.setText(String.valueOf(morp_PO_prise/100) + "mg/prise");
    								else morphinePO_prise.setText(String.valueOf(morp_PO_prise*10) + "γ/prise");
    								float duro_I = Math.round(pValue*3*10);
    								float duro_II = Math.round(pValue*5*10);
    								durogesic.setText(String.valueOf(duro_I/10) + "-" + String.valueOf(duro_II/10) + "γ/72H");
    								float nub = Math.round(pValue*0.2*100);
    								if (pValue*0.2 >= 1) nubain.setText(String.valueOf(nub/100) + "mg/4-6H");
    								else nubain.setText(String.valueOf(nub*10) + "γ/4-6H");
    								spasfon.setText("40mg/prise");
    								float cataIV_I = Math.round(pValue*0.3*100);
    								float cataIV_II = Math.round(pValue*2*10);
    								catapressanIV.setText(String.valueOf(cataIV_I/100) + "-" + String.valueOf(cataIV_II/10) + "γ/H");
    								float cataPO_I = Math.round(pValue*2*10);
    								float cataPO_II =Math.round(pValue*5*10);
    								catapressanPO.setText(String.valueOf(cataPO_I/10) + "-" + String.valueOf(cataPO_II/10) + "γ/8H");
    								float keta = Math.round(pValue*100);
    								if (pValue >= 1) ketamine.setText(String.valueOf(keta/100) + "mg/H");
    								else ketamine.setText(String.valueOf(keta*10) + "γ/H");
    							}
    							else {
    								acupan.setText(String.valueOf(Math.round(pValue*1.5)) + "mg/j");
    								codenfan.setText(String.valueOf(Math.round(pValue)) + "mg/6H");
    								tramadol.setText(String.valueOf(Math.round(pValue)) + "mg/6H");
    								if (pValue*20 >= 1000) morphineIV.setText(String.valueOf(Math.round(pValue*20)/1000) + "-" + String.valueOf(Math.round(pValue*40)/1000) + "mg/H");
    								else morphineIV.setText(String.valueOf(Math.round(pValue*20)) + "-" + String.valueOf(Math.round(pValue*40)) + "γ/H");
    								if (pValue*20 >= 1000) morphineIV_titration.setText(String.valueOf(Math.round(pValue*20)/1000) + "mg/5min");
    								else morphineIV_titration.setText(String.valueOf(Math.round(pValue*20)) + "γ/5min");
    								morphinePO.setText(String.valueOf(Math.round(pValue*0.5)) + "mg/j");
    								if (pValue*0.5/4 >= 1) morphinePO_prise.setText(String.valueOf(Math.round(pValue*0.5/4)) + "mg/prise");
    								else morphinePO_prise.setText(String.valueOf(Math.round(pValue*0.5/4)*1000) + "γ/prise");
    								durogesic.setText(String.valueOf(Math.round(pValue*3)) + "-" + String.valueOf(Math.round(pValue*5)) + "γ/72H");
    								if (pValue*0.2 >= 1) nubain.setText(String.valueOf(Math.round(pValue*0.2)) + "mg/4-6H");
    								else nubain.setText(String.valueOf(Math.round(pValue*0.2)*1000) + "γ/4-6H");
    								spasfon.setText("40mg/prise");
    								catapressanIV.setText(String.valueOf(Math.round(pValue*0.3)) + "-" + String.valueOf(Math.round(pValue*2)) + "γ/H");
    								catapressanPO.setText(String.valueOf(Math.round(pValue*2)) + "-" + String.valueOf(Math.round(pValue*5)) + "γ/8H");
    								ketamine.setText(String.valueOf(Math.round(pValue)) + "mg/H");
    							}
    						}		
    					}
    					else
    						Toast.makeText(Antalgiques.this, "Le poids saisi est incorrect", Toast.LENGTH_SHORT).show();
     
    				}
    			}
     
    		});
     
    		raz.setOnClickListener(new OnClickListener() {
     
    			@Override
    			public void onClick(View v) {
    				// TODO Auto-generated method stub
    				poids.getText().clear();
    				poso_paracetamol.setText(defaut);
    				paracetamol.setText(defaut);
    				acupan.setText(defaut);
    				codenfan.setText(defaut);
    				tramadol.setText(defaut);
    				morphineIV.setText(defaut);
    				morphineIV_titration.setText(defaut);
    				morphinePO.setText(defaut);
    				morphinePO_prise.setText(defaut);
    				durogesic.setText(defaut);
    				nubain.setText(defaut);
    				spasfon.setText(defaut);
    				catapressanIV.setText(defaut);
    				catapressanPO.setText(defaut);
    				ketamine.setText(defaut);
    			}
     
    		});
    	}
     
    	@Override
    	public boolean onCreateOptionsMenu(Menu menu) {
    		// Inflate the menu; this adds items to the action bar if it is present.
    		getMenuInflater().inflate(R.menu.main, menu);
    		return true;
    	}
     
    }
    code layout
    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    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
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100
    101
    102
    103
    104
    105
    106
    107
    108
    109
    110
    111
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
    150
    151
    152
    153
    154
    155
    156
    157
    158
    159
    160
    161
    162
    163
    164
    165
    166
    167
    168
    169
    170
    171
    172
    173
    174
    175
    176
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
    188
    189
    190
    191
    192
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
    204
    205
    206
    207
    208
    209
    210
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
    222
    223
    224
    225
    226
    227
    228
    229
    230
    231
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
    244
    245
    246
    247
    248
    249
    250
    251
    252
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
    264
    265
    266
    267
    268
    269
    270
    271
    272
    273
    274
    275
    276
    277
    278
    279
    280
    281
    282
    283
    284
    285
    286
    287
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
    299
    300
    301
    302
    303
    304
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
    319
    320
    321
    322
    323
    324
    325
    326
    327
    328
    329
    330
    331
    332
    333
    334
    335
    336
    337
    338
    339
    340
    341
    342
    343
    344
    345
    346
    347
    348
    349
    350
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
    362
    363
    364
    365
    366
    367
    368
    369
    370
    371
    372
    373
    374
    375
    376
    377
    378
    379
    380
    381
    382
    383
    384
    385
    386
    387
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    398
    399
    400
    401
    402
    403
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
    420
    421
    422
    423
    424
    425
    426
    427
    428
    429
    430
    431
    432
    433
    434
    435
    436
    437
    438
    439
    440
    441
    442
    443
    444
    445
    446
    447
    448
    449
    450
    451
    452
    453
    454
    455
    456
    457
    458
    459
    460
    461
    462
    463
    464
    465
    466
    467
    468
    469
    470
    471
    472
    473
    474
    475
    476
    477
    478
    479
    480
    481
    482
    483
    484
    485
    486
    487
    488
    489
    490
    491
    492
    493
    494
    495
    496
    497
    498
    499
    500
    501
    502
    503
    504
    505
    506
    507
    508
    509
    510
    511
    512
    513
    514
    515
    516
    517
    518
    519
    520
    521
    522
    523
    524
    525
    526
    527
    528
    529
    530
    531
    532
    533
    534
    535
    536
    537
    538
    539
    540
    541
    542
    543
    544
    545
    546
    547
    548
    549
    550
    551
    552
    553
    554
    555
    556
    557
    558
    559
    560
    561
    562
    563
    564
    565
    566
    567
    568
    569
    570
    571
    572
    573
    574
    575
    576
    577
    578
    579
    580
    581
    582
    583
    584
    585
    586
    587
    588
    589
    590
    591
    592
    593
    594
    595
    596
    597
    598
    599
    600
    601
    602
    603
    604
    605
    606
    607
    608
    609
    610
    611
    612
    613
    614
    615
    616
    617
    618
    619
    620
    621
    622
    623
    624
    625
    626
    627
    628
    629
    630
    631
    632
    633
    634
    635
    636
    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        xmlns:tools="http://schemas.android.com/tools"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical"
        android:paddingBottom="@dimen/activity_vertical_margin"
        android:paddingLeft="@dimen/activity_horizontal_margin"
        android:paddingRight="@dimen/activity_horizontal_margin"
        android:paddingTop="@dimen/activity_vertical_margin"
        tools:context=".MainActivity" >
     
        <TextView
            android:layout_width="fill_parent"
        	android:layout_height="wrap_content"
        	android:layout_marginBottom="15dp"
        	android:text="ANTALGIQUES"
        	android:textColor="#370028"
        	android:textStyle="bold"
        	android:textSize="20sp"
        	android:background="#CECECE"
        	android:gravity="center" />
     
        <LinearLayout 
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal" >
     
        	<TextView
            	android:layout_width="wrap_content"
            	android:layout_height="wrap_content"
            	android:text="Poids patient : "
            	android:textColor="#000000"
            	android:textStyle="bold"
            	android:textSize="14sp"
            	android:gravity="center" />
     
        	<EditText 
            	android:id="@+id/poids"
            	android:layout_width="150dp"
            	android:layout_height="wrap_content"
            	android:hint="Poids"
            	android:inputType="numberDecimal" />
     
        	<TextView
            	android:layout_width="wrap_content"
            	android:layout_height="wrap_content"
            	android:text=" kg "
            	android:textColor="#000000"
            	android:textStyle="bold"
            	android:textSize="14sp"
            	android:gravity="center" />
        </LinearLayout>
     
        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:gravity="center"
            android:orientation="horizontal" >
     
            <Button
    			android:id="@+id/calcul"
    			android:layout_width="170dp"
    			android:layout_height="wrap_content"
    			android:layout_marginRight="10dp"
        		android:text="Calculer"
        		android:textStyle="bold" />
     
        	<Button 
        	    android:id="@+id/raz"
        	    android:layout_width="60dp"
        	    android:layout_height="wrap_content"
        	    android:layout_marginLeft="10dp"
        	    android:text="RAZ"
        	    android:textSize="12sp"
        	    android:textStyle="italic" />
        </LinearLayout>
     
     
        <ScrollView 
    	    android:id="@+id/Scroll1"
    	    android:layout_width="fill_parent"
    	    android:layout_height="fill_parent" >
     
        <TableLayout
    		android:layout_width="fill_parent"
    		android:layout_height="wrap_content"
    		android:layout_marginTop="15dp"
    		android:stretchColumns="2">
     
            <View
            	android:layout_width="fill_parent"
    			android:layout_height="2dp"
    			android:background="#FF909090" />
     
            <TextView 
            	android:layout_width="fill_parent"
            	android:layout_height="wrap_content"
            	android:text="PALIER I : non opiacés"
            	android:textColor="#960018"
            	android:textStyle="bold"
            	android:background="#CECECE"
            	android:gravity="center" />
     
        	<View
            	android:layout_width="fill_parent"
    			android:layout_height="2dp"
    			android:background="#FF909090" />
     
        	<TableRow>
    			<TextView
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="Paracétamol"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="0"
    				android:padding="3dp" />
     
    			<TextView
    			    android:id="@+id/poso"
    		        android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text=""
    				android:textStyle="italic"
    				android:textSize="12sp"
    				android:gravity="left"
    				android:layout_column="1"
        	        android:padding="3dp" />
     
    		    <TextView
    		        android:id="@+id/paracetamol"
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text=""
    				android:textColor="#9E0E40"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="2"
        	        android:padding="3dp"  />
    		</TableRow>
     
        	<TableRow>
    			<TextView
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="Acupan"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="0"
    				android:padding="3dp" />
     
    			<LinearLayout 
    			    android:layout_width="wrap_content"
    			    android:layout_height="wrap_content"
    			    android:orientation="vertical"
    			    android:layout_column="1"
        	        android:padding="3dp" >
    			    <TextView
    		        	android:layout_width="wrap_content"
    		    		android:layout_height="wrap_content"
    					android:text="1,5mg/kg/j"
    					android:textStyle="italic"
    					android:textSize="12sp"
    					android:gravity="left" />
    			    <TextView
    		        	android:layout_width="wrap_content"
    		    		android:layout_height="wrap_content"
    					android:text="(max 120mg)"
    					android:textStyle="italic"
    					android:textSize="10sp"
    					android:gravity="left" />
    			</LinearLayout>
     
    		    <TextView
    		        android:id="@+id/acupan"
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text=""
    				android:textColor="#9E0E40"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="2"
        	        android:padding="3dp"  />
    		</TableRow>
     
        	<View 
    	    	android:layout_width="fill_parent"
    			android:layout_height="2dp"
    			android:background="#FF909090" />
     
    		<TextView 
            	android:layout_width="fill_parent"
            	android:layout_height="wrap_content"
            	android:text="PALIER II : opoïdes faibles"
            	android:textColor="#960018"
            	android:textStyle="bold"
            	android:background="#CECECE"
            	android:gravity="center" />
     
    		<View 
    	    	android:layout_width="fill_parent"
    			android:layout_height="2dp"
    			android:background="#FF909090" />
     
    		<TableRow>
    			<TextView
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="Codenfan"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="0"
    				android:padding="3dp" />
     
    			<TextView
    		        android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="PO: 1mg/kg/6H"
    				android:textStyle="italic"
    				android:textSize="12sp"
    				android:gravity="left"
    				android:layout_column="1"
        	        android:padding="3dp" />
     
    		    <TextView
    		        android:id="@+id/codenfan"
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text=""
    				android:textColor="#9E0E40"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="2"
        	        android:padding="3dp"  />
    		</TableRow>
     
        	<TableRow>
    			<TextView
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="Tramadol"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="0"
    				android:padding="3dp" />
     
    			<TextView
    		        android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="1mg/kg/6H"
    				android:textStyle="italic"
    				android:textSize="12sp"
    				android:gravity="left"
    				android:layout_column="1"
        	        android:padding="3dp" />
     
    		    <TextView
    		        android:id="@+id/tramadol"
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text=""
    				android:textColor="#9E0E40"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="2"
        	        android:padding="3dp"  />
    		</TableRow>
     
        	<TableRow>
    			<TextView
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="Ixprim"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="0"
    				android:padding="3dp" />
     
    			<TextView
    		        android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text=" ? "
    				android:textStyle="italic"
    				android:textSize="12sp"
    				android:gravity="left"
    				android:layout_column="1"
        	        android:padding="3dp" />
     
    		    <TextView
    		        android:id="@+id/ixprim"
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text=""
    				android:textColor="#9E0E40"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="2"
        	        android:padding="3dp"  />
    		</TableRow>
     
     
        	<View 
    	    	android:layout_width="fill_parent"
    			android:layout_height="2dp"
    			android:background="#FF909090" />
     
    		<TextView
    		    android:layout_width="fill_parent"
    		    android:layout_height="wrap_content"
    		    android:text="PALIER III : opoïdes"
    		    android:textColor="#960018"
    		    android:textStyle="bold"
    		    android:background="#CECECE"
    		    android:gravity="center" />
     
    		<View 
    	    	android:layout_width="fill_parent"
    			android:layout_height="2dp"
    			android:background="#FF909090" />
     
    		<TableRow>
    			<TextView
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="Morphine"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="0"
    				android:padding="3dp" />
     
    			<TextView
    		       	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="IV: 20-40γ/kg/H"
    				android:textStyle="italic"
    				android:textSize="12sp"
    				android:gravity="left"
    				android:layout_column="1"
        	       	android:padding="3dp" />
     
    		    <TextView
    		        android:id="@+id/morphineIV"
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text=""
    				android:textColor="#9E0E40"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="2"
        	        android:padding="3dp" />
    		</TableRow>
     
    		<TableRow>
    		    <TextView
    		       	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="(titrer 20γ/kg/5min)"
    				android:textStyle="italic"
    				android:textSize="10sp"
    				android:gravity="left"
    				android:layout_column="1"
        	       	android:padding="3dp" />
     
    		    <TextView
    		        android:id="@+id/morphineIV_titration"
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text=""
    				android:textColor="#9E0E40"
    				android:textStyle="bold"
    				android:textSize="12sp"
    				android:gravity="left"
    				android:layout_column="2"
        	        android:padding="3dp" />
    		</TableRow>
     
    		<TableRow>
    		     <TextView
    		       	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="PO: 0,5mg/kg/j"
    				android:textStyle="italic"
    				android:textSize="12sp"
    				android:gravity="left"
    				android:layout_column="1"
        	      	android:padding="3dp" />
     
    		    <TextView
    		        android:id="@+id/morphinePO"
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text=""
    				android:textColor="#9E0E40"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="2" />
    		</TableRow>
     
    		<TableRow>
    		    <TextView
    		      	android:layout_width="wrap_content"
    		   		android:layout_height="wrap_content"
    				android:text="(en 4 fois)"
    				android:textStyle="italic"
    				android:textSize="10sp"
    				android:gravity="left"
    				android:layout_column="1"
    				android:padding="3dp" />
     
    		    <TextView
    		        android:id="@+id/morphinePO_prise"
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text=""
    				android:textColor="#9E0E40"
    				android:textStyle="bold"
    				android:textSize="12sp"
    				android:gravity="left"
    				android:layout_column="2"
        	        android:padding="3dp" />
    		</TableRow>
     
        	<TableRow>
    			<TextView
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="Durogésic"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="0"
    				android:padding="3dp" />
     
    			<TextView
    		        android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="3-5γ/kg/72H"
    				android:textStyle="italic"
    				android:textSize="12sp"
    				android:gravity="left"
    				android:layout_column="1"
        	        android:padding="3dp" />
     
    		    <TextView
    		        android:id="@+id/durogesic"
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text=""
    				android:textColor="#9E0E40"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="2"
        	        android:padding="3dp"  />
    		</TableRow>
     
        	<TableRow>
    			<TextView
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="Nubain"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="0"
    				android:padding="3dp" />
     
    			<TextView
    		        android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="0,2mg/kg/4-6H"
    				android:textStyle="italic"
    				android:textSize="12sp"
    				android:gravity="left"
    				android:layout_column="1"
        	        android:padding="3dp" />
     
    		    <TextView
    		        android:id="@+id/nubain"
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text=""
    				android:textColor="#9E0E40"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="2"
        	        android:padding="3dp"  />
    		</TableRow>
     
        	<View 
    	    	android:layout_width="fill_parent"
    			android:layout_height="2dp"
    			android:background="#FF909090" />
     
    		<TextView
    		    android:layout_width="fill_parent"
    		    android:layout_height="wrap_content"
    		    android:text="Co-analgésiques"
    		    android:textColor="#960018"
    		    android:textStyle="bold"
    		    android:background="#CECECE"
    		    android:gravity="center" />
     
    		<View 
    	    	android:layout_width="fill_parent"
    			android:layout_height="2dp"
    			android:background="#FF909090" />
     
    		<TableRow>
    			<TextView
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="Spasfon"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="0"
    				android:padding="3dp" />
     
    			<TextView
    		        android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="1 Ampoule (40mg)"
    				android:textStyle="italic"
    				android:textSize="12sp"
    				android:gravity="left"
    				android:layout_column="1"
        	        android:padding="3dp" />
     
    		    <TextView
    		        android:id="@+id/spasfon"
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text=""
    				android:textColor="#9E0E40"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="2"
        	        android:padding="3dp"  />
    		</TableRow>
     
        	<TableRow>
    			<TextView
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="Catapressan"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="0"
    				android:padding="3dp" />
     
    			<TextView
    		     	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="IV: 0,3-2γ/kg/H"
    				android:textStyle="italic"
    				android:textSize="12sp"
    				android:gravity="left"
    				android:layout_column="1"
    			   	android:padding="3dp" />
     
    		    <TextView
    		        android:id="@+id/catapressanIV"
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text=""
    				android:textColor="#9E0E40"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="2"
        	        android:padding="3dp"  />
    		</TableRow>
     
        	<TableRow>
        	    <TextView
    		       	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="PO: 2-5γ/kg/8H"
    				android:textStyle="italic"
    				android:textSize="12sp"
    				android:gravity="left"
    				android:layout_column="1"
    			    android:padding="3dp" />
     
        	    <TextView
    		        android:id="@+id/catapressanPO"
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text=""
    				android:textColor="#9E0E40"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="2"
        	        android:padding="3dp"  />
        	</TableRow>
     
        	<TableRow>
    			<TextView
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="Kétamine"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="0"
    				android:padding="3dp" />
     
    			<TextView
    		        android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text="1mg/kg/H"
    				android:textStyle="italic"
    				android:textSize="12sp"
    				android:gravity="left"
    				android:layout_column="1"
        	        android:padding="3dp" />
     
    		    <TextView
    		        android:id="@+id/ketamine"
    		    	android:layout_width="wrap_content"
    		    	android:layout_height="wrap_content"
    				android:text=""
    				android:textColor="#9E0E40"
    				android:textStyle="bold"
    				android:gravity="left"
    				android:layout_column="2"
        	        android:padding="3dp"  />
    		</TableRow>
     
        	<View 
    	    	android:layout_width="fill_parent"
    			android:layout_height="2dp"
    			android:layout_marginBottom="20dp"
    			android:background="#FF909090" />
     
        </TableLayout>
     
        </ScrollView>
     
    </LinearLayout>

  2. #2
    Membre éclairé
    Avatar de LeBzul
    Homme Profil pro
    Inscrit en
    Décembre 2008
    Messages
    381
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : France, Meurthe et Moselle (Lorraine)

    Informations forums :
    Inscription : Décembre 2008
    Messages : 381
    Points : 832
    Points
    832
    Par défaut
    Salut,
    Tu peux essayer de mettre ca dans le manifest pour l'activité concerné :

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    <activity android:name="com.your.package.ActivityName"
          android:windowSoftInputMode="stateHidden"  />

  3. #3
    Membre à l'essai
    Homme Profil pro
    infirmier
    Inscrit en
    Février 2014
    Messages
    23
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Âge : 42
    Localisation : France

    Informations professionnelles :
    Activité : infirmier

    Informations forums :
    Inscription : Février 2014
    Messages : 23
    Points : 15
    Points
    15
    Par défaut
    Bien joué, merci beaucoup.
    ça fonctionne nickel.

    Par contre petite question, j'avais fait une petite activité (tutoriel de calcul de l'IMC) et là le clavier apparaît pas.
    Savez vous pourquoi là ça apparaît???

    Sinon pas grave je vais rajouter ça dans le manifest pour toutes activités concernées.

    Merci en tous cas

  4. #4
    Modérateur
    Avatar de MasterMbg
    Homme Profil pro
    Développeur informatique
    Inscrit en
    Octobre 2011
    Messages
    719
    Détails du profil
    Informations personnelles :
    Sexe : Homme
    Localisation : Congo-Kinshasa

    Informations professionnelles :
    Activité : Développeur informatique
    Secteur : High Tech - Éditeur de logiciels

    Informations forums :
    Inscription : Octobre 2011
    Messages : 719
    Points : 1 493
    Points
    1 493
    Par défaut
    Citation Envoyé par yannou82 Voir le message
    Par contre petite question, j'avais fait une petite activité (tutoriel de calcul de l'IMC) et là le clavier apparaît pas.
    Savez vous pourquoi là ça apparaît???
    Le clavier apparaît par automatiquement quand le focus se trouve dans un champs de saisie.
    Par ailleurs tu peux marquer RESOLU ton post?
    A+

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Saisie texte au clavier
    Par telecom85 dans le forum MATLAB
    Réponses: 9
    Dernier message: 27/12/2009, 16h38
  2. Autoriser la saisie des virgules dans une zone de texte
    Par griese dans le forum Général JavaScript
    Réponses: 9
    Dernier message: 10/07/2006, 11h19
  3. obliger la saisie dans une zone de texte
    Par mat75019 dans le forum Access
    Réponses: 5
    Dernier message: 02/05/2006, 16h59
  4. Evènement lié au clavier dans une zone de texte
    Par navis84 dans le forum Général JavaScript
    Réponses: 3
    Dernier message: 09/03/2006, 09h12
  5. [html] zone de texte sans saisie possible
    Par Silvia12 dans le forum Balisage (X)HTML et validation W3C
    Réponses: 4
    Dernier message: 01/08/2005, 16h37

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo