@@ -28,6 +28,8 @@ import com.example.ueberwachungssystem.Fragments.Fragment2; | |||
import com.example.ueberwachungssystem.Detection.DetectorService; | |||
import com.example.ueberwachungssystem.Fragments.Fragment3; | |||
import java.util.OptionalInt; | |||
@ExperimentalGetImage | |||
public class MainActivity extends AppCompatActivity implements Fragment3.OnImageViewReadyListener{ | |||
//StringBuffer | |||
@@ -60,7 +62,7 @@ public class MainActivity extends AppCompatActivity implements Fragment3.OnImage | |||
@Override | |||
protected void onCreate(Bundle savedInstanceState) { | |||
super.onCreate(savedInstanceState); | |||
setTitle(this.getClass().getSimpleName()); | |||
setTitle("Supervision"); | |||
setContentView(R.layout.activity_main); | |||
Auswahl = findViewById(R.id.textAuswahl); | |||
Auswahl.setText(auswahltext); |
@@ -82,11 +82,11 @@ public class PopUpClass { | |||
} | |||
public void Sensoren(){ | |||
PopUpText.setText("Es können 3 verschiedene Sensoren verwendet werden \n -1. Beschleunigungssensor\n -2. Mikrofon\n -3. Kamera"); | |||
PopUpText.setText("Es können 3 verschiedene Sensoren verwendet werden \n -1. Beschleunigungssensor\n -2. Mikrofon\n -3. Kamera\n Diese können sowohl einzeln als auch alle zusammen verwendet werden"); | |||
buttonEdit.setVisibility(View.GONE); | |||
} | |||
public void Impressum(){ | |||
PopUpText.setText("Die Ueberwachungsapp wurde im Rahmen eines Praktikums der TH-Nürnberg programmiert"); | |||
PopUpText.setText("Die Ueberwachungsapp wurde im Rahmen eines Praktikums der TH-Nürnberg programmiert \n Von: \n -Kohler Bastian\n -Kleinecke Oliver\n -Market Leon\n -Siebenhaar Miguel\n -Wolz Tobias "); | |||
buttonEdit.setVisibility(View.GONE); | |||
} | |||
public void DetectionTotal(int num) { |
@@ -93,7 +93,7 @@ | |||
android:layout_alignBottom="@+id/btnAufnahmen" | |||
android:layout_toRightOf="@id/btnAufnahmen" | |||
android:layout_marginLeft="15dp" | |||
android:text="Life Vorschau" | |||
android:text="Live Video" | |||
android:onClick="onClickZeigeFragment3"/> | |||
<FrameLayout |
@@ -1,5 +1,5 @@ | |||
<?xml version="1.0" encoding="utf-8"?> | |||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |||
android:layout_width="match_parent" | |||
android:layout_height="match_parent" | |||
android:gravity="center_horizontal" | |||
@@ -10,16 +10,15 @@ | |||
android:id="@+id/Video" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_marginTop="40dp" | |||
android:layout_weight="1" | |||
android:rotation="90"> | |||
</ImageView> | |||
<ImageView | |||
android:id="@+id/Video2" | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_below="@+id/Video" | |||
android:layout_marginTop="70dp" | |||
android:layout_weight="1" | |||
android:rotation="-90"> | |||
</ImageView> | |||
</RelativeLayout> | |||
</LinearLayout> |
@@ -6,7 +6,7 @@ | |||
android:paddingLeft="10dp" | |||
android:paddingRight="10dp" | |||
android:gravity="center" | |||
android:background="#A5ACB2"> | |||
android:background="#010C49"> | |||
<TextView | |||
android:id="@+id/titleText" | |||
@@ -15,6 +15,7 @@ | |||
android:layout_height="wrap_content" | |||
android:textSize="20sp" | |||
android:textStyle="italic" | |||
android:textColor="@color/white" | |||
android:padding="10dp"/> | |||
<Button | |||
@@ -22,6 +23,7 @@ | |||
android:layout_width="wrap_content" | |||
android:layout_height="wrap_content" | |||
android:layout_weight="1" | |||
android:backgroundTint="@color/purple_500" | |||
android:text="Rechte Anfordern" /> | |||