Error Resources not found on Xamarin Forms droid - xamarin.forms

I have a xamarin solution with a iOS project working, now i'm triying to do the same on android. So i created a new project android, install the nugets, and set the references, and this happens:
resource integer/google_play_services_version not found. (APT0000)
In the path obj/debug/android..., so i delete the obj and bin folder, build and got this:
resource style/Theme.AppCompat.Light.Dialog' not found.
style attribute 'attr/colorAccent' not found.
resource style/Theme.AppCompat.Light.DarkActionBar' not found.
style attribute 'attr/windowNoTitle' not found.
style attribute 'attr/windowActionBar' not found.
style attribute 'attr/colorPrimary' not found.
style attribute 'attr/colorPrimaryDark' not found.
style attribute 'attr/colorAccent' not found.
style attribute 'attr/windowActionModeOverlay' not found.
I deleted the obj and bin folder, the .local/share/xamarin too, clean and rebuild. And the packages are this:
And this is my style.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.Login" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowNoTitle">true</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowBackground">#drawable/SplashImage</item>
<!-- This is for the EditText Color lines-->
<item name="colorControlNormal">#color/white</item>
<item name="colorControlActivated">#color/greenBase</item>
<item name="colorControlHighlight">#color/greenBase</item>
<item name="android:textColorHint">#color/white</item>
</style>
<style name="MyActionBarStyle" parent="Widget.AppCompat.Light.ActionBar.Solid">
<item name="displayOptions">showTitle</item>
</style>
<!-- Base theme applied no matter what API -->
<style name="MainTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
<!--If you are using revision 22.1 please use just windowNoTitle. Without android:-->
<item name="windowNoTitle">false</item>
<item name="actionBarStyle">#style/MyActionBarStyle</item>
<!--We will be using the toolbar so no need to show ActionBar-->
<item name="windowActionBar">true</item>
<!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette -->
<!-- colorPrimary is used for the default action bar background -->
<item name="colorControlNormal">#color/greyBase</item>
<item name="colorControlActivated">#color/greenBase</item>
<item name="colorControlHighlight">#color/greenBase</item>
<item name="android:textColorHint">#color/greyBase</item>
<!-- You can also set colorControlNormal, colorControlActivated
colorControlHighlight and colorSwitchThumbNormal. -->
<item name="windowActionModeOverlay">true</item>
<item name="android:datePickerDialogTheme">#style/AppCompatDialogStyle</item>
</style>
<style name="AppCompatDialogStyle" parent="Theme.AppCompat.Light.Dialog">
<item name="colorAccent">#color/greenBase</item>
</style>
<style name="MainTheme" parent="MainTheme.Base"/>
<!-- Base theme applied no matter what API -->
<style name="MainTheme.BaseLight" parent="Theme.AppCompat.Light.NoActionBar">
<!--If you are using revision 22.1 please use just windowNoTitle. Without android:-->
<item name="android:windowNoTitle">true</item>
<item name="android:windowFullscreen">true</item>
<!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette -->
<!-- colorPrimary is used for the default action bar background -->
<item name="colorControlNormal">#color/greyBase</item>
<item name="colorControlActivated">#color/greenBase</item>
<item name="colorControlHighlight">#color/greenBase</item>
<item name="android:textColorHint">#color/greyBase</item>
<!-- You can also set colorControlNormal, colorControlActivated
colorControlHighlight and colorSwitchThumbNormal. -->
<item name="windowActionModeOverlay">true</item>
<item name="android:datePickerDialogTheme">#style/AppCompatDialogStyle</item>
</style>
</resources>
I don't know if i'm making something wrong to make the android app. What more can i try?

Related

How do I add inline css in Magentocommerce page from admin?

I just want to add
<style type="text/css>
my_inline_style...
</style>
In one page. I know I can add things like this from Layout Update XML:
<reference name="head">
<action name="addCss"><stylesheet>externalCss.css</stylesheet></action>
</reference>
But where is it documented to write inline css from that area?
I had a similar situation and arrive at this solution. That is not elegant but is useful (you can add any text throw layout update).
Add something like this to the layout update:
<reference name="head">
<block type="core/text" name="custom_css">
<action method="setText">
<text><![CDATA[
<style type="text/css">
.my-class {
color: red;
}
</style> ]]>
</text>
</action>
</block>
</reference>
Btw, It is hard to add the CSS style inline into the cms blocks because is hidden by some process inside the WYSIWYG editor after you save the block.

how to add custom css to specific page to magento by external css file in layout update xml

