Clean project for merge
This commit is contained in:
parent
4381ae78f8
commit
c60a14b6ac
@ -10,6 +10,7 @@ import android.media.AudioFormat;
|
|||||||
import android.media.AudioRecord;
|
import android.media.AudioRecord;
|
||||||
import android.media.MediaRecorder;
|
import android.media.MediaRecorder;
|
||||||
import android.os.AsyncTask;
|
import android.os.AsyncTask;
|
||||||
|
import android.util.Log;
|
||||||
|
|
||||||
import androidx.core.app.ActivityCompat;
|
import androidx.core.app.ActivityCompat;
|
||||||
import androidx.core.content.ContextCompat;
|
import androidx.core.content.ContextCompat;
|
||||||
@ -33,17 +34,11 @@ public class MicrophoneDetector extends Detector {
|
|||||||
private AufnahmeTask aufnahmeTask;
|
private AufnahmeTask aufnahmeTask;
|
||||||
public boolean armed = false;
|
public boolean armed = false;
|
||||||
public int Schwellwert_Alarm = 100;
|
public int Schwellwert_Alarm = 100;
|
||||||
GraphView graph;
|
|
||||||
|
|
||||||
Logger logger;
|
|
||||||
private Activity MainActivityForClass;
|
private Activity MainActivityForClass;
|
||||||
|
|
||||||
public MicrophoneDetector(Context context, Logger MainLogger, GraphView MainGraph) {
|
public MicrophoneDetector(Context context) {
|
||||||
super(context);
|
super(context);
|
||||||
MainActivityForClass = (Activity) context;
|
MainActivityForClass = (Activity) context;
|
||||||
logger = MainLogger; //Class uses the same logger as the MainActivity
|
|
||||||
logger.log(this.getClass().getSimpleName() + ".onCreate");
|
|
||||||
graph = MainGraph;
|
|
||||||
|
|
||||||
if (!istZugriffAufMikrofonErlaubt()) {
|
if (!istZugriffAufMikrofonErlaubt()) {
|
||||||
zugriffAufMikrofonAnfordern();
|
zugriffAufMikrofonAnfordern();
|
||||||
@ -52,7 +47,6 @@ public class MicrophoneDetector extends Detector {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void startDetection() {
|
public void startDetection() {
|
||||||
logger.log(this.getClass().getSimpleName() + ".startDetection");
|
|
||||||
|
|
||||||
if (!istZugriffAufMikrofonErlaubt()) {
|
if (!istZugriffAufMikrofonErlaubt()) {
|
||||||
zugriffAufMikrofonAnfordern();
|
zugriffAufMikrofonAnfordern();
|
||||||
@ -65,19 +59,17 @@ public class MicrophoneDetector extends Detector {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void stopDetection() {
|
public void stopDetection() {
|
||||||
logger.log(this.getClass().getSimpleName() + ".stopDetection");
|
|
||||||
if (aufnahmeTask != null) {
|
if (aufnahmeTask != null) {
|
||||||
aufnahmeTask.cancel(true);
|
aufnahmeTask.cancel(true);
|
||||||
// aufnahmeTask = null; // if aufnahmeTask = null, break in for loop would not work (Nullpointer Exception)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean istZugriffAufMikrofonErlaubt() {
|
private boolean istZugriffAufMikrofonErlaubt() {
|
||||||
if (ContextCompat.checkSelfPermission(MainActivityForClass, android.Manifest.permission.RECORD_AUDIO) != PackageManager.PERMISSION_GRANTED) {
|
if (ContextCompat.checkSelfPermission(MainActivityForClass, android.Manifest.permission.RECORD_AUDIO) != PackageManager.PERMISSION_GRANTED) {
|
||||||
logger.log("Zugriff auf Mikrofon ist verboten.");
|
Log.d("0","Zugriff auf Mikrofon ist verboten.");
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
logger.log("Zugriff auf Mikrofon ist erlaubt.");
|
Log.d("0","Zugriff auf Mikrofon ist erlaubt.");
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -113,13 +105,8 @@ public class MicrophoneDetector extends Detector {
|
|||||||
|
|
||||||
recorder = new AudioRecord(MediaRecorder.AudioSource.MIC, sampleRateInHz, channelConfig, audioFormat, pufferGroesseInBytes);
|
recorder = new AudioRecord(MediaRecorder.AudioSource.MIC, sampleRateInHz, channelConfig, audioFormat, pufferGroesseInBytes);
|
||||||
|
|
||||||
// textViewMinPufferGroesseInBytes.setText("" + minPufferGroesseInBytes);
|
Log.d("0","Puffergroeße: "+ minPufferGroesseInBytes + " " + pufferGroesseInBytes);
|
||||||
// textViewPufferGroesseInBytes.setText("" + pufferGroesseInBytes);
|
Log.d("0","Recorder (SR, CH): "+ recorder.getSampleRate() + " " + recorder.getChannelCount());
|
||||||
// textViewAbtastrate.setText("" + recorder.getSampleRate());
|
|
||||||
// textViewAnzahlKanaele.setText("" + recorder.getChannelCount());
|
|
||||||
|
|
||||||
logger.log("Puffergroeße: "+ minPufferGroesseInBytes + " " + pufferGroesseInBytes);
|
|
||||||
logger.log("Recorder (SR, CH): "+ recorder.getSampleRate() + " " + recorder.getChannelCount());
|
|
||||||
|
|
||||||
int anzahlBytesProAbtastwert;
|
int anzahlBytesProAbtastwert;
|
||||||
String s;
|
String s;
|
||||||
@ -139,7 +126,6 @@ public class MicrophoneDetector extends Detector {
|
|||||||
default:
|
default:
|
||||||
throw new IllegalArgumentException();
|
throw new IllegalArgumentException();
|
||||||
}
|
}
|
||||||
// textViewAudioFormat.setText(s);
|
|
||||||
|
|
||||||
switch (recorder.getChannelConfiguration()) {
|
switch (recorder.getChannelConfiguration()) {
|
||||||
case AudioFormat.CHANNEL_IN_MONO:
|
case AudioFormat.CHANNEL_IN_MONO:
|
||||||
@ -155,14 +141,12 @@ public class MicrophoneDetector extends Detector {
|
|||||||
default:
|
default:
|
||||||
throw new IllegalArgumentException();
|
throw new IllegalArgumentException();
|
||||||
}
|
}
|
||||||
// textViewKanalKonfiguration.setText(s);
|
|
||||||
logger.log("Konfiguration: "+ s);
|
Log.d("0","Konfiguration: "+ s);
|
||||||
|
|
||||||
int pufferGroesseInAnzahlAbtastwerten = pufferGroesseInBytes / anzahlBytesProAbtastwert;
|
int pufferGroesseInAnzahlAbtastwerten = pufferGroesseInBytes / anzahlBytesProAbtastwert;
|
||||||
int pufferGroesseInMillisekunden = 1000 * pufferGroesseInAnzahlAbtastwerten / recorder.getSampleRate();
|
int pufferGroesseInMillisekunden = 1000 * pufferGroesseInAnzahlAbtastwerten / recorder.getSampleRate();
|
||||||
|
|
||||||
// textViewPufferGroesseInAnzahlAbtastwerte.setText("" + pufferGroesseInAnzahlAbtastwerten);
|
|
||||||
// textViewPufferGroesseInMillisekunden.setText("" + pufferGroesseInMillisekunden);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -178,7 +162,7 @@ public class MicrophoneDetector extends Detector {
|
|||||||
|
|
||||||
//Kalibrierung
|
//Kalibrierung
|
||||||
try {
|
try {
|
||||||
Thread.sleep(3000);
|
Thread.sleep(3000); // Time to lay down the phone
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
@ -195,20 +179,20 @@ public class MicrophoneDetector extends Detector {
|
|||||||
}
|
}
|
||||||
kalibierWert = kalibierWert/i;
|
kalibierWert = kalibierWert/i;
|
||||||
|
|
||||||
|
// __Part of FFT__
|
||||||
// Complex[] zeitSignal = new Complex[puffer.length];
|
// Complex[] zeitSignal = new Complex[puffer.length];
|
||||||
// for (int j = 0; j < puffer.length; j++) {
|
// for (int j = 0; j < puffer.length; j++) {
|
||||||
// zeitSignal[j] = new Complex(puffer[j], 0);
|
// zeitSignal[j] = new Complex(puffer[j], 0);
|
||||||
// }
|
// }
|
||||||
// Complex[] spektrum = FFT.fft(zeitSignal);
|
// Complex[] spektrum = FFT.fft(zeitSignal);
|
||||||
double[] spektrum = calculateFFT(puffer);
|
// double[] spektrum = calculateFFT(puffer);
|
||||||
DataPoint AddPoint;
|
// DataPoint AddPoint;
|
||||||
// LineGraphSeries<DataPoint> series = new LineGraphSeries<DataPoint>(new DataPoint[]{});
|
// LineGraphSeries<DataPoint> series = new LineGraphSeries<DataPoint>(new DataPoint[]{});
|
||||||
// for (i = 0; i < spektrum.length; i++) {
|
// for (i = 0; i < spektrum.length; i++) {
|
||||||
// AddPoint = new DataPoint(i, spektrum[i]);
|
// AddPoint = new DataPoint(i, spektrum[i]);
|
||||||
// series.appendData(AddPoint, true, spektrum.length);
|
// series.appendData(AddPoint, true, spektrum.length);
|
||||||
// }
|
// }
|
||||||
// graph.addSeries(series);
|
// graph.addSeries(series);
|
||||||
// logger.log(spektrum.toString());
|
|
||||||
|
|
||||||
for (; ; ) {
|
for (; ; ) {
|
||||||
if (aufnahmeTask.isCancelled()) {
|
if (aufnahmeTask.isCancelled()) {
|
||||||
@ -217,15 +201,14 @@ public class MicrophoneDetector extends Detector {
|
|||||||
int n = recorder.read(puffer, 0, puffer.length);
|
int n = recorder.read(puffer, 0, puffer.length);
|
||||||
Verarbeitungsergebnis ergebnis = verarbeiten(puffer, n);
|
Verarbeitungsergebnis ergebnis = verarbeiten(puffer, n);
|
||||||
anzahlVerarbeitet += n;
|
anzahlVerarbeitet += n;
|
||||||
|
// __Part of FFT__
|
||||||
|
// spektrum = calculateFFT(puffer);
|
||||||
|
// LineGraphSeries<DataPoint> newseries = new LineGraphSeries<DataPoint>(new DataPoint[]{});
|
||||||
|
// for (i = 0; i < spektrum.length; i++) {
|
||||||
|
// AddPoint = new DataPoint(i, spektrum[i]);
|
||||||
|
// newseries.appendData(AddPoint, true, spektrum.length);
|
||||||
|
// }
|
||||||
|
|
||||||
spektrum = calculateFFT(puffer);
|
|
||||||
LineGraphSeries<DataPoint> newseries = new LineGraphSeries<DataPoint>(new DataPoint[]{});
|
|
||||||
for (i = 0; i < spektrum.length; i++) {
|
|
||||||
AddPoint = new DataPoint(i, spektrum[i]);
|
|
||||||
newseries.appendData(AddPoint, true, spektrum.length);
|
|
||||||
}
|
|
||||||
graph.removeAllSeries();
|
|
||||||
graph.addSeries(newseries);
|
|
||||||
zaehlerZeitMessung++;
|
zaehlerZeitMessung++;
|
||||||
if (zaehlerZeitMessung == maxZaehlerZeitMessung) {
|
if (zaehlerZeitMessung == maxZaehlerZeitMessung) {
|
||||||
long time = System.currentTimeMillis();
|
long time = System.currentTimeMillis();
|
||||||
@ -242,7 +225,7 @@ public class MicrophoneDetector extends Detector {
|
|||||||
publishProgress(ergebnis);
|
publishProgress(ergebnis);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
Thread.sleep(100);
|
Thread.sleep(10);
|
||||||
} catch (InterruptedException e) {
|
} catch (InterruptedException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
@ -265,7 +248,6 @@ public class MicrophoneDetector extends Detector {
|
|||||||
for (int i = 0; i < n; i++) {
|
for (int i = 0; i < n; i++) {
|
||||||
if (daten[i] > max) {
|
if (daten[i] > max) {
|
||||||
max = daten[i];
|
max = daten[i];
|
||||||
//max = 20 * log10(abs(daten[i]) / 32768);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -282,21 +264,16 @@ public class MicrophoneDetector extends Detector {
|
|||||||
@Override
|
@Override
|
||||||
protected void onProgressUpdate(Verarbeitungsergebnis... progress) {
|
protected void onProgressUpdate(Verarbeitungsergebnis... progress) {
|
||||||
super.onProgressUpdate(progress);
|
super.onProgressUpdate(progress);
|
||||||
// textViewMaxAmp.setText("" + progress[0].maxAmp);
|
|
||||||
// textViewVerarbeitungsrate.setText("" + progress[0].verarbeitungsrate);
|
|
||||||
float maxAmpPrint = round(20*log10(abs(progress[0].maxAmp/1.0)));
|
float maxAmpPrint = round(20*log10(abs(progress[0].maxAmp/1.0)));
|
||||||
float kalibierWertPrint = round(20*log10(abs(kalibierWert)));
|
float kalibierWertPrint = round(20*log10(abs(kalibierWert)));
|
||||||
logger.overwriteLastlog("VR, Max, Kal:" + progress[0].verarbeitungsrate + ", " + maxAmpPrint
|
Log.d("0","VR, Max, Kal:" + progress[0].verarbeitungsrate + ", " + maxAmpPrint
|
||||||
+ " dB, " + kalibierWertPrint + " dB");
|
+ " dB, " + kalibierWertPrint + " dB");
|
||||||
|
|
||||||
if (progress[0].maxAmp >= Schwellwert_Alarm+kalibierWert && armed == true) {
|
if (progress[0].maxAmp >= Schwellwert_Alarm+kalibierWert && armed == true) {
|
||||||
armed = false;
|
armed = false;
|
||||||
detectionReport = new DetectionReport("Mic1", "Audio", maxAmpPrint);
|
detectionReport = new DetectionReport("Mic1", "Audio", maxAmpPrint);
|
||||||
//reportViolation("Mic1", "Audio", maxAmpPrint);
|
reportViolation("Mic1", "Audio", maxAmpPrint);
|
||||||
logger.log("");
|
Log.d("1",detectionReport.toString());
|
||||||
logger.log("Alarm!");
|
|
||||||
logger.log(detectionReport.toString());
|
|
||||||
logger.log("");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -326,7 +303,6 @@ public class MicrophoneDetector extends Detector {
|
|||||||
y = FFT.fft(complexSignal);
|
y = FFT.fft(complexSignal);
|
||||||
|
|
||||||
mMaxFFTSample = 0.0;
|
mMaxFFTSample = 0.0;
|
||||||
// mPeakPos = 0;
|
|
||||||
for(int i = 0; i < (mNumberOfFFTPoints/2); i++)
|
for(int i = 0; i < (mNumberOfFFTPoints/2); i++)
|
||||||
{
|
{
|
||||||
absSignal[i] = y[i].abs();
|
absSignal[i] = y[i].abs();
|
||||||
@ -334,7 +310,6 @@ public class MicrophoneDetector extends Detector {
|
|||||||
// if(absSignal[i] > mMaxFFTSample)
|
// if(absSignal[i] > mMaxFFTSample)
|
||||||
// {
|
// {
|
||||||
// mMaxFFTSample = absSignal[i];
|
// mMaxFFTSample = absSignal[i];
|
||||||
// // mPeakPos = i;
|
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,61 +0,0 @@
|
|||||||
package com.example.ueberwachungssystem.Detector.logger;
|
|
||||||
|
|
||||||
import android.util.Log;
|
|
||||||
import android.widget.TextView;
|
|
||||||
|
|
||||||
import java.io.PrintWriter;
|
|
||||||
import java.io.StringWriter;
|
|
||||||
|
|
||||||
public class Logger {
|
|
||||||
private TextView textView;
|
|
||||||
private StringBuffer sb = new StringBuffer();
|
|
||||||
private String tag;
|
|
||||||
private int lengthOfLastLog = 0;
|
|
||||||
private boolean overwrite = false;
|
|
||||||
|
|
||||||
public Logger(String tag, TextView textView, String logInitText) {
|
|
||||||
this.tag = tag;
|
|
||||||
this.textView = textView;
|
|
||||||
sb.append(logInitText);
|
|
||||||
}
|
|
||||||
|
|
||||||
public void log(String s) {
|
|
||||||
overwrite = false;
|
|
||||||
Log.d(tag, s);
|
|
||||||
sb.append(s).append("\n");
|
|
||||||
if (textView != null) {
|
|
||||||
textView.setText(sb.toString());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void overwriteLastlog(String s) {
|
|
||||||
Log.d(tag, s);
|
|
||||||
lengthOfLastLog = s.length();
|
|
||||||
if (overwrite)
|
|
||||||
{
|
|
||||||
sb.setLength(sb.length() - (lengthOfLastLog + 1));
|
|
||||||
}
|
|
||||||
sb.append(s).append("\n");
|
|
||||||
overwrite = true;
|
|
||||||
if (textView != null) {
|
|
||||||
textView.setText(sb.toString());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public void log(Exception e) {
|
|
||||||
StringWriter sw = new StringWriter();
|
|
||||||
e.printStackTrace(new PrintWriter(sw));
|
|
||||||
log(sw.toString());
|
|
||||||
}
|
|
||||||
|
|
||||||
public void clearLog() {
|
|
||||||
sb.setLength(0);
|
|
||||||
if (textView != null) {
|
|
||||||
textView.setText("");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLoggedText() {
|
|
||||||
return sb.toString();
|
|
||||||
}
|
|
||||||
}
|
|
@ -12,14 +12,10 @@ import android.widget.TextView;
|
|||||||
import com.example.ueberwachungssystem.Detector.DetectionReport;
|
import com.example.ueberwachungssystem.Detector.DetectionReport;
|
||||||
import com.example.ueberwachungssystem.Detector.Detector;
|
import com.example.ueberwachungssystem.Detector.Detector;
|
||||||
import com.example.ueberwachungssystem.Detector.MicrophoneDetector;
|
import com.example.ueberwachungssystem.Detector.MicrophoneDetector;
|
||||||
import com.example.ueberwachungssystem.Detector.logger.Logger;
|
|
||||||
import com.jjoe64.graphview.GraphView;
|
import com.jjoe64.graphview.GraphView;
|
||||||
|
|
||||||
|
|
||||||
public class MainActivity extends AppCompatActivity {
|
public class MainActivity extends AppCompatActivity {
|
||||||
|
|
||||||
Logger logger;
|
|
||||||
GraphView graph;
|
|
||||||
private TextView tv_log;
|
private TextView tv_log;
|
||||||
MicrophoneDetector Mic;
|
MicrophoneDetector Mic;
|
||||||
private Switch TglBtn_Mic;
|
private Switch TglBtn_Mic;
|
||||||
@ -28,15 +24,13 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.activity_main);
|
setContentView(R.layout.activity_main);
|
||||||
tv_log = (TextView) findViewById(R.id.tv_log); //Set textview for showing logged content
|
tv_log = (TextView) findViewById(R.id.tv_log); //Set textview for showing logged content
|
||||||
logger = new Logger(this.getClass().getSimpleName(), tv_log, "");
|
Log.d("Main",this.getClass().getSimpleName() + ".onCreate");
|
||||||
logger.log(this.getClass().getSimpleName() + ".onCreate");
|
Mic = new MicrophoneDetector(this);
|
||||||
graph = (GraphView) findViewById(R.id.graph);
|
|
||||||
Mic = new MicrophoneDetector(this, logger, graph);
|
|
||||||
setupMic();
|
setupMic();
|
||||||
Mic.setOnDetectionListener(new Detector.OnDetectionListener() {
|
Mic.setOnDetectionListener(new Detector.OnDetectionListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onDetection(@NonNull DetectionReport detectionReport) {
|
public void onDetection(@NonNull DetectionReport detectionReport) {
|
||||||
Log.d("Detect", "erkannt!");
|
Log.d("Main", "Detection erkannt!");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -45,13 +39,13 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
@Override
|
@Override
|
||||||
public void onResume() {
|
public void onResume() {
|
||||||
super.onResume();
|
super.onResume();
|
||||||
logger.log(this.getClass().getSimpleName() + ".onResume");
|
Log.d("Main",this.getClass().getSimpleName() + ".onResume");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onPause() {
|
public void onPause() {
|
||||||
super.onPause();
|
super.onPause();
|
||||||
logger.log(this.getClass().getSimpleName() + ".onPause");
|
Log.d("Main",this.getClass().getSimpleName() + ".onPause");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void setupMic() {
|
private void setupMic() {
|
||||||
@ -60,12 +54,11 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
if (v == TglBtn_Mic) {
|
if (v == TglBtn_Mic) {
|
||||||
logger.log("onClick toggleButtonThread " + TglBtn_Mic.isChecked());
|
Log.d("Main","onClick toggleButtonThread " + TglBtn_Mic.isChecked());
|
||||||
if (TglBtn_Mic.isChecked()) {
|
if (TglBtn_Mic.isChecked()) {
|
||||||
Mic.startDetection();
|
Mic.startDetection();
|
||||||
} else {
|
} else {
|
||||||
Mic.stopDetection();
|
Mic.stopDetection();
|
||||||
logger.clearLog();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,6 @@
|
|||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:text="Log"
|
android:text="Log"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/graph"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintTop_toBottomOf="@+id/TglBtn_Mic" />
|
app:layout_constraintTop_toBottomOf="@+id/TglBtn_Mic" />
|
||||||
@ -24,16 +23,4 @@
|
|||||||
app:layout_constraintEnd_toEndOf="parent"
|
app:layout_constraintEnd_toEndOf="parent"
|
||||||
app:layout_constraintTop_toTopOf="parent" />
|
app:layout_constraintTop_toTopOf="parent" />
|
||||||
|
|
||||||
<com.jjoe64.graphview.GraphView
|
|
||||||
android:id="@+id/graph"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="200dip"
|
|
||||||
android:layout_marginStart="16dp"
|
|
||||||
android:layout_marginEnd="16dp"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:layout_constraintVertical_bias="0.499" />
|
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
Loading…
x
Reference in New Issue
Block a user