diff --git a/app/src/main/java/com/example/bpa/view/from/dzcjy_activity.java b/app/src/main/java/com/example/bpa/view/from/dzcjy_activity.java index 87215a9..95c50d5 100644 --- a/app/src/main/java/com/example/bpa/view/from/dzcjy_activity.java +++ b/app/src/main/java/com/example/bpa/view/from/dzcjy_activity.java @@ -2,6 +2,7 @@ package com.example.bpa.view.from; import androidx.appcompat.app.AppCompatActivity; +import android.graphics.drawable.Drawable; import android.os.Bundle; import android.view.View; import android.widget.ArrayAdapter; @@ -162,9 +163,9 @@ public class dzcjy_activity extends AppCompatActivity implements View.OnClickLis this, R.layout.spinner_text_item, new ArrayList(datamaps.keySet())); - adapter.setDropDownViewResource(R.layout.spinner_dropdown_item); values_spinner.setAdapter(adapter); + } /** diff --git a/app/src/main/res/drawable/settingbutton.xml b/app/src/main/res/drawable/settingbutton.xml index 4bdb573..805a5b0 100644 --- a/app/src/main/res/drawable/settingbutton.xml +++ b/app/src/main/res/drawable/settingbutton.xml @@ -11,7 +11,7 @@ android:angle="45" /> - - + + diff --git a/app/src/main/res/drawable/spinner_border.xml b/app/src/main/res/drawable/spinner_border.xml index f231437..2b57033 100644 --- a/app/src/main/res/drawable/spinner_border.xml +++ b/app/src/main/res/drawable/spinner_border.xml @@ -4,15 +4,15 @@ - + diff --git a/app/src/main/res/drawable/spinner_drop_down_item_1.xml b/app/src/main/res/drawable/spinner_drop_down_item_1.xml new file mode 100644 index 0000000..dd63838 --- /dev/null +++ b/app/src/main/res/drawable/spinner_drop_down_item_1.xml @@ -0,0 +1,13 @@ + + diff --git a/app/src/main/res/layout/from/layout/activity_dzcjy.xml b/app/src/main/res/layout/from/layout/activity_dzcjy.xml index 5b76467..17652dd 100644 --- a/app/src/main/res/layout/from/layout/activity_dzcjy.xml +++ b/app/src/main/res/layout/from/layout/activity_dzcjy.xml @@ -137,9 +137,7 @@ android:layout_width="wrap_content" android:layout_margin="5dp" android:spinnerMode="dropdown" - style="@style/TechSpinnerStyle" - android:popupBackground="@drawable/btn_greenblue" - android:background="@drawable/spinner_border" + style="@style/commonSpinnerStyle" />