mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-22 04:29:22 +01:00
Ajout de médicament dans la liste pour vérifier le scroll
This commit is contained in:
parent
bbbae5639d
commit
068cf57ac7
1 changed files with 10 additions and 1 deletions
|
@ -74,7 +74,7 @@ public class MedicamentListActivity extends AppCompatActivity {
|
||||||
fab.setOnClickListener(new View.OnClickListener() {
|
fab.setOnClickListener(new View.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
|
Snackbar.make(view, "Will be used to add a drug to the list", Snackbar.LENGTH_LONG)
|
||||||
.setAction("Action", null).show();
|
.setAction("Action", null).show();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -107,6 +107,15 @@ public class MedicamentListActivity extends AppCompatActivity {
|
||||||
dbHelper.addDrug(new Medicament("60000017", "3400930000017", "Médicament test 07", "orale",
|
dbHelper.addDrug(new Medicament("60000017", "3400930000017", "Médicament test 07", "orale",
|
||||||
"plaquette(s) thermoformée(s) PVC PVDC aluminium de 10 comprimé(s)",
|
"plaquette(s) thermoformée(s) PVC PVDC aluminium de 10 comprimé(s)",
|
||||||
doubleRandomInclusive(0, 100), doubleRandomInclusive(0, 10), 14, 7));
|
doubleRandomInclusive(0, 100), doubleRandomInclusive(0, 10), 14, 7));
|
||||||
|
dbHelper.addDrug(new Medicament("60000018", "3400930000018", "Médicament test 08", "orale",
|
||||||
|
"plaquette(s) thermoformée(s) PVC PVDC aluminium de 10 comprimé(s)",
|
||||||
|
doubleRandomInclusive(0, 100), doubleRandomInclusive(0, 10), 14, 7));
|
||||||
|
dbHelper.addDrug(new Medicament("60000019", "3400930000019", "Médicament test 09", "orale",
|
||||||
|
"plaquette(s) thermoformée(s) PVC PVDC aluminium de 10 comprimé(s)",
|
||||||
|
doubleRandomInclusive(0, 100), doubleRandomInclusive(0, 10), 14, 7));
|
||||||
|
dbHelper.addDrug(new Medicament("60000010", "3400930000010", "Médicament test 10", "orale",
|
||||||
|
"plaquette(s) thermoformée(s) PVC PVDC aluminium de 10 comprimé(s)",
|
||||||
|
doubleRandomInclusive(0, 100), doubleRandomInclusive(0, 10), 14, 7));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue