Giter Club home page Giter Club logo

cards-ui's Introduction

Welcome

Screenshot

Dependencies

  1. Silk (http://github.com/afollestad/Silk)

Getting Started

Before the library will work, make sure you have Silk referenced as a dependency in both this library and your app. For best results, build Silk as a AAR file and install it to your local maven repository (see below). Otherwise, you will need to copy the assets folder from Silk to your app due to the fact that this library uses font resources.

Importing

To use this library with your Android apps, you have to reference this project as a library (from Eclipse) or add it as a module (from IntelliJ). It now has Gradle support, too. It cannot be compiled as a JAR because this library contains resources such as layouts that are needed.

Importing as AAR (recommended)

This process was written with the assumption that you are using Android Studio 0.2.11, gradle 1.8+, and you have recent Android Build Tools 18.0.1. Other versions may work with some adaptations.

You do not need to open this library in Android Studio to build and include it in your project.

Steps:

  • Clone a copy of this repository.
  • Determine the location of your copy of the Android SDK. (See Installing Android Studio to learn where the SDK might be installed.)
  • Create a file at the root of the repository called local.properties. Add the following line, replacing "/path/to/sdk" with the actual path as determined above:
sdk.dir=/path/to/sdk
  • At the root of the repository, run ./gradlew install. You should see some ":library:..." lines in the output, and at the end something like this:
Uploading: com/afollestad/cardsui/library/1.0-SNAPSHOT/library-1.0-20131007.010822-2.aar to repository remote at file:///home/<username>/.m2/repository
Transferring 24K from remote
Uploaded 24K
:library:install

BUILD SUCCESSFUL

If you are including Silk directly in your app:

  • Find the build.gradle file used for your project application, which is usually either in the project root or in a subdirectory in the project root.
  • Add mavenLocal() to the repositories block and compile 'com.afollestad.cardsui:library:1.0-SNAPSHOT to the dependencies block. Your file will look something like this:
buildscript {
    repositories {
        mavenCentral()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:0.5.+'
    }
}
apply plugin: 'android'

repositories {
    mavenLocal()
    mavenCentral()
}

android {
    compileSdkVersion 18
    buildToolsVersion "17.0.0"

    defaultConfig {
        minSdkVersion 15
        targetSdkVersion 18
    }
}

dependencies {
	compile 'com.afollestad.cardsui:library:1.0-SNAPSHOT'
}

  • At the root of your project directory, run ./gradlew build. You should see :<ProjectName>:prepareComAfollestadSilkLibrary10SNAPSHOTLibrary or something like it in the output and BUILD SUCCESSFUL at the end.
  • You're done. You can now use Cards UI in your app.

Tutorial

Tutorials are available on this project's wiki pages.

cards-ui's People

Contributors

afollestad avatar brntbeer avatar dpkirchner avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.