gpt4 book ai didi

android - 如何在 android studio 中包含 android-bootstrap?

转载 作者:太空狗 更新时间:2023-10-29 15:07:06 26 4
gpt4 key购买 nike

我想在 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 中执行此操作..这是我第一次使用此工具,但我迷路了..

最佳答案

首先不要忘记为您的应用授予互联网权限,将其添加到您的 AndroidManifest 文件中

<uses-permission android:name="android.permission.INTERNET"/>

将其放入 Gradle Scripts > build.gradle(Module:app)

implementation 'com.beardedhen:androidbootstrap:2.3.2 

关于android - 如何在 android studio 中包含 android-bootstrap?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20906050/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com