- mmm11105
- Apr 27, 2010
-
|
Is there a simple way in android to style a textview like the headers in Google's own holo apps (the things labeled "SECTION" here http://developer.android.com/design/media/metrics_forms.png )?
Figured I'd ask before trying to reverse engineer them myself.
|
#
¿
Jul 28, 2012 22:35
|
|
- Adbot
-
ADBOT LOVES YOU
|
|
#
¿
May 4, 2024 09:51
|
|
- mmm11105
- Apr 27, 2010
-
|
I'm trying to use the AndEngine.java library for use in a school project, but I don't think I'm correctly adding it to the build path. There are some superclasses in the library that I'm supposed to extend into subclasses for the purposes of the game, but Eclipse is just not recognizing the library at all.
Here's what I'm doing:
1.) Create a new folder in this project's subfolder called "libs"
2.) move andengine.java to that subfolder
3.) right click on it and select Build --> Add to build path
From here, the AndEngine library appears under the "Referenced Libraries" subgroup (It's the only thing in there), and I can open up the AndEngine library to find all the superclasses I'm supposed to be extending. The IDE just doesn't recognize any of them when I try to call them in my code.
Edit: I actually fixed it by adding a specific import statement for one of the classes I needed.
code:import org.anddev.andengine.ui.activity.BaseGameActivity;
which resolved this:
code:public class AndEngineMinimalExample extends BaseGameActivity{
"BaseGameActivity" was unrecognized before, the first line of code fixed it.
However, is there any way to make the IDE do this for me? It did not recognize anything from the imported library until I specifically typed out that import statement by hand. None of the subclasses/methods appear in the intellisense
That's mostly how java works, but you should be able to import something like
code:import org.anddev.andengine.ui.*
to get everything (that's public) out of the anddev ui package at once. Adjust where the * goes to for more or less specificity.
|
#
¿
Aug 4, 2012 23:33
|
|