Giter Site home page Giter Site logo

android-dashboard-layout-library's Introduction

Android Dashboard Layout Library

Use this library to create your app dashboard easily - without worrying about GridLayout, Adapter and such other stuffs. This library is based on the source code of Google IO 2013 app.

Screenshot

Screenshot

Compatibility

Supports Android 2.2+ (API level 8).

Usage

  • Import the project in Eclipse (File > Import > Existing Projects into Workspace)
  • Add this library as a reference in your project (Properties > Android > (Library) Add)
  • You don't need to change anything in your Activity. Just change the root of the xml layout file to cubi.rafi.DashboardLayout instead of LinearLayout, RelativeLayout etc.
  • It is recommended to use style/DashboardButton as the style of your Buttons.

Example

<cubi.rafi.DashboardLayout
    xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >

    <Button android:id="@+id/dashboard_user"
        style="@style/DashboardButton"
        android:text="My Profile"
        android:drawableTop="@drawable/dashboard_user" />

    <Button android:id="@+id/dashboard_emergency_contact"
        style="@style/DashboardButton"
        android:text="Emergency Contact"
        android:drawableTop="@drawable/dashboard_call" />

    <Button android:id="@+id/dashboard_new_accident"
        style="@style/DashboardButton"
        android:text="New Accident"
        android:drawableTop="@drawable/dashboard_add" />

    <Button android:id="@+id/dashboard_send_case"
        style="@style/DashboardButton"
        android:text="Send Case"
        android:drawableTop="@drawable/dashboard_message" />

    <Button android:id="@+id/dashboard_record"
        style="@style/DashboardButton"
        android:text="Record"
        android:drawableTop="@drawable/dashboard_record" />

    <Button android:id="@+id/dashboard_tow_truck"
        style="@style/DashboardButton"
        android:text="Tow Truck"
        android:drawableTop="@drawable/dashboard_truck" />
 
</cubi.rafi.DashboardLayout>

android-dashboard-layout-library's People

Contributors

rafi-kamal avatar

Watchers

 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.