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="wrap_content" | |
app:behavior_hideable="true" | |
app:behavior_peekHeight="56dp" | |
app:layout_behavior="com.google.android.material.bottomsheet.BottomSheetBehavior"> |
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
<style name="ItemsTouchable"> | |
<item name="android:clickable">true</item> | |
<item name="android:drawSelectorOnTop">true</item> | |
<item name="android:focusable">true</item> | |
<item name="android:foreground">?android:attr/selectableItemBackground</item> | |
</style> |
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" | |
android:id="@+id/contentItem" | |
style="@style/ItemsTouchable" | |
android:layout_width="match_parent" | |
android:layout_height="wrap_content"> | |
<ImageView |
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
//CardView | |
implementation 'androidx.cardview:cardview:1.0.0' | |
//RecycleView | |
implementation 'androidx.recyclerview:recyclerview:1.1.0' | |
//Design | |
implementation 'com.google.android.material:material:1.2.0-alpha06' | |
//Glide | |
implementation 'com.github.bumptech.glide:glide:4.11.0' | |
annotationProcessor 'com.github.bumptech.glide:compiler:4.11.0' |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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.derysudrajat.firebaseauth; | |
import android.os.Bundle; | |
import android.text.TextUtils; | |
import android.util.Log; | |
import android.widget.EditText; | |
import android.widget.TextView; | |
import android.widget.Toast; | |
import com.google.android.material.textfield.TextInputLayout; |
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
// Copyright(c) 2020, this code was made by Dery Sudrajat | |
// array of structures | |
#include <iostream> | |
#include <string> | |
#include <sstream> | |
#include <iomanip> | |
using namespace std; | |
struct pembeli | |
{ |
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
/* | |
* Copyright (c) 2020. this code made by Dery Sudrajat | |
*/ | |
package com.derysudrajat.firebasemlkittranslate | |
import android.os.Bundle | |
import android.util.Log | |
import androidx.appcompat.app.AppCompatActivity | |
import com.google.firebase.ml.naturallanguage.FirebaseNaturalLanguage |
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
/* | |
* Copyright (c) 2020. this code made by Dery Sudrajat | |
*/ | |
package com.derysudrajat.firebasemlkittranslate | |
import android.os.Bundle | |
import androidx.appcompat.app.AppCompatActivity | |
import kotlinx.android.synthetic.main.activity_main.* |
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 { | |
//... other dependencies | |
// ML-KIT OnDeviceTranslator | |
implementation 'com.google.firebase:firebase-ml-natural-language:22.0.0' | |
implementation 'com.google.firebase:firebase-ml-natural-language-translate-model:20.0.7' | |
} | |
apply plugin: 'com.google.gms.google-services' |