..
This commit is contained in:
parent
12c135dc95
commit
4f389dea45
@ -131,10 +131,10 @@ class AppDrawerBottomSheet : BottomSheetDialogFragment() {
|
||||
// 2. 어댑터 설정 (기본 안드로이드 레이아웃 사용)
|
||||
val adapter = ArrayAdapter(
|
||||
requireContext(),
|
||||
android.R.layout.simple_spinner_item,
|
||||
R.layout.spinner_item_dark,
|
||||
displayList
|
||||
)
|
||||
adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item)
|
||||
adapter.setDropDownViewResource(R.layout.spinner_item_dark)
|
||||
binding.categorySpinner.adapter = adapter
|
||||
|
||||
// 3. 선택 리스너 설정
|
||||
@ -150,6 +150,7 @@ class AppDrawerBottomSheet : BottomSheetDialogFragment() {
|
||||
override fun onNothingSelected(parent: AdapterView<*>?) {}
|
||||
}
|
||||
}
|
||||
|
||||
private fun setupKeyboardObserver() {
|
||||
ViewCompat.setOnApplyWindowInsetsListener(binding.root) { _, insets ->
|
||||
// 키보드(IME)가 보이는지 확인
|
||||
|
||||
@ -135,16 +135,16 @@
|
||||
android:paddingRight="5dp"
|
||||
android:layout_marginLeft="6dp"
|
||||
android:layout_marginRight="6dp"
|
||||
android:layout_marginTop="1dp"
|
||||
android:layout_marginBottom="1dp"
|
||||
android:layout_marginTop="12dp"
|
||||
android:layout_marginBottom="12dp"
|
||||
android:id="@+id/categorySpinner"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="33dp"
|
||||
android:layout_height="30dp"
|
||||
android:spinnerMode="dropdown"
|
||||
android:background="@drawable/base_bg"/>
|
||||
<TextView
|
||||
style="@style/SearchAccs"
|
||||
app:autoSizeTextType="uniform"
|
||||
style="@style/SearchAccs"
|
||||
android:id="@+id/search_tmap"
|
||||
android:text="TMAP"
|
||||
/>
|
||||
|
||||
8
app/src/main/res/layout/spinner_item_dark.xml
Normal file
8
app/src/main/res/layout/spinner_item_dark.xml
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@android:id/text1"
|
||||
style="@style/SearchAccs"
|
||||
android:layout_width="match_parent"
|
||||
android:background="@color/black"
|
||||
android:ellipsize="marquee"
|
||||
android:singleLine="true" />
|
||||
Loading…
x
Reference in New Issue
Block a user