fix hint on android 7
This commit is contained in:
@@ -31,7 +31,7 @@ import java.util.Arrays;
|
|||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
|
|
||||||
|
|
||||||
class InstantAutoComplete extends com.google.android.material.textfield.MaterialAutoCompleteTextView {
|
class InstantAutoComplete extends androidx.appcompat.widget.AppCompatAutoCompleteTextView {
|
||||||
|
|
||||||
public InstantAutoComplete(Context context) {
|
public InstantAutoComplete(Context context) {
|
||||||
super(context);
|
super(context);
|
||||||
|
|||||||
@@ -15,14 +15,16 @@
|
|||||||
android:background="@android:color/transparent"
|
android:background="@android:color/transparent"
|
||||||
android:hint="@string/MeetingName"
|
android:hint="@string/MeetingName"
|
||||||
app:boxBackgroundColor="@android:color/transparent"
|
app:boxBackgroundColor="@android:color/transparent"
|
||||||
|
app:endIconMode="dropdown_menu"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/layoutName"
|
app:layout_constraintBottom_toTopOf="@+id/layoutName"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintWidth_percent="0.9"
|
app:layout_constraintWidth_percent="0.9">
|
||||||
app:endIconMode="dropdown_menu">
|
|
||||||
|
|
||||||
<de.joel.zoomhelper.InstantAutoComplete
|
<de.joel.zoomhelper.InstantAutoComplete
|
||||||
android:id="@+id/TextMeetingName"
|
android:id="@+id/TextMeetingName"
|
||||||
style="@style/Widget.MaterialComponents.AutoCompleteTextView.FilledBox"
|
style="@style/Widget.MaterialComponents.AutoCompleteTextView.FilledBox"
|
||||||
|
android:hint="@string/MeetingName"
|
||||||
|
android:textColorHint="@android:color/transparent"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
@@ -32,19 +34,19 @@
|
|||||||
android:nextFocusForward="@+id/textBoxName" />
|
android:nextFocusForward="@+id/textBoxName" />
|
||||||
</com.google.android.material.textfield.TextInputLayout>
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
||||||
<!--<ImageView
|
<!--<ImageView
|
||||||
android:id="@+id/iconDropdownMeetingName"
|
android:id="@+id/iconDropdownMeetingName"
|
||||||
android:layout_width="wrap_content"
|
android:layout_width="wrap_content"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
android:background="?attr/selectableItemBackgroundBorderless"
|
||||||
android:clickable="true"
|
android:clickable="true"
|
||||||
android:contentDescription="@string/dropdownBtn"
|
android:contentDescription="@string/dropdownBtn"
|
||||||
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"
|
||||||
app:layout_constraintStart_toEndOf="@+id/layoutMeetingName"
|
app:layout_constraintStart_toEndOf="@+id/layoutMeetingName"
|
||||||
app:layout_constraintTop_toTopOf="@+id/layoutMeetingName"
|
app:layout_constraintTop_toTopOf="@+id/layoutMeetingName"
|
||||||
app:layout_constraintBottom_toBottomOf="@+id/layoutMeetingName"/>-->
|
app:layout_constraintBottom_toBottomOf="@+id/layoutMeetingName"/>-->
|
||||||
|
|
||||||
|
|
||||||
<com.google.android.material.textfield.TextInputLayout
|
<com.google.android.material.textfield.TextInputLayout
|
||||||
@@ -104,14 +106,16 @@
|
|||||||
android:background="@android:color/transparent"
|
android:background="@android:color/transparent"
|
||||||
android:hint="@string/DisplayName"
|
android:hint="@string/DisplayName"
|
||||||
app:boxBackgroundColor="@android:color/transparent"
|
app:boxBackgroundColor="@android:color/transparent"
|
||||||
|
app:endIconMode="dropdown_menu"
|
||||||
app:layout_constraintBottom_toTopOf="@+id/layoutAtt"
|
app:layout_constraintBottom_toTopOf="@+id/layoutAtt"
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
app:layout_constraintStart_toStartOf="parent"
|
||||||
app:layout_constraintWidth_percent="0.9"
|
app:layout_constraintWidth_percent="0.9">
|
||||||
app:endIconMode="dropdown_menu">
|
|
||||||
|
|
||||||
<de.joel.zoomhelper.InstantAutoComplete
|
<de.joel.zoomhelper.InstantAutoComplete
|
||||||
android:id="@+id/textBoxName"
|
android:id="@+id/textBoxName"
|
||||||
style="@style/Widget.MaterialComponents.AutoCompleteTextView.FilledBox"
|
style="@style/Widget.MaterialComponents.AutoCompleteTextView.FilledBox"
|
||||||
|
android:hint="@string/DisplayName"
|
||||||
|
android:textColorHint="@android:color/transparent"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
android:focusable="true"
|
android:focusable="true"
|
||||||
@@ -154,7 +158,7 @@
|
|||||||
android:focusableInTouchMode="true"
|
android:focusableInTouchMode="true"
|
||||||
android:imeOptions="actionDone"
|
android:imeOptions="actionDone"
|
||||||
android:importantForAutofill="no"
|
android:importantForAutofill="no"
|
||||||
android:inputType="number"/>
|
android:inputType="number" />
|
||||||
</com.google.android.material.textfield.TextInputLayout>
|
</com.google.android.material.textfield.TextInputLayout>
|
||||||
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||||
Reference in New Issue
Block a user