我想在android studio中包含android-bootstrap按钮,来自github的wiki说:
https://docs.github.com/Bearded-Hen/Android-Bootstrap/wiki/Installation-Guide
Please follow these instructions to install the Android Bootstrap library:
Download the project
Unzip the project to somewhere you will remember
Check inside your new folder that you have two projects inside - AndroidBootstrap and AndroidBootstrapTest
Open Eclipse
Press File - Import - Android - Existing Android Code
For the root directory - browse to the location of where the projects are - you'll need to click the top folder to import both the library and the test project
Hopefully you should have two projects to import
Ensure that the "copy projects into workspace" is ticked
Click finish
On the project you want to use AndroidBootstrap - right click - properties
Find the tab on the left that says "Android"
Bottom half of the window is for including libraries - click Add - and select AndroidBootstrap
Should like the image below:
Click Ok
You can now either follow the BootstrapButton guide or FontAwesomeText guide to start adding AndroidBootstrap items in your layouts :)
但我不知道我怎么能在android studio中这样做。这是我第一次使用这个工具而我输了..
答案 0 :(得分:1)
首先不要忘记向您的应用授予互联网许可,请将其添加到您的AndroidManifest文件中
SELECT
CASE WHEN field1 REGEXP 'foo|bar|foobar'
THEN 'field1' ELSE '' END AS field1match,
CASE WHEN field2 REGEXP 'foo|bar|foobar'
THEN 'field2' ELSE '' END AS field2match,
CASE WHEN field3 REGEXP 'foo|bar|foobar'
THEN 'field3' ELSE '' END AS field3match
FROM yourTable
将其放入Gradle脚本> build.gradle(Module:app)
<uses-permission android:name="android.permission.INTERNET"/>
答案 1 :(得分:-1)
在你的项目的根目录下创建一个文件夹“libs”,在这里放置AndroidBoostrapsLibrary并在你的setting.grandle中添加关注代码
':libs:AndroidBootstrap'
和此代码
compile project(':libs:AndroidBootstrap')
在build.grandle中。