mirror of
https://github.com/jfoucry/Pilldroid.git
synced 2024-11-09 23:41:08 +01:00
Read value from the view
This commit is contained in:
parent
3483aa7252
commit
c0b32b767d
1 changed files with 3 additions and 2 deletions
|
@ -2,7 +2,7 @@ package net.foucry.pilldroid;
|
|||
|
||||
import android.app.Activity;
|
||||
import android.content.Context;
|
||||
import android.content.Intent;
|
||||
|
||||
import android.support.design.widget.CollapsingToolbarLayout;
|
||||
import android.os.Bundle;
|
||||
import android.support.v4.app.Fragment;
|
||||
|
@ -132,7 +132,8 @@ public class MedicamentDetailFragment extends Fragment {
|
|||
View alertView;
|
||||
|
||||
stockView = currentView.findViewById(R.id.alert_cell);
|
||||
TextView stockValue = stockView.findViewById(R.id.valeur);
|
||||
TextView stockTextView = stockView.findViewById(R.id.valeur);
|
||||
String stockValue = stockTextView.getText().toString();
|
||||
|
||||
Log.d(TAG, "StockValue == "+ stockValue);
|
||||
Log.d(TAG, "medicamentID "+ medicament.getId());
|
||||
|
|
Loading…
Reference in a new issue