Browse Source

App: Minor changes

master
Baran Yasar 1 year ago
parent
commit
ed730bc438

+ 1
- 1
MobileApp/.idea/misc.xml View File

<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/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/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/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_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_einstellungen.xml" value="0.25" />
<entry key="..\:/Line-Following-Robot/MobileApp/app/src/main/res/layout/fragment_home.xml" value="0.16666666666666666" /> <entry key="..\:/Line-Following-Robot/MobileApp/app/src/main/res/layout/fragment_home.xml" value="0.16666666666666666" />

+ 7
- 5
MobileApp/app/src/main/java/com/example/lfrmobileapp/ui/dashboard/DashboardFragment.java View File

@Override @Override
public void onClick(View v) { public void onClick(View v) {
// on below line we are getting text from edit text // 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 // on below line we are checking if item is not empty
if (!item.isEmpty()) { if (!item.isEmpty()) {
@Override @Override
public void onClick(View v) { public void onClick(View v) {
// on below line we are getting text from edit text // 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 // on below line we are checking if item is not empty
if (!item.isEmpty()) { if (!item.isEmpty()) {


public String listToString(ArrayList<String> list){ public String listToString(ArrayList<String> list){
String result = ""; String result = "";
for (String s : list) {
result += s + ";";
}
//if(!list.size().isEmptry()) {
for (String s : list) {
result += s + ";";
}
//}
return result; return result;
} }



+ 1
- 1
MobileApp/app/src/main/res/layout/fragment_automatik.xml View File

android:id="@+id/automaticList" android:id="@+id/automaticList"
android:layout_width="413dp" android:layout_width="413dp"
android:layout_height="470dp" android:layout_height="470dp"
android:layout_marginTop="124dp"
android:layout_marginTop="110dp"
app:layout_constraintEnd_toEndOf="parent" app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent" app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="@+id/startAutomatic" /> app:layout_constraintTop_toTopOf="@+id/startAutomatic" />

Loading…
Cancel
Save