Android (JAVA)

Learn Android code free

circle shape xml android

This is a simple circle shape xml as a drawable in Android. Note: To make the oval shape appear as a circle, in these examples, either your view that you are using this shape as its background should be a square or you have to set the height and width properties of the shape tag to an equal value. Android Example, Circle shape in XML drawable file on Android, custom cricle shape, custom butom,

circle shape xml android Read More »

Show Snackbar on button click Android Studio

In this tutorial we will display a snackbar on Button click. To display snack bar we have to include design library into build.gradle(app). Step 1: Create a new project OR Open your project Step 2: Add design library in build.gradle(Module: app) in dependencies section. add this design libraryimplementation ‘com.android.support:design:27.0.2’ Step 3: Snackbar code activity_main.xml MainActivity.java Note: in the following

Show Snackbar on button click Android Studio Read More »