5 Material Ui Dependencies for Android Studio!

Get in, and see five Material Ui dependencies for android studio.

1.Ripple Effect (Material)

When you click on a button and you see a circle drop animation going around that button, is a ripple effect.

In Gradle(In Module App, in the dependencies {} block:

implementation ‘com.patrickpissurno:ripple-effect:1.3.1’

XML(Drawable Resource File):

<com.andexert.library.RippleView android:id=”@+id/more” android:layout_width=”?android:actionBarSize” android:layout_height=”?android:actionBarSize” android:layout_toLeftOf=”@+id/more2″ android:layout_margin=”5dp” rv_centered=”true”> <ImageView android:layout_width=”?android:actionBarSize” android:layout_height=”?android:actionBarSize” android:src=”@android:drawable/ic_menu_edit” android:layout_centerInParent=”true” android:padding=”10dp” android:background=”@android:color/holo_blue_dark”/> </com.andexert.library.RippleView>

Java

By Robin Chutaux

Source Awesome Android

2. Material Text Field

Here, first it will be Full size text and clicking on it, it turns into a input EditText.

In Gradle(In Module App, in the dependencies {} block:

implementation ‘com.github.florent37:materialtextfield:1.0.7’

XML (Layout File)

<com.github.florent37.materialtextfield.MaterialTextField android:layout_width=”300dp” android:layout_height=”wrap_content” app:mtf_labelColor=”#666″ app:mtf_image=”@drawable/ic_mail_grey600_24dp” > <EditText android:layout_width=”match_parent” android:layout_height=”wrap_content” android:hint=”Password” android:textColor=”#333″ android:textSize=”15sp” /> </com.github.florent37.materialtextfield.MaterialTextField>

Java

//Same as a normal Text Field

By Florent Champiny

Source – Awesome Android

3. Transition Everywhere

In this, when you click on the button, it shows a text transition. You can use as alert field. Like, “you have not filled some details, you fill them first!”

In Gradle

implementation “com.andkulikov:transitionseverywhere:1.7.8”

XML

NA.

JAVA

TransitionManager.beginDelayedTransition(transitionsContainer); text.setVisibility(visible ? View.VISIBLE : View.GONE);

By andkulikov

Source Awesome Android

4.Sublime Picker (Calendar)

Its just a material calender.

In Gradle:

implementation ‘com.appeaser.sublimepickerlibrary:sublimepickerlibrary:2.1.1’

XML

Na.

JAVA

//using calender View

By Vikram Kakkar

Source Awesome Android

5. Target View

It highlights every elements with a circular animation!

In Gradle:

repositories { jcenter() } dependencies { implementation ‘com.getkeepsafe.taptargetview:taptargetview:1.10.0’ }

XML

Na.

JAVA

TapTargetView.showFor(this, // `this` is an Activity TapTarget.forView(findViewById(R.id.target), “This is a target”, “We have the best targets, believe me”) // All options below are optional .outerCircleColor(R.color.red) // Specify a color for the outer circle .outerCircleAlpha(0.96f) // Specify the alpha amount for the outer circle .targetCircleColor(R.color.white) // Specify a color for the target circle .titleTextSize(20) // Specify the size (in sp) of the title text .titleTextColor(R.color.white) // Specify the color of the title text .descriptionTextSize(10) // Specify the size (in sp) of the description text .descriptionTextColor(R.color.red) // Specify the color of the description text .textColor(R.color.blue) // Specify a color for both the title and description text .textTypeface(Typeface.SANS_SERIF) // Specify a typeface for the text .dimColor(R.color.black) // If set, will dim behind the view with 30% opacity of the given color .drawShadow(true) // Whether to draw a drop shadow or not .cancelable(false) // Whether tapping outside the outer circle dismisses the view .tintTarget(true) // Whether to tint the target view’s color .transparentTarget(false) // Specify whether the target is transparent (displays the content underneath) .icon(Drawable) // Specify a custom drawable to draw as the target .targetRadius(60), // Specify the target radius (in dp) new TapTargetView.Listener() { // The listener can listen for regular clicks, long clicks or cancels @Override public void onTargetClick(TapTargetView view) { super.onTargetClick(view); // This call is optional doSomething(); } });

By keepsafe

Source Awesome Android.

All these dependencies and even images are from Awesome Android App.

Must try these dependencies and enhance your App! Good Luck!

Published by Yash Kukreja

I am more than a proGrammer();

Leave a comment

Design a site like this with WordPress.com
Get started