@@ -13,7 +13,7 @@ | |||
<entry key="..\:/Line-Following-Robot/MobileApp/app/src/main/res/drawable/my_btn_toggle.xml" value="0.1" /> | |||
<entry key="..\:/Line-Following-Robot/MobileApp/app/src/main/res/drawable/vorwarts.xml" value="0.1" /> | |||
<entry key="..\:/Line-Following-Robot/MobileApp/app/src/main/res/layout/activity_main.xml" value="0.16666666666666666" /> | |||
<entry key="..\:/Line-Following-Robot/MobileApp/app/src/main/res/layout/fragment_automatik.xml" value="0.3333333333333333" /> | |||
<entry key="..\:/Line-Following-Robot/MobileApp/app/src/main/res/layout/fragment_automatik.xml" value="0.14666666666666667" /> | |||
<entry key="..\:/Line-Following-Robot/MobileApp/app/src/main/res/layout/fragment_dashboard.xml" value="0.14666666666666667" /> | |||
<entry key="..\:/Line-Following-Robot/MobileApp/app/src/main/res/layout/fragment_einstellungen.xml" value="0.25" /> | |||
<entry key="..\:/Line-Following-Robot/MobileApp/app/src/main/res/layout/fragment_home.xml" value="0.16666666666666666" /> |
@@ -79,7 +79,7 @@ public class DashboardFragment extends Fragment { | |||
@Override | |||
public void onClick(View v) { | |||
// on below line we are getting text from edit text | |||
String item = Integer.toString(autoList.size() + 1) + ": Links"; | |||
String item = "Links"; | |||
// on below line we are checking if item is not empty | |||
if (!item.isEmpty()) { | |||
@@ -99,7 +99,7 @@ public class DashboardFragment extends Fragment { | |||
@Override | |||
public void onClick(View v) { | |||
// on below line we are getting text from edit text | |||
String item = Integer.toString(autoList.size() + 1) + ": Rechts"; | |||
String item = "Rechts"; | |||
// on below line we are checking if item is not empty | |||
if (!item.isEmpty()) { | |||
@@ -132,9 +132,11 @@ public class DashboardFragment extends Fragment { | |||
public String listToString(ArrayList<String> list){ | |||
String result = ""; | |||
for (String s : list) { | |||
result += s + ";"; | |||
} | |||
//if(!list.size().isEmptry()) { | |||
for (String s : list) { | |||
result += s + ";"; | |||
} | |||
//} | |||
return result; | |||
} | |||
@@ -87,7 +87,7 @@ | |||
android:id="@+id/automaticList" | |||
android:layout_width="413dp" | |||
android:layout_height="470dp" | |||
android:layout_marginTop="124dp" | |||
android:layout_marginTop="110dp" | |||
app:layout_constraintEnd_toEndOf="parent" | |||
app:layout_constraintStart_toStartOf="parent" | |||
app:layout_constraintTop_toTopOf="@+id/startAutomatic" /> |