themes

Removing the default toolbar in an activity android

 ̄綄美尐妖づ 提交于 2019-12-25 00:14:48
问题 Before upgrading to android 3.1 .I usually just change the theme to a theme. app compact. NoTitleBar but the new version of android studio is having errors recognizing it.I solved this problem by adding base to the beginning. But I can seem to find any answer regarding a style theme that supports removing the custom bar. 回答1: Add this style in style file . where other styles are mentioned . <!-- Base application theme. --> <style name="AppThemeNoActionBar" parent="Theme.AppCompat.Light

Codenameone - change dialog commands appearance

本秂侑毒 提交于 2019-12-24 20:13:30
问题 I have developed a mobile application, and I used leather theme. when i use Dialog.show() the command buttons are not visible enough and I need to change the background and foreground. Actually I am not sure which component I need to customize with Codename One Designer ? 回答1: In the theme constants tab you can set the dlgButtonCommandUIID variable to the UIID you want the buttons to take. The default is Button so customizing the Button UIID should work just fine. Background for the buttons

How do I use the default GUI theme on Windows?

本秂侑毒 提交于 2019-12-24 18:59:30
问题 I am programming a GUI with winapi, but my application looks like Windows 98 theme. How do I use the current window theme? I tried to create a manifest file, but it does not work. Test.cpp # include <windows.h> int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow ){ MessageBox(NULL, "Hello World!", "Hello", MB_OK); return 0; } Test.exe.Manifest <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1"

Set default theme colors for widgets?

廉价感情. 提交于 2019-12-24 16:26:58
问题 Widget colors differ between devices: the Galaxy Tab, for instance, uses a bluish/teal color for highlighted tabs and for preference sub-text, whereas the Dell Streak uses a dark gray. Is it possible to set the default theme colors used by widgets? Or where are these colors derived from? 来源: https://stackoverflow.com/questions/5875104/set-default-theme-colors-for-widgets

Remove back button in ModernUI plugin for wpf

六眼飞鱼酱① 提交于 2019-12-24 14:30:45
问题 I am trying to develop a modern wpf application using the MUI package. However I do not wish for the back button to be present and I tried to follow the steps mentioned in this link but it is not working. I am getting errors as controls not defined in namespace, etc. Basically, I cannot get the code to compile. What am I doing wrong? 回答1: Because the TargetType property in the Style references controls from the ModernUI library, you need to add the XML namespace for the ModernUI controls in

Datatemplates while using theme does not work - WPF

旧街凉风 提交于 2019-12-24 12:27:57
问题 I am using the theme DarkExpression from WPF Futures. It does not seem to work well with datatemplates. Scenario 1: Here is how it looks like without datatemplates: Code: <ListView Name="playlistListView" ItemsSource="{Binding PlaylistList}" Margin="0" SelectionChanged="DatabindedPlaylistListView_SelectionChanged" Background="{x:Null}" Opacity="0.98"> <ListView.View> <GridView> <GridViewColumn Width="Auto" DisplayMemberBinding="{Binding Name}"> <GridViewColumnHeader HorizontalContentAlignment

Theme a single TextView background color in styles.xml

你。 提交于 2019-12-24 12:09:57
问题 I have an application that has multiple themes. I have a single TextView who's background needs to change color with each theme, all other TextView's stay their default theme. I created a custom TextView widget and set it to the TextView in my xml layout file. public class CustomHeaderTextView extends TextView { public CustomHeaderTextView(Context context) { super(context); } public CustomHeaderTextView(Context context, AttributeSet attrs) { super(context, attrs); } public

How can I create a custom titlebar for all of my activities?

一个人想着一个人 提交于 2019-12-24 10:00:39
问题 I have seen many examples of creating a custom titlebar: http://zaman91.wordpress.com/2010/03/16/android-how-to-add-custom-title-bar/ Is there a simpler way of doing this? I think it is a bit overkill to have to implement the custom titlebar code in onCreate() for every activity. 回答1: Why not use an include? Put the design of your standard titlebar into a layout XML file, and then include it in each activity layout: <include layout="@layout/my_title_bar" /> And then create my_title_bar.xml to

Starting VirtoCommerce Storefront Theme Development

霸气de小男生 提交于 2019-12-24 09:18:34
问题 Trying to start from Timber but the solution won't load without a site on IIS Express existing. Further the contents of the downloaded zip file, while working, the solution does not come with a way to deploy to a new zip so I can create a new zip and deploy. There seem to be files in the zip that are not in the solution so I'm concerned I might not end up with same result just zipping up the files in the solution. Trying to download the Skeleton but no links to actually download from the app

Modify existing theme

£可爱£侵袭症+ 提交于 2019-12-24 07:35:06
问题 I would like to know if it is possible (and how) to customize an existing theme. What I'm looking for is how can I retrieve a certain attribute (i.e. color) and change it when the Activity starts and reapply the modified theme before setContentView() . Similar to setTheme() , but instead of using a resource id, use the modified theme. 回答1: Why not just make your own theme, setting the android:parent to the theme you want to copy, then set your own attributes? That is demonstrated in this