This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <LinearLayout ... > | |
| <ImageView android:cropToPadding="true" /> | |
| <TextView android:id="@+id/tvName" /> | |
| <Button android:id="@+id/nextBtn" | |
| android:background="@drawable/rounded_button" /> | |
| </LinearLayout> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <LinearLayout | |
| ... | |
| tools:viewBindingIgnore="true" > | |
| ... | |
| </LinearLayout> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| android { | |
| ... | |
| buildFeatures { | |
| viewBinding true | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <application | |
| android:name=".MyApplication" | |
| android:icon="@drawable/icon" | |
| android:label="@string/app_name" | |
| ...> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class MyApplication : Application(){ | |
| //Optional override | |
| override fun onCreate() { | |
| super.onCreate() | |
| // Write initialization logic here! | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class MyApplication extends Application { | |
| //Optional override | |
| @Override | |
| public void onCreate() { | |
| super.onCreate(); | |
| // Write initialization logic here! | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?xml version="1.0" encoding="utf-8"?> | |
| <androidx.constraintlayout.widget.ConstraintLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:app="http://schemas.android.com/apk/res-auto" | |
| xmlns:tools="http://schemas.android.com/tools" | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| tools:context=".MainActivity"> | |
| <com.airbnb.lottie.LottieAnimationView |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dependencies { | |
| // Replace lottieVersion with the latest version available | |
| implementation 'com.airbnb.android:lottie:$lottieVersion' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| GOTO---> searchFragment----> onBindViewHolder | |
| //------------------------------------------------------------------------------------- | |
| @Override | |
| protected void onBindViewHolder(@NonNull final UsersViewHolder holder, final int position, @NonNull final SearchItem model) { | |
| holder.setDetails(getActivity(), model.getName(), model.getUsername(), model.getProfile_pic()); | |
| holder.mView.setOnClickListener(new View.OnClickListener() { | |
| @Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Add this to STYLE.XML | |
| <style name="SplashTheme" parent="Theme.AppCompat.NoActionBar"> | |
| <item name="android:windowBackground">@drawable/launch</item> | |
| </style> | |
| __________________________________________________________________________ | |
| 2. Add launch.xml file in {res --> drawable} |