cleaned layout

added testing info
This commit is contained in:
2021-03-10 20:39:12 +01:00
parent bb460a18d0
commit a1287ed244
3 changed files with 33 additions and 38 deletions
@@ -1,6 +1,8 @@
package de.joel.zoomhelper;
import android.annotation.SuppressLint;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
@@ -270,8 +272,15 @@ public class MainActivity extends AppCompatActivity {
if (intent.resolveActivity(getPackageManager()) != null) {
startActivity(intent);
}
//For Debugging: Show URL in Alert
AlertDialog.Builder dialog=new AlertDialog.Builder(this);
dialog.setMessage(url);
dialog.setTitle("Zoom URL (for testing)");
AlertDialog alertDialog=dialog.create();
alertDialog.show();
}
private String buildZoomURL(String confno, String pwd, String name, String attendees) {
if (!Objects.equals(attendees, "")) {
return "zoomus://zoom.us/join?confno=" + confno.replace(" ", "") + "&pwd=" + pwd + "&uname=" + name + " (" + attendees + ")";
@@ -440,6 +449,7 @@ public class MainActivity extends AppCompatActivity {
}
saveMeetingList(listMeetings);
fillDropdownMeetingName();
fillDropdownAttendeeName(getLastMeeting());
Toast.makeText(getApplicationContext(),"Meeting gespeichert",Toast.LENGTH_SHORT).show();
}
@@ -106,10 +106,8 @@
android:id="@+id/textID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="100dp"
android:layout_above="@+id/textBoxID"
android:text="@string/MeetingID"
/>
android:text="@string/MeetingID" />
<EditText
android:id="@+id/textBoxID"
@@ -118,8 +116,7 @@
android:layout_above="@+id/textPW"
android:focusable="true"
android:focusableInTouchMode="true"
android:inputType="text"
/>
android:inputType="text" />
<TextView
android:id="@+id/textPW"
@@ -127,8 +124,7 @@
android:layout_height="wrap_content"
android:layout_above="@+id/layoutPW"
android:layout_marginTop="22dp"
android:text="@string/Password"
/>
android:text="@string/Password" />
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/layoutPW"
@@ -143,7 +139,7 @@
<EditText
android:id="@+id/editTextTextPassword2"
android:layout_width="215dp"
android:layout_height="39dp"
android:layout_height="wrap_content"
android:inputType="textPassword"
/>
+19 -30
View File
@@ -4,17 +4,17 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_alignParentBottom="true"
android:paddingStart="60dp"
android:paddingEnd="16dp"
android:layout_alignParentBottom="true"
tools:context=".MainActivity">
<TextView
android:id="@+id/textMeetingName"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="70dp"
android:layout_above="@+id/TextMeetingName"
android:layout_marginTop="70dp"
android:text="@string/MeetingName" />
<de.joel.zoomhelper.InstantAutoComplete
@@ -41,9 +41,9 @@
android:id="@+id/imageAdd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/editAtt"
android:layout_marginStart="30dp"
android:layout_marginTop="30dp"
android:layout_below="@+id/editAtt"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:focusable="true"
@@ -53,9 +53,9 @@
android:id="@+id/imageTrash"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toEndOf="@+id/imageAdd"
android:layout_alignTop="@+id/imageAdd"
android:layout_marginStart="15dp"
android:layout_toEndOf="@+id/imageAdd"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:focusable="true"
@@ -65,9 +65,9 @@
android:id="@+id/imageSave"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toEndOf="@+id/imageTrash"
android:layout_alignTop="@+id/imageAdd"
android:layout_marginStart="15dp"
android:layout_toEndOf="@+id/imageTrash"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:focusable="true"
@@ -77,9 +77,9 @@
android:id="@+id/imageShare"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toEndOf="@+id/imageSave"
android:layout_alignTop="@+id/imageAdd"
android:layout_marginStart="15dp"
android:layout_toEndOf="@+id/imageSave"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:focusable="true"
@@ -89,9 +89,9 @@
android:id="@+id/imageAttend"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toEndOf="@+id/imageShare"
android:layout_alignTop="@+id/imageAdd"
android:layout_marginStart="15dp"
android:layout_toEndOf="@+id/imageShare"
android:background="?attr/selectableItemBackgroundBorderless"
android:clickable="true"
android:focusable="true"
@@ -101,10 +101,8 @@
android:id="@+id/textID"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="100dp"
android:layout_above="@+id/textBoxID"
android:text="@string/MeetingID"
/>
android:text="@string/MeetingID" />
<EditText
android:id="@+id/textBoxID"
@@ -113,8 +111,7 @@
android:layout_above="@+id/textPW"
android:focusable="true"
android:focusableInTouchMode="true"
android:inputType="text"
/>
android:inputType="text" />
<TextView
android:id="@+id/textPW"
@@ -122,8 +119,7 @@
android:layout_height="wrap_content"
android:layout_above="@+id/layoutPW"
android:layout_marginTop="22dp"
android:text="@string/Password"
/>
android:text="@string/Password" />
<com.google.android.material.textfield.TextInputLayout
android:id="@+id/layoutPW"
@@ -139,8 +135,7 @@
android:id="@+id/editTextTextPassword2"
android:layout_width="215dp"
android:layout_height="39dp"
android:inputType="textPassword"
/>
android:inputType="textPassword" />
</com.google.android.material.textfield.TextInputLayout>
@@ -150,8 +145,7 @@
android:layout_height="wrap_content"
android:layout_above="@+id/textBoxName"
android:layout_marginTop="22dp"
android:text="@string/DisplayName"
/>
android:text="@string/DisplayName" />
<de.joel.zoomhelper.InstantAutoComplete
@@ -159,8 +153,7 @@
android:layout_width="215dp"
android:layout_height="39dp"
android:layout_above="@+id/textAtt"
android:inputType="text"
/>
android:inputType="text" />
<ImageView
android:id="@+id/image2"
@@ -172,8 +165,7 @@
android:clickable="true"
android:focusable="true"
android:padding="5dp"
android:src="@mipmap/baseline_arrow_drop_down_black_24"
/>
android:src="@mipmap/baseline_arrow_drop_down_black_24" />
<TextView
android:id="@+id/textAtt"
@@ -181,37 +173,34 @@
android:layout_height="wrap_content"
android:layout_above="@+id/editAtt"
android:layout_marginTop="22dp"
android:text="@string/AttendeesInput"
/>
android:text="@string/AttendeesInput" />
<EditText
android:id="@+id/editAtt"
android:layout_width="215dp"
android:layout_height="39dp"
android:layout_above="@+id/btnSave"
android:inputType="number"
/>
android:inputType="number" />
<Button
android:id="@+id/btnSave"
android:layout_alignParentBottom= "true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_marginTop="80dp"
android:layout_marginBottom="40dp"
android:onClick="btnSave_onClick"
android:text="@string/Save"
/>
android:text="@string/Save" />
<Button
android:id="@+id/btnJoin"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/btnSave"
android:layout_toEndOf="@+id/btnSave"
android:layout_marginStart="22dp"
android:layout_toEndOf="@+id/btnSave"
android:onClick="btnJoin_onClick"
android:text="@string/Join" />