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
requestWindowFeature(Window.FEATURE_NO_TITLE); | |
setContentView(R.layout.activity_login); | |
this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,WindowManager.LayoutParams.FLAG_FULLSCREEN); |
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
if(Build.VERSION.SDK_INT>=16 && Build.VERSION.SDK_INT<21){ | |
finishAffinity(); | |
} else if(Build.VERSION.SDK_INT>=21){ | |
finishAndRemoveTask(); | |
} |
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
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 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
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 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"?> | |
<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 |
NewerOlder