styling

Changing spinner arrow, Appcompat v21

和自甴很熟 提交于 2019-12-03 00:33:38
i have activities which i themed with my custom theme, but for spinner i choosed to style it with Appcompat v21 but i got this : So how to change the Spinner arrow to be black or blue if is there a way ? i found this as similar question but doesn't have any answer : https://stackoverflow.com/questions/28561105/add-custom-spinner-arrow here is my spinner : <Spinner android:layout_width="fill_parent" android:layout_height="wrap_content" android:id="@+id/spinner2" android:layout_marginTop="10dp" android:layout_centerInParent="true" /> i used this to style the spinner: <style name="MyTheme

Most efficient data structure to add styles to text

眉间皱痕 提交于 2019-12-02 20:50:32
I'm looking for the best data structure to add styles to a text (say in a text editor). The structure should allow the following operations: Quick lookup of all styles at absolute position X Quick insert of text at any position (styles after that position must be moved). Every position of the text must support an arbitrary number of styles (overlapping). I've considered lists/arrays which contain text ranges but they don't allow quick insert without recalculating the positions of all styles after the insert point. A tree structure with relative offsets supports #2 but the tree will degenerate

SVG USE element and :hover style

为君一笑 提交于 2019-12-02 20:21:22
问题 I'm trying to use CSS :hover pseudoclass to style SVG elements embeded from <defs> by <use> tag, but it doesn't seem to work :-/ Here's my code: <!DOCTYPE HTML> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8"/> <style type="text/css" media="screen"> .active { fill: #0BE; } .active:hover { opacity: 0.8; stroke: #F0F; stroke-width: 4px; } .active2 #p2 { fill: #0BE; } .active2:hover #p2 { opacity: 0.8

Different background color for different pages in rails

不羁岁月 提交于 2019-12-02 19:49:26
So I'm using an application.html.erb file which is basically the layout for every page in my website. But I want the homepage to have a white background and the rest of the pages to have a different background. The problem is, if I wrap the entire homepage file in a div, it only wraps the "yield" place and so it shows as a box with a white background within a larger box with a gray background. So how can I change the entire background of the homepage and leave the rest? Thanks! Expanding on the answer provided by @muffinista: You can use an instance variable set in the controller to determine

VisualStateManager — showing mouseover state when control is focused

柔情痞子 提交于 2019-12-02 19:44:51
I am creating a WPF button using Windows 8 styling (formerly metro). I would like the focused state of the button to show with a solid background. When the mouse is over the control, I would like th background to darken slightly to create the visual cue that the button can be clicked. Unfortunately, the XAML I've written below does not work. The focused state shows correctly, but when the mouse is over the control, the background does not darken as I would like it to. <Color x:Key="DoxCycleGreen"> #FF8DC63F </Color> <!-- Soft Interface : DoxCycle Green --> <Color x:Key="DoxCycleGreenSoft">

Master detail split styling in android

不问归期 提交于 2019-12-02 17:48:08
This question probably has been asked many times over here, without yielding useful answers. I'd place it here with a possible answer. Feel free to improve. Question: How to setup popup like style of detail view, in side by side master detail view as highlighted in image below: In this solution , I have used 9-patch background images, to define 2 kinds of backgrounds for list items. So, the selected(checked) list Item has a different background, as shown: (list item) (selected item) (list item) The list item layout's parent view, is a class extending LinearLayout (can be any ViewGroup ) and

<s:textfield/> label styling for single character

久未见 提交于 2019-12-02 07:07:07
问题 I need to change the color of one character in this label specifically the * . This will need to be changed for several sections, but not changed for many others. Is there an inline way for me to do this? <td> <s:textfield label="* Bank Name" name="..." size="40" /> </td> 回答1: You should be able to wrap the character in <span> tags and set the colour in CSS. I'm not familiar with struct markup, but you should be able to apply the same concept. If not, this article will be helpful to use the

Merging cells and cell formatting in ALV

二次信任 提交于 2019-12-02 07:01:03
We are trying to manipulate the alv grid class to get result like in Sap Agenda (SSC1 tcode) i.e. to merge columns and rows. We found that the class cl_calendar_control_schedule with the method display handles that and we are working to understand the content of this method and its parameters. We found that the internat table of lvc_t_data type handles horizontal and/or vertical merging of cells (one row of this Internal table for each cell), but I struggle to understand how to code cell styling, for example, if i want to wipe just the bottom border or left border. What is the style of

How to design Single Selection Dialog?

空扰寡人 提交于 2019-12-02 06:51:27
问题 i want to show dialog like attached Image. an image to the left and text with single selection. any one guide me how to achieve this? 回答1: For that you have to customize the Context Menu because native context menu doesn't support for icon display inside the dialog, instead it only supports the text to be displayed inside each item. The image which you have mentioned here is customized context menu with icon. Here is the same example which you want: Source code for the above link: http://code

<s:textfield/> label styling for single character

牧云@^-^@ 提交于 2019-12-02 06:49:53
I need to change the color of one character in this label specifically the * . This will need to be changed for several sections, but not changed for many others. Is there an inline way for me to do this? <td> <s:textfield label="* Bank Name" name="..." size="40" /> </td> You should be able to wrap the character in <span> tags and set the colour in CSS. I'm not familiar with struct markup, but you should be able to apply the same concept. If not, this article will be helpful to use the <label> and <input> tags to accomplish what you want. Try this: HTML: <table> <tr> <td> <label><span class=