我想把android-bootstrap按钮包含在android studio中,来自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..Is中做到这一点,这是我第一次使用这个工具,但是我迷路了。
发布于 2018-11-20 12:49:00
首先,别忘了给你的应用程序提供互联网权限将这个添加到你的AndroidManifest文件中
<uses-permission android:name="android.permission.INTERNET"/>将其放在Gradle脚本>build.gradle(模块:应用程序)中
implementation 'com.beardedhen:androidbootstrap:2.3.2 发布于 2014-02-21 03:36:46
在项目的根目录中创建一个文件夹"libs“,在这个put AndroidBoostrapsLibrary中添加下面的代码到setting.grandle中
':libs:AndroidBootstrap'这段代码
compile project(':libs:AndroidBootstrap')在你的build.grandle里。
https://stackoverflow.com/questions/20906050
复制相似问题