Android how to create menu drop down list view? - drop-down-menu

enter image description here
I find it too beautiful. please help. Thanks very much

You can use spinner here is example
<Spinner
android:id="#+id/planets_spinner"
android:layout_width="fill_parent"
android:layout_height="wrap_content"/>
<?xml version="1.0" encoding="utf-8"?>
And resources:
<resources>
<string-array name="planets_array">
<item>Mercury</item>
<item>Venus</item>
<item>Earth</item>
<item>Mars</item>
<item>Jupiter</item>
<item>Saturn</item>
<item>Uranus</item>
<item>Neptune</item>
</string-array>
</resources>

Related

Error in Octopus Deployment: Found multiple target elements, but the 'Replace' Transform only applies to the first match

I have configuration file (file1.config) looking kind of like this:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<myelement>
oldvalue
</myelement>
</configuration>
I want to replace "oldvalue" with "newvalue". For this reason I have created a file (file1.Development.config) looking something like this:
<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<myelement xdt:Transform="Replace">
newvalue
</myelemetn>
</configuration>
The problem is that when I deploy the package with Octopus Deploy I get the following error:
Found multiple target elements, but the 'Replace' Transform only
applies to the first match
I solved the problem by adding an xdt:Locator. So now my transformation file looks like this:
<?xml version="1.0" encoding="utf-8" ?>
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<myelement xdt:Transform="Replace" xdt:Locator="XPath(/configuration/myelement)">
newvalue
</myelemetn>
</configuration>

Handle i18n localization in alloy appcelerator

these do not work in alloy:
<Label id="label2" onClick="doClick" title="L('helloWorld')" />
<Label id="label2" onClick="doClick" >L('helloWorld')</Label>
my translation files are in:
/i18n/en/strings.xml
/i18n/fr/strings.xml
my strings.xml file has:
<?xml version="1.0" encoding="UTF-8"?>
<resources>
<string name="helloWorld">Hello World</string>
</resources>
ios simulator 8.1 is broken. localization in ios8.1 simulator doesn't work. test on real device.

How to create a simple administration panel for my joomla plugin

I think the problem lies in my xml.
<?xml version="1.0" encoding="UTF-8"?>
<extension version="2.5" type="plugin" group="content">
<install>
<name>Content - eya</name>
<author>eya</author>
<creationDate>February 2013</creationDate>
<copyright>(C) 2013 Open Source Matters. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<authorEmail>anigag#grzeit.com</authorEmail>
<authorUrl>www.eya.com</authorUrl>
<version>2.5.0</version>
<description>Adds eya plugin ot your site</description>
<files>
<filename plugin="eya">eya.php</filename>
</files>
</install>
<administration >
<filename>admin.php</filename>
</administration>
</extension>
This is my main php file that executes the content:eya.php.
I have got another file (admin.php) that takes 2 session variables from eya.php and put them in an iframe. There are two problems. One is that I dont know if the eya.php runs everytime before admin.php (or at least once to set the session variables). The second problem is that I dont know how to display only the admin.php and nothing else.
to build an admin interface for your plugin just add the config part to your xml
<config>
<fields name="params">
<fieldset name="basic">
<field name="testfield" type="text" default="mytest" label="field_label" description="field_description" />
</fieldset>
</fields>
</config>
but I didn't get the part of your admin.php/eya.php

dont show modules

I am doing a joomla 2.5 project
I put this <jdoc:include type="modules" name="izquierdo" style="none"/> and it shows me nothing.
The positions in my template is this:
<positions>
<position>izquierdo</position>
<position>extranet</position>
<position>menuPrincipal</position>
The status of this module is public.
Any ideas, am I miss something?
I found something strange.
if I put my route and at the end add ?tp=1 it shows me all my postions and it shows me my module (I see the image and other thinks), but with the normal router (without ?tp=1) I don't see anything.
This is my xml template:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE install PUBLIC "-//Joomla! 1.6//DTD template 1.0//EN" "http://www.joomla.org/xml/dtd/1.6/template-install.dtd">
<extension version="2.5" type="template" client="site">
<name>arquero</name>
<creationDate>10/10/09</creationDate>
<author>Ron Severdia</author>
<authorEmail>mpiedra#edosoftfactory.com</authorEmail>
<authorUrl>http://www.kontentdesign.com</authorUrl>
<copyright>Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.</copyright>
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
<version>2.5.0</version>
<description>ARQUERO_XML_DESCRIPTION</description>
<files>
<folder>html</folder>
<folder>css</folder>
<folder>images</folder>
<folder>js</folder>
<filename>index.php</filename>
<filename>index.html</filename>
<filename>templateDetails.xml</filename>
<filename>ajax.php</filename>
<filename>component.php</filename>
</files>
<positions>
<position>izquierdo</position>
<position>extranet</position>
<position>menuPrincipal</position>
<position>carrusel</position>
<position>noticias</position>
<position>footer</position>
<position>debug</position>
</positions>
</extension>
It seems to be fine your template. But try style="xhtml" on your jdoc statement.
And another guess is please check again the assignment of pages for your module from the backend. Most probably you might select "No pages" for the module assignment.
Thank you.

Exclude sitemesh

i would like to exclude sitemesh decorator for some of my files in a project. but how to do it. my file names is listApps.jsp
this is my decorators.xml files
<?xml version="1.0" encoding="UTF-8"?>
<decorators defaultdir="/WEB-INF/pages">
<excludes>
<pattern>/j_spring_security_logout</pattern>
<pattern>/pages/logout-redirect.jsp</pattern>
<pattern>/flexweb/*</pattern>
<pattern>/ApplicationScaffold.html</pattern>
<pattern>/listApps.html</pattern>
</excludes>
<decorator name="main" page="main.jsp">
<pattern>/*</pattern>
</decorator>
any help? thanks
well, you could create another template named nothingfancy and you don't do anything special for that one
put it first so it's evaluated before
<?xml version="1.0" encoding="utf-8"?>
<decorators defaultdir="/app/decorators">
<decorator name="nothingfancy" page="nothingfancy.jsp">
<pattern>/j_spring_security_logout</pattern>
<pattern>/pages/logout-redirect.jsp</pattern>
<pattern>/flexweb/*</pattern>
<pattern>/ApplicationScaffold.html</pattern>
<pattern>/listApps.html</pattern>
</decorator>
<decorator name="main" page="main.jsp">
<pattern>/*</pattern>
</decorator>
</decorators>

Resources