layout with hints for keyboard
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
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;
|
||||
@@ -31,7 +29,7 @@ import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Objects;
|
||||
|
||||
class InstantAutoComplete extends androidx.appcompat.widget.AppCompatAutoCompleteTextView {
|
||||
class InstantAutoComplete extends com.google.android.material.textfield.MaterialAutoCompleteTextView {
|
||||
|
||||
public InstantAutoComplete(Context context) {
|
||||
super(context);
|
||||
@@ -50,6 +48,7 @@ class InstantAutoComplete extends androidx.appcompat.widget.AppCompatAutoComplet
|
||||
|
||||
}
|
||||
|
||||
|
||||
public class MainActivity extends AppCompatActivity {
|
||||
|
||||
@Override
|
||||
@@ -201,7 +200,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
}
|
||||
|
||||
AutoCompleteTextView textMeetingName = findViewById(R.id.TextMeetingName);
|
||||
ImageView dropdown = findViewById(R.id.image);
|
||||
ImageView dropdown = findViewById(R.id.iconDropdownMeetingName);
|
||||
ArrayAdapter<String> adapter = new ArrayAdapter<>(this, android.R.layout.simple_dropdown_item_1line, meetingNames);
|
||||
textMeetingName.setAdapter(adapter);
|
||||
|
||||
@@ -229,7 +228,7 @@ public class MainActivity extends AppCompatActivity {
|
||||
}
|
||||
|
||||
AutoCompleteTextView textName = findViewById(R.id.textBoxName);
|
||||
ImageView dropdown = findViewById(R.id.image2);
|
||||
ImageView dropdown = findViewById(R.id.iconDropdownAttName);
|
||||
ArrayAdapter<String> adapter = new ArrayAdapter<>(this, android.R.layout.simple_dropdown_item_1line, attNames);
|
||||
textName.setAdapter(adapter);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user