cleaned layout
added testing info
This commit is contained in:
@@ -1,6 +1,8 @@
|
|||||||
package de.joel.zoomhelper;
|
package de.joel.zoomhelper;
|
||||||
|
|
||||||
import android.annotation.SuppressLint;
|
import android.annotation.SuppressLint;
|
||||||
|
import android.content.ClipData;
|
||||||
|
import android.content.ClipboardManager;
|
||||||
import android.content.Context;
|
import android.content.Context;
|
||||||
import android.content.Intent;
|
import android.content.Intent;
|
||||||
import android.content.SharedPreferences;
|
import android.content.SharedPreferences;
|
||||||
@@ -270,8 +272,15 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
if (intent.resolveActivity(getPackageManager()) != null) {
|
if (intent.resolveActivity(getPackageManager()) != null) {
|
||||||
startActivity(intent);
|
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) {
|
private String buildZoomURL(String confno, String pwd, String name, String attendees) {
|
||||||
if (!Objects.equals(attendees, "")) {
|
if (!Objects.equals(attendees, "")) {
|
||||||
return "zoomus://zoom.us/join?confno=" + confno.replace(" ", "") + "&pwd=" + pwd + "&uname=" + name + " (" + 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);
|
saveMeetingList(listMeetings);
|
||||||
fillDropdownMeetingName();
|
fillDropdownMeetingName();
|
||||||
|
fillDropdownAttendeeName(getLastMeeting());
|
||||||
Toast.makeText(getApplicationContext(),"Meeting gespeichert",Toast.LENGTH_SHORT).show();
|
Toast.makeText(getApplicationContext(),"Meeting gespeichert",Toast.LENGTH_SHORT).show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -106,10 +106,8 @@
|
|||||||
android:id="@+id/textID"
|
android:id="@+id/textID"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="100dp"
|
|
||||||
android:layout_above="@+id/textBoxID"
|
android:layout_above="@+id/textBoxID"
|
||||||
android:text="@string/MeetingID"
|
android:text="@string/MeetingID" />
|
||||||
/>
|
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/textBoxID"
|
android:id="@+id/textBoxID"
|
||||||
@@ -118,8 +116,7 @@
|
|||||||
android:layout_above="@+id/textPW"
|
android:layout_above="@+id/textPW"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:focusableInTouchMode="true"
|
android:focusableInTouchMode="true"
|
||||||
android:inputType="text"
|
android:inputType="text" />
|
||||||
/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textPW"
|
android:id="@+id/textPW"
|
||||||
@@ -127,8 +124,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_above="@+id/layoutPW"
|
android:layout_above="@+id/layoutPW"
|
||||||
android:layout_marginTop="22dp"
|
android:layout_marginTop="22dp"
|
||||||
android:text="@string/Password"
|
android:text="@string/Password" />
|
||||||
/>
|
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputLayout
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
android:id="@+id/layoutPW"
|
android:id="@+id/layoutPW"
|
||||||
@@ -143,7 +139,7 @@
|
|||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/editTextTextPassword2"
|
android:id="@+id/editTextTextPassword2"
|
||||||
android:layout_width="215dp"
|
android:layout_width="215dp"
|
||||||
android:layout_height="39dp"
|
android:layout_height="wrap_content"
|
||||||
android:inputType="textPassword"
|
android:inputType="textPassword"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|||||||
@@ -4,17 +4,17 @@
|
|||||||
xmlns:tools="http://schemas.android.com/tools"
|
xmlns:tools="http://schemas.android.com/tools"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
android:paddingStart="60dp"
|
android:paddingStart="60dp"
|
||||||
android:paddingEnd="16dp"
|
android:paddingEnd="16dp"
|
||||||
android:layout_alignParentBottom="true"
|
|
||||||
tools:context=".MainActivity">
|
tools:context=".MainActivity">
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textMeetingName"
|
android:id="@+id/textMeetingName"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="70dp"
|
|
||||||
android:layout_above="@+id/TextMeetingName"
|
android:layout_above="@+id/TextMeetingName"
|
||||||
|
android:layout_marginTop="70dp"
|
||||||
android:text="@string/MeetingName" />
|
android:text="@string/MeetingName" />
|
||||||
|
|
||||||
<de.joel.zoomhelper.InstantAutoComplete
|
<de.joel.zoomhelper.InstantAutoComplete
|
||||||
@@ -41,9 +41,9 @@
|
|||||||
android:id="@+id/imageAdd"
|
android:id="@+id/imageAdd"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_below="@+id/editAtt"
|
||||||
android:layout_marginStart="30dp"
|
android:layout_marginStart="30dp"
|
||||||
android:layout_marginTop="30dp"
|
android:layout_marginTop="30dp"
|
||||||
android:layout_below="@+id/editAtt"
|
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
@@ -53,9 +53,9 @@
|
|||||||
android:id="@+id/imageTrash"
|
android:id="@+id/imageTrash"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_toEndOf="@+id/imageAdd"
|
|
||||||
android:layout_alignTop="@+id/imageAdd"
|
android:layout_alignTop="@+id/imageAdd"
|
||||||
android:layout_marginStart="15dp"
|
android:layout_marginStart="15dp"
|
||||||
|
android:layout_toEndOf="@+id/imageAdd"
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
@@ -65,9 +65,9 @@
|
|||||||
android:id="@+id/imageSave"
|
android:id="@+id/imageSave"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_toEndOf="@+id/imageTrash"
|
|
||||||
android:layout_alignTop="@+id/imageAdd"
|
android:layout_alignTop="@+id/imageAdd"
|
||||||
android:layout_marginStart="15dp"
|
android:layout_marginStart="15dp"
|
||||||
|
android:layout_toEndOf="@+id/imageTrash"
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
@@ -77,9 +77,9 @@
|
|||||||
android:id="@+id/imageShare"
|
android:id="@+id/imageShare"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_toEndOf="@+id/imageSave"
|
|
||||||
android:layout_alignTop="@+id/imageAdd"
|
android:layout_alignTop="@+id/imageAdd"
|
||||||
android:layout_marginStart="15dp"
|
android:layout_marginStart="15dp"
|
||||||
|
android:layout_toEndOf="@+id/imageSave"
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
@@ -89,9 +89,9 @@
|
|||||||
android:id="@+id/imageAttend"
|
android:id="@+id/imageAttend"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_toEndOf="@+id/imageShare"
|
|
||||||
android:layout_alignTop="@+id/imageAdd"
|
android:layout_alignTop="@+id/imageAdd"
|
||||||
android:layout_marginStart="15dp"
|
android:layout_marginStart="15dp"
|
||||||
|
android:layout_toEndOf="@+id/imageShare"
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
@@ -101,10 +101,8 @@
|
|||||||
android:id="@+id/textID"
|
android:id="@+id/textID"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginTop="100dp"
|
|
||||||
android:layout_above="@+id/textBoxID"
|
android:layout_above="@+id/textBoxID"
|
||||||
android:text="@string/MeetingID"
|
android:text="@string/MeetingID" />
|
||||||
/>
|
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/textBoxID"
|
android:id="@+id/textBoxID"
|
||||||
@@ -113,8 +111,7 @@
|
|||||||
android:layout_above="@+id/textPW"
|
android:layout_above="@+id/textPW"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:focusableInTouchMode="true"
|
android:focusableInTouchMode="true"
|
||||||
android:inputType="text"
|
android:inputType="text" />
|
||||||
/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textPW"
|
android:id="@+id/textPW"
|
||||||
@@ -122,8 +119,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_above="@+id/layoutPW"
|
android:layout_above="@+id/layoutPW"
|
||||||
android:layout_marginTop="22dp"
|
android:layout_marginTop="22dp"
|
||||||
android:text="@string/Password"
|
android:text="@string/Password" />
|
||||||
/>
|
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputLayout
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
android:id="@+id/layoutPW"
|
android:id="@+id/layoutPW"
|
||||||
@@ -139,8 +135,7 @@
|
|||||||
android:id="@+id/editTextTextPassword2"
|
android:id="@+id/editTextTextPassword2"
|
||||||
android:layout_width="215dp"
|
android:layout_width="215dp"
|
||||||
android:layout_height="39dp"
|
android:layout_height="39dp"
|
||||||
android:inputType="textPassword"
|
android:inputType="textPassword" />
|
||||||
/>
|
|
||||||
|
|
||||||
</com.google.android.material.textfield.TextInputLayout>
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
||||||
@@ -150,8 +145,7 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_above="@+id/textBoxName"
|
android:layout_above="@+id/textBoxName"
|
||||||
android:layout_marginTop="22dp"
|
android:layout_marginTop="22dp"
|
||||||
android:text="@string/DisplayName"
|
android:text="@string/DisplayName" />
|
||||||
/>
|
|
||||||
|
|
||||||
|
|
||||||
<de.joel.zoomhelper.InstantAutoComplete
|
<de.joel.zoomhelper.InstantAutoComplete
|
||||||
@@ -159,8 +153,7 @@
|
|||||||
android:layout_width="215dp"
|
android:layout_width="215dp"
|
||||||
android:layout_height="39dp"
|
android:layout_height="39dp"
|
||||||
android:layout_above="@+id/textAtt"
|
android:layout_above="@+id/textAtt"
|
||||||
android:inputType="text"
|
android:inputType="text" />
|
||||||
/>
|
|
||||||
|
|
||||||
<ImageView
|
<ImageView
|
||||||
android:id="@+id/image2"
|
android:id="@+id/image2"
|
||||||
@@ -172,8 +165,7 @@
|
|||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
android:padding="5dp"
|
android:padding="5dp"
|
||||||
android:src="@mipmap/baseline_arrow_drop_down_black_24"
|
android:src="@mipmap/baseline_arrow_drop_down_black_24" />
|
||||||
/>
|
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/textAtt"
|
android:id="@+id/textAtt"
|
||||||
@@ -181,37 +173,34 @@
|
|||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_above="@+id/editAtt"
|
android:layout_above="@+id/editAtt"
|
||||||
android:layout_marginTop="22dp"
|
android:layout_marginTop="22dp"
|
||||||
android:text="@string/AttendeesInput"
|
android:text="@string/AttendeesInput" />
|
||||||
/>
|
|
||||||
|
|
||||||
<EditText
|
<EditText
|
||||||
android:id="@+id/editAtt"
|
android:id="@+id/editAtt"
|
||||||
android:layout_width="215dp"
|
android:layout_width="215dp"
|
||||||
android:layout_height="39dp"
|
android:layout_height="39dp"
|
||||||
android:layout_above="@+id/btnSave"
|
android:layout_above="@+id/btnSave"
|
||||||
android:inputType="number"
|
android:inputType="number" />
|
||||||
/>
|
|
||||||
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/btnSave"
|
android:id="@+id/btnSave"
|
||||||
android:layout_alignParentBottom= "true"
|
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
android:layout_alignParentBottom="true"
|
||||||
android:layout_marginTop="80dp"
|
android:layout_marginTop="80dp"
|
||||||
android:layout_marginBottom="40dp"
|
android:layout_marginBottom="40dp"
|
||||||
|
|
||||||
android:onClick="btnSave_onClick"
|
android:onClick="btnSave_onClick"
|
||||||
android:text="@string/Save"
|
android:text="@string/Save" />
|
||||||
/>
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
android:id="@+id/btnJoin"
|
android:id="@+id/btnJoin"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_alignTop="@+id/btnSave"
|
android:layout_alignTop="@+id/btnSave"
|
||||||
android:layout_toEndOf="@+id/btnSave"
|
|
||||||
android:layout_marginStart="22dp"
|
android:layout_marginStart="22dp"
|
||||||
|
android:layout_toEndOf="@+id/btnSave"
|
||||||
|
|
||||||
android:onClick="btnJoin_onClick"
|
android:onClick="btnJoin_onClick"
|
||||||
android:text="@string/Join" />
|
android:text="@string/Join" />
|
||||||
|
|||||||
Reference in New Issue
Block a user