Assuming that you are not using GridLayout
:
Step #1: Copy android-support-v4.jar
or android-support-v13.jar
from your SDK into the libs/
directory of your project.
Step #2: There is no step #2.
Choose android-support-v13.jar
if you are using native fragments (versus the Android Support package's own backport) and you want to use them with things like ViewPager
that are part of the Android Support package.
GridLayout
makes things a bit more complicated, in that it is an Android library project. You would need to follow the instructions for how to use an Android library project in a command-line project, probably working off of a copy of the official project.
All of this stuff can be found in the extras/
directory of wherever your SDK is installed.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…