layout with better land support
This commit is contained in:
@@ -29,6 +29,7 @@ import java.io.Serializable;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
|
|
||||||
class InstantAutoComplete extends com.google.android.material.textfield.MaterialAutoCompleteTextView {
|
class InstantAutoComplete extends com.google.android.material.textfield.MaterialAutoCompleteTextView {
|
||||||
|
|
||||||
public InstantAutoComplete(Context context) {
|
public InstantAutoComplete(Context context) {
|
||||||
@@ -55,13 +56,13 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
protected void onCreate(Bundle savedInstanceState) {
|
protected void onCreate(Bundle savedInstanceState) {
|
||||||
super.onCreate(savedInstanceState);
|
super.onCreate(savedInstanceState);
|
||||||
setContentView(R.layout.activity_main);
|
setContentView(R.layout.activity_main);
|
||||||
final ScrollView scrollview = ((ScrollView) findViewById(R.id.scrollArea));
|
final ScrollView scrollview = findViewById(R.id.scrollArea);
|
||||||
scrollview.post(() -> scrollview.scrollTo(0, scrollview.getChildAt(0).getHeight()));
|
|
||||||
watchMeetingNameBox();
|
watchMeetingNameBox();
|
||||||
fillDropdownMeetingName();
|
fillDropdownMeetingName();
|
||||||
if (getLastMeeting() != -1) {
|
if (getLastMeeting() != -1) {
|
||||||
try {
|
try {
|
||||||
fillMeeting(getLastMeeting());
|
fillMeeting(getLastMeeting());
|
||||||
|
scrollview.post(() -> scrollview.scrollTo(0, scrollview.getChildAt(0).getHeight()));
|
||||||
}
|
}
|
||||||
catch (IndexOutOfBoundsException e) {
|
catch (IndexOutOfBoundsException e) {
|
||||||
AlertDialog.Builder dialog=new AlertDialog.Builder(this);
|
AlertDialog.Builder dialog=new AlertDialog.Builder(this);
|
||||||
@@ -97,7 +98,11 @@ public class MainActivity extends AppCompatActivity {
|
|||||||
|
|
||||||
private void watchNewIcon() {
|
private void watchNewIcon() {
|
||||||
ImageView AddIcon = findViewById(R.id.imageAdd);
|
ImageView AddIcon = findViewById(R.id.imageAdd);
|
||||||
AddIcon.setOnClickListener(v -> fillBlank());
|
EditText meetingID = findViewById(R.id.textBoxID);
|
||||||
|
AddIcon.setOnClickListener(v -> {
|
||||||
|
fillBlank();
|
||||||
|
meetingID.requestFocus();
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void watchAttIcon() {
|
private void watchAttIcon() {
|
||||||
|
|||||||
@@ -6,9 +6,9 @@
|
|||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="match_parent"
|
android:layout_height="match_parent"
|
||||||
android:layout_marginStart="30dp"
|
android:layout_marginStart="30dp"
|
||||||
android:layout_marginTop="30dp"
|
android:layout_marginTop="10dp"
|
||||||
android:layout_marginEnd="30dp"
|
android:layout_marginEnd="30dp"
|
||||||
android:layout_marginBottom="30dp"
|
android:layout_marginBottom="10dp"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
tools:context=".MainActivity">
|
tools:context=".MainActivity">
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@
|
|||||||
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_marginTop="10dp"
|
||||||
android:layout_marginEnd="15dp"
|
android:layout_marginEnd="15dp"
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
<include
|
<include
|
||||||
layout="@layout/icons"
|
layout="@layout/icons"
|
||||||
|
android:layout_marginTop="20dp"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content" />
|
android:layout_height="wrap_content" />
|
||||||
|
|
||||||
|
|||||||
@@ -140,7 +140,6 @@
|
|||||||
android:id="@+id/layoutAtt"
|
android:id="@+id/layoutAtt"
|
||||||
android:layout_width="0dp"
|
android:layout_width="0dp"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:layout_marginBottom="22dp"
|
|
||||||
android:background="@android:color/transparent"
|
android:background="@android:color/transparent"
|
||||||
android:hint="@string/AttendeesInput"
|
android:hint="@string/AttendeesInput"
|
||||||
app:boxBackgroundColor="@android:color/transparent"
|
app:boxBackgroundColor="@android:color/transparent"
|
||||||
|
|||||||
Reference in New Issue
Block a user