Adding custom css to specific page to magento by external css file in layout update xml, i only want to style the HTML code elements on my page content area.
Im creating drop down menu on the page content area, and inline css dose not support ul, li, hover etc function, the only way to style it will be adding custom css to it. And i must connect externally.
here is my code:
<reference name="head">
<block type="core/text" name="drop_down_menu_lock">
<action method="setText">
<text><![CDATA[<link rel="stylesheet" type="text/css" href="http://link/public_html/wordpress/drop_down_menu_lock.css">]]>
</text>
</action>
</block>
</reference>
Hello you can add below code into specific page xml like this
<catalog_product_view translate="label">
<reference name="head">
<block type="core/text" name="drop_down_menu_lock">
<action method="setText">
<text><![CDATA[<link rel="stylesheet" type="text/css" href="http://link/public_html/wordpress/drop_down_menu_lock.css">]]>
</text>
</action>
</block>
</reference>
</catalog_product_view>

Add conditional css style sheet to xpage

Is it possible to add a conditional style sheet to an xpage.
Done like this in html:
<!--[if lt IE 8]><link rel="stylesheet" href="../../blueprint/ie.css" type="text/css" media="screen, projection"><![endif]-->
Though about adding with computed field set to HTML and code javascript like:
return '<!--[if lt IE 8]><link rel=\"stylesheet\" href=\"../../blueprint/ie.css\" type=\"text/css\" media=\"screen, projection\"><![endif]-->'
but then it would be included in the body of page, not the header with the other style sheets.
Need for a proof of concept putting together using http://blueprintcss.org.
an Xpage theme would be great for this. There is an example included with the notes install.
go to C:\ Notes directory \xsp\nsf\themes
make a copy of webStandard.theme, rename is webStandard.xml and open in an editor of your choice, this will show you a lot of examples of what a theme can do. Apply attributes, add resources, compute these via expressions etc.
Snippet:
<resource rendered="#{javascript:context.isDirectionRTL()}">
<content-type>text/css</content-type>
<href>/.ibmxspres/global/theme/webstandard/xspRTL.css</href>
</resource>
<!-- IE Specific -->
<resource rendered="#{javascript:context.getUserAgent().isIE(0,6)}">
<content-type>text/css</content-type>
<href>/.ibmxspres/global/theme/webstandard/xspIE06.css</href>
</resource>
<resource rendered="#{javascript:context.getUserAgent().isIE(7,8)}">
<content-type>text/css</content-type>
<href>/.ibmxspres/global/theme/webstandard/xspIE78.css</href>
</resource>
You can use the rendered property with SSJS to show an element for IE only:
rendered="#{javascript:context.getUserAgent().isIE()}"
Then your CSS ressource will only added to the generated HTML response if a XPage is opened with Internet Explorer.
EDIT:
In your case this should fit your requirements:
<xp:this.resources>
<xp:styleSheet href="../../blueprint/ie.css"
rendered="#{javascript:context.getUserAgent().isIE(0,7)}"
media="screen, projection">
</xp:styleSheet>
</xp:this.resources>

XSL file causing error when stylesheet is included

I have a XML file with code like
<?xml version="1.0" encoding="UTF-8"?> <?xml-stylesheet href="rss2.xsl" type="text/xsl" media="screen"?> <rss version="2.0"> <channel>
<title>TITLE</title>
<description>Description</description>
<link>
some link
</link>
<copyright>Copyrights 2012, All Rights Reserved</copyright>
<item>
<title> title 1</title>
<description> desc</description>
<link>
some link
</link>
</item> </channel> </rss>
And an XSL file for this is
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" />
<xsl:template match="/">
<html>
<head>
<title>XML RSS Feed</title>
<link type="text/css" rel="stylesheet" href="rss_xsl.css" >
</head>
<body>
<h2>XML RSS Feed</h2>
<hr />
<div id="content">
<xsl:for-each select="rss/channel/item">
<div class="article">
<h3><xsl:value-of select="title"/></h3>
<p><xsl:value-of select="description"/></p>
</div>
</xsl:for-each>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
The issue is when i comment the stylesheet code then chrome shows the feed. when i include the style the feeds are no more visible. How can this stop showing the feeds. is their some thing wrong with this inclusion of Style for XSL files..
Well the stylesheet markup is not well-formed, due to <link type="text/css" rel="stylesheet" href="rss_xsl.css" > which should be <link type="text/css" rel="stylesheet" href="rss_xsl.css"/>. Then I think the approach works when loading over HTTP. If you load the XML document from the file system then I think Chrome refuses to load the the stylesheet linked to, for security reasons. There might be command line options or settings to change the behavior.

Styling velocity markup with css in confluence 4.0

I have written a confluence macro. It uses velocity to generate html table. How can I style this markup with css if I don't use <html> and <head> tags in my velocity model. I have tried to do as in this example but id doesn't work(I mean it takes no effect and there is no css resource file that I have specified inclusion on the code of result page of macro)
if i understand you correctly
you need to add links on your css files to atlasian-plugin.xml for example
<atlassian-plugin name='Just name' key='com.your.path.to.lib'
plugins-version="2">
<resource type="download" name="style.css" location="css/style.css">
<property key="content-type" value="text/css"/>
</resource>
</atlassian-plugin>
after that you need to add this link to the top of your velocity template
<link rel="stylesheet" href="$req.contextPath/com.your.path.to.lib/style.css"
type="text/css"/>

Resources