Let's create a Login user interface in android.
-
Create a new project with Empty Activity with a minimum sdk:API 21:Android 5.0(Lollipop).
-
Add this Material dependencies in your build.gradle(Module:app) file, After adding the dependencies click on Sync Now which is on the topright corner.
- implementation 'com.google.android.material:material:1.2.0'
- In your styles.xml file replace the parent with - "Theme.MaterialComponents.Light.NoActionBar"
- <style name="AppTheme" parent="Theme.MaterialComponents.Light.NoActionBar">
- Import the drawables from the flappy folder as shown.
-
In your activity_main file replace the code with activity_main file code.
-
Congrats now you have a beautiful Login-ui