Estou chutando, mas será que isto não é resolvido com o pacote de compatibilidade? Digo isto porque quando utilizo o ActionBarSherlock, coloco o tema como Holo (na verdade, é uma extensão do ABS para o Holo) e funciona da maneira que o Marcelo quer. Se não funcionar, porque quem resolve isto é o ABS, aí é só usar a lib.
Rodrigo
http://www.rodrigocarvalho.blog.br
Quem dita o estilo dos componentes é o Theme do aplicativo ou de cada activity.Theme.Holo.Light por exemplo (mas isso só funciona em 3.0+)...Para ter uma aparencia consistente em todas as versões você deve criar o seu proprio tema.
Lúcio Maciel
luciofm@gmail.com
On Thu, Jun 28, 2012 at 8:53 AM, Renato Porto Puccini <renatoppuccini@gmail.com> wrote:Então,
é que eu criei meu projeto e define o target 15, e minsdk 7 no manifest.
Dae a hora que rodo no emulador versao ics 4.0.3, os EditText aparecem versão android 2.3 e não o EditText do ICS (que é praticamente uma linha).
E não tenho a opção de settar o theme.holo.light. no manifest.
Sera que fiz algo errado?On Thu, Jun 28, 2012 at 8:14 AM, Marcelo Henrique <marcelohd02@gmail.com> wrote:
Sim aparece mas ´preciso colocar no manifest.xml as versoes de sdk que voce terá o suporteTo specify API Level requirements, add a
<uses-sdk>element in the application's manifest, with one or more of these attributes:
android:minSdkVersion— The minimum version of the Android platform on which the application will run, specified by the platform's API Level identifier.android:targetSdkVersion— Specifies the API Level on which the application is designed to run. In some cases, this allows the application to use manifest elements or behaviors defined in the target API Level, rather than being restricted to using only those defined for the minimum API Level.android:maxSdkVersion— The maximum version of the Android platform on which the application is designed to run, specified by the platform's API Level identifier. Important: Please read the<uses-sdk>documentation before using this attribute.When preparing to install your application, the system checks the value of this attribute and compares it to the system version. If the
android:minSdkVersionvalue is greater than the system version, the system aborts the installation of the application. Similarly, the system installs your application only if itsandroid:maxSdkVersionis compatible with the platform version.If you do not specify these attributes in your manifest, the system assumes that your application is compatible with all platform versions, with no maximum API Level.
To specify a minimum platform version for your application, add a
<uses-sdk>element as a child of<manifest>, then define theandroid:minSdkVersionas an attribute.For more information, see the
<uses-sdk>manifest element documentation and the API Levels document.Se nao é isso desconsidere este !! Abraços
Em 28 de junho de 2012 00:52, Renato Porto Puccini <renatoppuccini@gmail.com> escreveu:Como funciona o suporte a versoes anteriores sobre design, por exemplo dos EditTexts?
O EditText do ICS apareceria em um dispositivo 2.1 ou somente o contrario ocorre?
abs
------------------------------------------
Renato Porto Puccini
--
- Marcelo Henrique -"Se não puder se destacar pelo talento, vença pelo esforço." (Dave Weinbaum)






0 comentários:
Postar um comentário