themes

background issue with styles and themes

雨燕双飞 提交于 2019-12-19 08:44:09
问题 in attrs I have <attr name="bzz" format="color" /> then in theme <style name="mytheme" parent="android:Theme"> <item name="bzz">@color/aaa</item> </style> and in the code this works great tv.setBackgroundResource(R.color.aaa); but when I do this it gives me an error tv.setBackgroundResource(R.attr.bzz); I do not understand what is the problem, my logic is that I set the bzz as reference to color so that should work fine, but it does not :) it says like android.content.res.Resources

Extending android:WindowTitle

折月煮酒 提交于 2019-12-19 07:39:04
问题 I wish to extend android:WindowTitle But parent="android:WindowTitle" no longer works in newer SDKs. It's a private style What is a good public replacement for parent="android:WindowTitle" ? I am getting lost reading this thread. Any alernative way for using <style name="CustomWindowTitle" parent="android:WindowTitle"> with out machine dependent hot fixes so that my code compiles for rest of the team? 回答1: You can open android-sdk-windows\platforms\android-6\data\res\values\styles.xml and

I can't edit selected text foreground color in Visual Studio 2010. Anyone know how to do this?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-19 05:19:34
问题 Let me show you: As you can see "Item foreground" is disabled. I want to believe there's something wrong on my end because being able to choose the colors you use to program in is a basic right for a programmer. No one should ever take that feature away and go unpunished. 回答1: I just wrote an extension that does this. You can download the extension on the Visual Studio Gallery or directly from the Extension Manager in visual studio (search for my name or the name of the extension, "Selection

Include an existing CSS file in custom extjs theme

[亡魂溺海] 提交于 2019-12-19 04:07:06
问题 I have an existing CSS file that I would like to include in my ExtJS production build. I am using a custom theme. I know I can go to MyApp/packages/myCustomTheme/sass/etc/ and use an @import in the all.scss file. But that uses the @import in the production file. I'm hoping there is a way that I can get my existing CSS file compressed with the rest of my app's CSS. 回答1: To include your custom css file in your production build, you can include the stylesheet above the <!-- <x-compile> -->

Customize syntax highlighting colors of data types and variables for typescript in Visual Studio Code

微笑、不失礼 提交于 2019-12-19 03:36:38
问题 I would like customize syntax highlighting colors for typescript. I use Visual Studio Code 1.16 and custom theme (Actual) Obsidian. I try use featues editor.tokenColorCustomizations. Here is my custom user settings. { "editor.fontSize": 20, "workbench.colorTheme": "(Actual) Obsidian", "editor.tokenColorCustomizations": { "functions": "#F1F1F1", "keywords": "#8EC160", "types": "#87CEEB", "numbers": "#F1F1F1", "variables": "#F1F1F1", "textMateRules": [ ] } } I don’t know how can I select a

Android : Full Screen Activity with Title bar

时光怂恿深爱的人放手 提交于 2019-12-19 03:08:42
问题 i want to set my Activity full Screen with Title bar , how can i do this ? thanks 回答1: In styles.xml: <resources> <style name="Theme.FullScreen" parent="@android:style/Theme.Holo"> <item name="android:windowNoTitle">false</item> <item name="android:windowFullscreen">true</item> </style> </resources> Refer to your custom style in your mainfest: <activity android:name=".MyActivity" android:theme="@style/Theme.FullScreen"/> To be truthful I've not tested this combination myself. 回答2: This worked

Android ListView background colors always showing grey

老子叫甜甜 提交于 2019-12-19 00:25:12
问题 I have a ListView that I'm populating from a custom ListAdapter. Inside the Adapter (in the getView(int, View, ViewGroup) method) I'm setting the background color of the View using setBackgroundColor(int). The problem is that no matter what color I set the background to it always comes out a dark grey. It might also be worth noting that I'm using the Light theme. Relevant (simplified) bits of code: AndroidManifest.xml: <activity android:name=".MyActivity" android:theme="@android:style/Theme

What is add_action( 'init [closed]

两盒软妹~` 提交于 2019-12-18 19:18:38
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . Why do we use this type of thing in wordpress? Can anyone explain it to me please? Why do we use init in wordpress functions? Or, what is init ? 回答1: Add action is used instead of hard-coding a function into WordPress. The benefit to using add_action is that you allow core wordpress functions to

What is add_action( 'init [closed]

a 夏天 提交于 2019-12-18 19:18:12
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . Why do we use this type of thing in wordpress? Can anyone explain it to me please? Why do we use init in wordpress functions? Or, what is init ? 回答1: Add action is used instead of hard-coding a function into WordPress. The benefit to using add_action is that you allow core wordpress functions to

Android: change color of disabled text using Theme/Style?

与世无争的帅哥 提交于 2019-12-18 18:54:50
问题 I have the following colors defined in my color.xml: <color name="gold">#d49e43</color> <color name="gold_disabled">#80d49e43</color> And the following theme: <style name="Theme.Example" parent="@style/Theme.Sherlock"> <item name="android:textColor">@color/gold</item> </style> In my SettingsActivity, I have a CheckBoxPreference and a Preference that depends on it. When The CheckBoxPreference is unchecked, the Preference is disabled, however, because of the custom gold text color that I set,