This file contains 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"?> | |
<vector xmlns:android="http://schemas.android.com/apk/res/android" | |
android:width="355dp" | |
android:height="320dp" | |
android:viewportWidth="355" | |
android:viewportHeight="320"> | |
<group | |
android:name="Page-1"> | |
<path |
This file contains 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
import android.content.Context; | |
import android.content.Intent; | |
import android.content.SharedPreferences; | |
import android.graphics.Bitmap; | |
import android.graphics.Color; | |
import android.graphics.drawable.BitmapDrawable; | |
import android.graphics.drawable.GradientDrawable; | |
import android.net.Uri; | |
import android.os.Build; | |
import android.support.design.widget.Snackbar; |
This file contains 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
open class BitmapUtils { | |
var _view: View? = null | |
var _context: Context? = null | |
constructor(context: Context, view: View) { | |
this._view = view | |
this._context = context | |
} | |
fun convertLayout(): Bitmap { |
This file contains 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
if(Build.VERSION.SDK_INT>=16 && Build.VERSION.SDK_INT<21){ | |
finishAffinity(); | |
} else if(Build.VERSION.SDK_INT>=21){ | |
finishAndRemoveTask(); | |
} |
This file contains 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
requestWindowFeature(Window.FEATURE_NO_TITLE); | |
setContentView(R.layout.activity_login); | |
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN); |
This file contains 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} |
This file contains 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 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 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 |
OlderNewer