GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV Mobile 2024
→
Add custom style to Android project
Add custom style to Android project
Iniciado por Antonino Neri, jan., 25 2017 2:58 PM - 3 respostas
Conecte-se…
Antonino Neri
#1
Publicado em janeiro, 25 2017 - 2:58 PM
Hi Gents,
I would like to add a custom style to my Android project. In order to do so I am trying this:
(I've also tried to check the "write" option with the same result)
The error that I receive is the following one:
Failure creating the Android application named <D:\Documents\My Mobile Projects\EXPRESS_WM21_TEST\Exe\WM21_Test.apk>.
Command Line: "C:\Program Files\Java\jdk1.8.0_121\bin\java.exe" "-Dorg.gradle.appname=D:\Documents\My Mobile Projects\EXPRESS_WM21_TEST\Android\Generation" -classpath "D:\Documents\Android\gradle-2.9\lib\gradle-launcher-2.9.jar" org.gradle.launcher.GradleMain assembleDebug -b build.gradle
Error returned:
D:\Documents\My Mobile Projects\EXPRESS_WM21_TEST\Android\Generation\src\com\optimus\prime\wm21_test\wdgen\GWDPEXPRESS_WM21_Test.java:132: error: cannot find symbol
super.ajouterFichierAssocie("CustomStyle.xml",com.optimus.prime.wm21_test.R.values.customstyle_1+23, "");
^
symbol: variable values
location: class R
1 error
FAILED
What am I doing wrong?
Cheers,
Antonino
Denunciar
0
0
BOLLER
#2
Membro registado
3.660 mensagems
Popularité : +175 (223 votes)
Publicado em janeiro, 25 2017 - 5:06 PM
Hi,
View link
http://forum.pcsoft.fr/fr-FR/pcsoft.br.windev/254-android-sdk-homologado/read.awp
http
:
/
/
forum.pcsoft.fr
/
fr
-
FR
/
pcsoft.br.windev
/
254
-
android
-
sdk
-
homologado
/
read.awp
ok
--
Adriano José Boller
______________________________________________
Consultor e Representante Oficial da
PcSoft no Brasil
+55 (41) 9949 1800
adrianoboller@gmail.com
skype: adrianoboller
http://wxinformatica.com.br/
Denunciar
0
0
Antonino Neri
#3
Publicado em janeiro, 26 2017 - 10:17 AM
Hi Mr. Boller,
thanks a lot for this thread that is very useful but I can see a specific fix for this specific error.
The xml file I want to add contains a custom style for my project. If in the "APK Destination" column I select "Automatic" the project is compiled with no error but I can't call my style using this syntax R.style.MY_STYLE_NAME. The same syntax works fine in Android Studio.
Any suggestions???
Thanks for your time and care.
Kindest Regards,
Antonino
Denunciar
0
0
Rubén Sánchez Peña
#4
Publicado em janeiro, 26 2017 - 2:06 PM
Hi. You can't use a Android Studio style in WM. You must define the styles and resources to use in the Windows Designer. WM generate all the code and resource files for you.
You are adding the XML file like an asset resource or additional file, but you can't use the XML in this form to reference it from R.java.
Rubén
Denunciar
0
0
→ Voltar para WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto