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
interface MainView { | |
interface UIView { | |
fun setTextView(analyzedText: String) | |
fun setBitmapOnImageView(bitmap: Bitmap) | |
fun setToast(message: String) |
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
fun setAlertDialogView(flag: Boolean) | |
fun setMessage(message: String = "Loading Image...") | |
fun setTextColor(color: Int = Color.parseColor("#000000")) | |
fun setTextSize(txtsize: Float = 20f) | |
fun setAlertCancellable(cancel: Boolean = true) |
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"?> | |
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.aliazaz.galleryapp"> | |
<!---permissions--> | |
<uses-permission android:name="android.permission.INTERNET" /> | |
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
<application | |
android:name=".MainApp" |
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
package com.aliazaz.galleryapp; | |
import android.app.Application; | |
import com.facebook.drawee.backends.pipeline.Fresco; | |
public class MainApp extends Application { | |
@Override | |
public void onCreate() { |
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
╔═══════════════════╦═══════════════════════════╗ | |
║ Operations ║ Library Functions ║ | |
╠═══════════════════╬═══════════════════════════╣ | |
║ Empty edittext ║ isEmptyTextBox() ║ | |
║ ║ ║ | |
║ Range edittext ║ isRangeTextValidate() ║ | |
║ ║ ║ | |
║ Equal/Pattern ║ isTextEqualToPattern() ║ | |
║ Edittext ║ ║ | |
╚═══════════════════╩═══════════════════════════╝ |
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
//Empty edittext checking | |
if (!txtBoxReq.isEmptyTextBox()) | |
return; | |
//Range edittext checking | |
if (!txtBoxRange.isRangeTextValidate()) | |
return; | |
//Equal/Pattern edittext checking | |
if (!txtBoxDefault.isTextEqualToPattern()) |
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
//Empty edittext checking | |
if (txtbox1.getText().toString().isEmpty()) { | |
txtbox1.setError("This data is Required!"); | |
return false; | |
} else { | |
txtbox1.setError(null); | |
} | |
//Range edittext checking | |
if (txtbox2.getText().toString().isEmpty()) { |
NewerOlder