PROFESSIONAL NEWSGROUPS
WINDEV
,
WEBDEV
and
WINDEV Mobile
Home
|
Recent messages
|
Connect
|
Sign out
|
English
Home
→
WINDEV Mobile 2024
→
Add custom style to Android project
Add custom style to Android project
Started by Antonino Neri, Jan., 25 2017 2:58 PM - 3 replies
Connect yourself…
Antonino Neri
#1
Posted on January, 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
Report
0
0
BOLLER
#2
Registered member
3,662 messages
Popularité : +175 (223 votes)
Posted on January, 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/
Report
0
0
Antonino Neri
#3
Posted on January, 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
Report
0
0
Rubén Sánchez Peña
#4
Posted on January, 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
Report
0
0
→ Go back to WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (earlier versions)
Français
English
Español
Portuguesa
Close this window
Search type
Only topics
All the messages
Search period
Any time
Past hour
Past 24 hours
Past week
Past month
Past year
Cancel
Preview of your message
Adding an image
Import an image from a URL
Send an image from a file of your disk
Drop a file or click "Browse..."
or
Cancel
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Text