divider

Change android numberpicker divider color

╄→尐↘猪︶ㄣ 提交于 2019-12-22 18:16:26
问题 I want to change the divider color(blue) of numberpicker shown above to transparent. I tried a lot of things like number_picker.setDividerDrawable(getResources().getDrawable(R.color.transparent)); number_picker.setShowDividers(NumberPicker.SHOW_DIVIDER_NONE); I also tried settings android:divider in xml But none of them worked Then I tried setting it using styles, but when I put the following entry in my styles, it says minimum version required is 14 and my app has minimum version 11 <style

how to hide the divider between preferences in fragment

人盡茶涼 提交于 2019-12-22 03:41:23
问题 I want to hide the divider between preferences in fragment. The code is below: 1.SettingsActivity.java public class SettingsActivity extends PreferenceActivity { super.onCreate(savedInstanceState); SettingsFragment settingsFragement = new SettingsFragment(); FragmentTransaction transaction = getFragmentManager().beginTransaction(); transaction.add(android.R.id.content, settingsFragement, "settings"); transaction.commitAllowingStateLoss(); } 2.SettingsFragment.java public class

Top and bottom dividers not showing in Android listview

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-22 01:34:29
问题 The way I understand it, the divider defined for a listview should appear at the top and bottom of the list too, i.e. above the first item and under the last item. For some reason they don't appear in my listview: <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/mainLayout" android:layout_width="fill_parent" android:layout_height="fill_parent" android:background="@drawable/background"> <ImageView android:id="@

Android action bar tab bar divider

旧街凉风 提交于 2019-12-21 14:20:13
问题 I am having problem setting the drawable for the divider. My style.xml looks like this: <resources xmlns:android="http://schemas.android.com/apk/res/android"> <style name="HCLTheme" parent="android:Theme.Holo.Light"> <item name="android:actionBarStyle">@style/HCLActionBarStyle</item> <item name="actionBarStyle">@style/HCLActionBarStyle</item> <item name="android:actionBarTabBarStyle">@style/HCLActionBarTabBarStyle</item> <item name="android:actionBarTabStyle">@style/HCLActionBarTabStyle</item

How do I remove the divider from a listview on android? [duplicate]

时间秒杀一切 提交于 2019-12-21 06:48:25
问题 This question already has answers here : How do I remove lines between ListViews on Android? (12 answers) Closed 5 years ago . I'm developing a app that have a Listview , and the items from list already have a style I don't need the divider. How do I set as hidden or remove the divider from the ListView ? 回答1: You can try android:divider="@null" . 回答2: There are different ways to achieve this, but I'm not sure which one is the best (I don't even know is there is a best way). I know at least 2

Hiding ListView Header / Hiding Single Divider in a List

*爱你&永不变心* 提交于 2019-12-20 11:54:11
问题 I found this Hide footer view in ListView?. As Yoni poited out correctly, you can hide a header in a ListView by wrapping it into a FrameLayout and setVisibility() of the inner View to View.GONE . This works almost perfect for me, BUT: As the FrameLayout still exists, the ListView adds two dividers to the displayed list. It seems like a single divider with a height of two dividers. Is there a way to hide a single divider of a ListView ? Maybe it's possible to change the divider's color to the

Changing a divider with setDivider in a ListActivity without a custom ListView?

拈花ヽ惹草 提交于 2019-12-20 09:19:38
问题 I can't seem to get a customized divider, using a Drawable I've defined, to work when using a ListActivity and not creating a custom ListView . It almost seems like when the VM creates its own ListView for me, with the ListActivity , it uses a theme with the default divider provided; and if I try to provide one, no dividers appear in the ListView at all. I know that I can create a custom ListView using XML and define android:divider on that ListView , and this does recognize my custom divider

Remove AutoCompleteTextView dropdown list divider

99封情书 提交于 2019-12-19 22:04:56
问题 In my application, I'm using AutoCompleteTextView. One of the requirements is to hide the divider. I have added AutoCompleteTextView to layout: <AutoCompleteTextView android:id="@id/address_bar" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_marginLeft="15dp" android:layout_marginRight="8dp" android:layout_toLeftOf="@id/address_operation_btn" android:background="@null" android:completionThreshold="1" android:dropDownAnchor="@id/anchor" android

Android: Cannot style spinner divider

蓝咒 提交于 2019-12-17 16:10:22
问题 I'm trying to create a theme for my first Android app, and it is driving me round the bend. I finally managed to figure out how to style items in a dropdown list, but now I can't change the colour of the divider between list items. I have searched similar questions on stackoverflow, and tried dozens of combinations, but nothing seems to work. Here is my styles.xml file (abbreviated for clarity): <?xml version="1.0" encoding="utf-8"?> <resources> <style name="MyTheme" parent="android:Theme

How to add dividers between specific menu items?

放肆的年华 提交于 2019-12-17 10:45:04
问题 Background I have a menu item in the action bar (toolbar actually) that when clicked, shows a list of items to choose from, similar to radio-buttons: <menu xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"> <item android:icon="@drawable/..." android:title="@string/..." app:showAsAction="always"> <menu> <group android:id="@+id/..." android:checkableBehavior="single"> <item .../> <item .../> <item .../> </group> </menu> </item> </menu