|
I've been working at trying to do some small inconsequential games over the past year and I keep hitting road blocks in my planning and development. Are there any guides on there for approach what is normally Java only development to accommodate android development? An example of one of the many small issues I'm running into: I'll create a java object and in the constructor for the object I would set a string value for a string data type, however Android wants to use the strings.xml for all the storage of string data. So do I just initialize the string value to null and then figure out how to access the strings.xml file for the data type or am I completely off base? If I could find some information or guides out there that hand hold for java to java/android that would probably clear up a lot of my frustration.
|
# ¿ Aug 16, 2012 16:06 |
|
|
# ¿ May 3, 2024 02:34 |
|
I think it was the (Context myContext) piece that I was not adding to my constructor for the data type. Because of this I wasn't able to access the strings.xml. These are little, yet big, things that I'm trying to work through that confuse me coming from straight Java.code:
|
# ¿ Aug 16, 2012 18:33 |
|
Has anyone had any experience with theming their apps? I'm trying to theme 4 buttons and I want borderless buttons. However when I try to combine styles to simplify the app I can't. Single button code:
code:
code:
I ended up fixing the issue by embedding android:background="?android:attr/selectableItemBackground" in to the theme which gave me the same effect. n0manarmy fucked around with this message at 21:23 on Aug 20, 2012 |
# ¿ Aug 20, 2012 20:10 |