Material Design Hub

Showing posts with label Home. Show all posts
Showing posts with label Home. Show all posts

Thursday, May 28, 2015

ExpandableView Android Library

ExpandableView : ExpandableView is a View showing only a content and when clicked on it, it displays more content in a fashion way.


ExpandableView Android Library

Description:-  ExpandableView is a View showing only a content and when clicked on it, it displays more content in a fashion way. You can add views or viewgroups but remember that it will only display the content in a LinearLayout with vertical orientation.

You can choose by default a "chevron" icon animation or a "plus" icon animation. The "always visible row" has a left icon, a text and finally a right icon which will be the animated one.

Min SDK:- 14 (Android 4.0–4.0.2 Ice Cream Sandwich)


Chick Here for Download ExpandableView Android Library

Instructions - Maven Central
  1. Add this library in your build.gradle:
dependencies {
    compile 'coming soon...'
}
Instructions:
1: Clone the git repo
2: Import the "ExpandableView" module into your Android-gradle project.
3: Add "ExpandableView" module in your settings.gradle
4: DONE

How to use ExpandableView Android Library in eclipse :-

Step 1: Create a new Android Project

Step 2: Import  Library to your Android Application Project
     1: File->New->Other
     2: Select Android Project
     3: Select "Create Project from existing source"
     4: Click "Browse and select ExpandableView Android Library, 
     5: Finish 
     6: Right-click on your project -> Properties
     7: In Android->Library section click Add
     8: select recently added project -> Ok
     9: that's it!

How to Use it: As any view in Android you can add it by code or by layout xml file but remember that if you want to change the default height of the visible content you need to use:
topExpandableView.setVisibleLayoutHeight(300);
topExpandableView.setVisibleLayoutHeight(getResources().getDimensionPixelSize(R.dimen.new_height));

Remember also to fill the information inside the visible content by using:


expandableView.fillData(R.drawable.ic_android, R.string.android_names, true);
//or
expandableView.fillData(R.drawable.ic_android, getString(R.string.android_names), true);
//or
expandableView.fillData(R.drawable.ic_android, R.string.android_names, true);
//or
expandableView.fillData(R.drawable.ic_android, getString(R.string.android_names));
//or
expandableView.fillData(R.drawable.ic_android, R.string.android_names);

//or
expandableView.fillData(0, R.string.android_names); // No drawable left by passing 0.

If you want to add content into the discoverable LinearLayout simple use:
expandableView.addContentView(itemView); // itemView could be a simple TextView or more complex custom views

The most relevant part of this ExpandableView is when you want to include an ExpandableView into another ExpandableView, you need to pass the parent's View hierarchy, like this:
expandableViewLevel1.setOutsideContentLayout(topExpandableView.getContentLayout()); // 1 Level
expandableViewLevel2.setOutsideContentLayout(topExpandableView.getContentLayout(), expandableViewLevel1.getContentLayout()); // 2 Levels
expandableViewLevel3.setOutsideContentLayout(topExpandableView.getContentLayout(), expandableViewLevel1.getContentLayout(), expandableViewLevel2.getContentLayout()); // 3 Levels

Also remember to use this package in your layout files:
<com.expandable.view.ExpandableView
    android:id="@+id/activity_main_top_expandable_view"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"/>
Please Join our Facebook  Group and Page

Facebook group: Android controls

Facebook page: Android Controls

Subscribe YouTube channel: Click here

SUBSCRIBE TO OUR EMAIL NEWSLETTER & RECEIVE UPDATES RIGHT IN YOUR INBOX.   Click here


If You Have Any question or Suggestions Please Feel Free to Comments .

Sunday, November 30, 2014

AlertDialogPro/Dialogs

Android AlertDialogPro/Dialogs 

Android AlertDialogPro/Dialogs


Android AlertDialogPro/Dialogs


Android AlertDialogPro/Dialogs


