skip to Main Content

Android Studio – How to get multiple Spinner value?

I have a Fragment with 12 Spinners and I don't need to perform any action until the user click on a button. All my Spinners looks like this.(Showing only 2) <Spinner android:id="@+id/spinnerP1Type" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_weight="1" style="@style/spinner_style" android:entries="@array/powerTypes" android:gravity="top" /> <Spinner…

VIEW QUESTION

Android Studio unable to infer type of element define in xml

I have a layout xml where the following line occurs: <androidx.constraintlayout.widget.ConstraintLayout android:id="@+id/rootLayout" ... and in Kotline I have the following line to refer to this element: override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) setContentView(R.layout.activity_main) val rootLayout = findViewById(R.id.rootLayout) ... The findViewById…

VIEW QUESTION
Back To Top
Search