• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Divider is not displayed in Spinner in Dialog.

Mingi

Lurker
------------------------------------------------- manifests


<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="fec.drawinglibrary_sample">

<uses-feature
android:glEsVersion="0x00020000"
android:required="true" />


<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.INTERNET" />

<application
android:allowBackup="true"
android:icon="@Mipmap/ic_launcher"
android:label="@String/app_name"
android:roundIcon="@Mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@Style/AppTheme">
<activity
android:name="fec.raderapp.MainActivity"
android:label="@String/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>


---------------------------------------------------------------------style.html

<resources>

<!-- Base application theme. -->
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here. -->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="android:dropDownListViewStyle">@style/SpinnerStyle</item>
</style>

<style name="SpinnerStyle" parent="Widget.AppCompat.ListView.DropDown">
<item name="android:divider"> @color/titleColor</item>
<item name="android:dividerHeight"> 0.5dp </item>
</style>
</resources>



----------------------------------------------------- Spinner in Dialog

<LinearLayout
android:id="@+id/_Palett_Event_Layout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:minWidth="25px"
android:minHeight="25px"
android:eek:rientation="horizontal">

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:eek:rientation="vertical"></LinearLayout>

<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_weight="1"
android:eek:rientation="vertical">

<Spinner
android:id="@+id/_Palett_Spinner"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent"
android:eek:verlapAnchor="false"
android:popupBackground="@color/menuColor"
android:spinnerMode="dropdown"
android:theme="@Style/SpinnerStyle" />
</LinearLayout>
</LinearLayout>





The current code.

It can not be expressed only in Spinner in Dialog.
Why is this happening?
 
Back
Top Bottom