Description
It's not an easy thing to theme the Android's AlertDialog, even though you are developing against HoneyComb (which introduced some new APIs like android:singleChoiceItemLayout -- allows you specify your own single-choice item layout in theme. But not enough) or above. AlertDialogPro can make this thing easy. It includes (but is not limited to) all AlertDialog's APIs. You can use it the same as using the platform's AlertDialog (just replace AlertDialog.Builder with AlertDialogPro.Builder) and benefit from some of the other sweet features.



Please Join our Facebook  Group and Page


Facebook group: Android controls

Facebook page: Android Controls


SUBSCRIBE TO OUR EMAIL NEWSLETTER & RECEIVE UPDATES RIGHT IN YOUR INBOX.   Click here


If You Have Any question or Suggestions Please Feel Free to Comments .

Monday, November 17, 2014

Android Holo ColorPicker

Android Holo ColorPicker



Android Holo ColorPicker



Description:

Marie Schweiz http://marie-schweiz.de/ made a beautifull new design for the Holo ColorPicker which added a lot of new functionality.

You can now set the Saturation and Value of a color. Also its possible to set the Opacity for a color.

You can also set the last selected color and see the difference with the new selected color.

Devoleped By: Lars Werkman



Please Join our Facebook  Group and Page


Facebook group: Android controls

Facebook page: Android Controls


SUBSCRIBE TO OUR EMAIL NEWSLETTER & RECEIVE UPDATES RIGHT IN YOUR INBOX.   Click here


If You Have Any question or Suggestions Please Feel Free to Comments .

Sunday, November 16, 2014

Android Range Seekbar with two thumbs

Android Range SeekBar with two thumbs


Android Range Seekbar with two thumbs

Description:

The Android widget class library contains only one "slider" like widget: the SeekBar. SeekBar only supports one thumb control and thus handles only one selectable value. If you need a widget allowing to handle two values (like a minimum and maximum value or a range), thisRangeSeekBar widget might suit your needs. It supports controlling minimum and maximum values on a numerical range of the following types:Long, Double, Integer, Float, Short, Byte and BigDecimal.


Download Sample code



Please Join our Facebook  Group and Page


Facebook group: Android controls

Facebook page: Android Controls


SUBSCRIBE TO OUR EMAIL NEWSLETTER & RECEIVE UPDATES RIGHT IN YOUR INBOX.   Click here


If You Have Any question or Suggestions Please Feel Free to Comments .

Saturday, November 15, 2014

Android QuiltViewLibrary

QuiltViewLibrary for Android





Description:
QuiltView displays views of different sizes in a scrollable grid.

Features:
Custom Adapter to allow view recycling
Be able to define children in XML
Adapt better to different screen sizes

Download Library and sample code




Please Join our Facebook  Group and Page


Facebook group: Android controls

Facebook page: Android Controls


SUBSCRIBE TO OUR EMAIL NEWSLETTER & RECEIVE UPDATES RIGHT IN YOUR INBOX.   Click here


If You Have Any question or Suggestions Please Feel Free to Comments .

Android Circular Progress Button

Android Circular Progress Button
Android Circular Progress Button


Description:

Android Button which can morph to circular indeterminate or integer progress. After progress is completed you can morph to success or error state.

watch the demo



How To Use Circular Progress Library :-

Step 1: Create a new Android Project


Step 2: Import  Library to your Android Application Project

     1: File->New->Other
     2: Select Android Project
     3: Select "Create Project from existing source"
     4: Click "Browse and select Circular Progress Android Library, 
     5: Finish 
     6: Right-click on your project -> Properties
     7: In Android->Library section click Add
     8: select recently added project -> Ok
     9: that's it!




Please Join our Facebook  Group and Page


Facebook group: Android controls

Facebook page: Android Controls


SUBSCRIBE TO OUR EMAIL NEWSLETTER & RECEIVE UPDATES RIGHT IN YOUR INBOX.   Click here


If You Have Any question or Suggestions Please Feel Free to Comments .