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
| package com.malik.rajanepikep; | |
| import android.support.annotation.NonNull; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.view.View; | |
| import android.widget.ImageView; | |
| import android.widget.TextView; | |
| public class MyAdapter extends RecyclerView.ViewHolder { | |
| public TextView nama,alamat; |
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
| package com.malik.rajanepikep; | |
| public class Dapat { | |
| private String nama; | |
| private String alamat; | |
| private String gambar; | |
| public Dapat(){} | |
| public Dapat(String nama, String alamat,String gambar) { |
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"?> | |
| <LinearLayout | |
| xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:orientation="vertical"> | |
| <TextView | |
| android:id="@+id/namanya" | |
| android:padding="10dp" | |
| android:layout_width="wrap_content" |
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
| apply plugin: 'com.android.application' | |
| android { | |
| compileSdkVersion 28 | |
| defaultConfig { | |
| applicationId "com.malik.rajanepikep" | |
| minSdkVersion 22 | |
| targetSdkVersion 28 | |
| versionCode 1 | |
| versionName "1.0" |
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
| { | |
| "rules": { | |
| ".read": "auth != null", | |
| ".write": "auth != null" | |
| } | |
| } | |
| { |
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
| startActivity(new Intent(android.provider.Settings.ACTION_APPLICATION_DETAILS_SETTINGS, Uri.parse("package:" + BuildConfig.APPLICATION_ID))); | |
| auth = FirebaseAuth.getInstance().getCurrentUser(); | |
| sudahLogin = auth != null; |
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
| AlertDialog.Builder builder = new AlertDialog.Builder(this); | |
| builder.setTitle("INI FOM"); | |
| View view = getLayoutInflater().inflate(R.layout.profil_form,null); | |
| builder.setView(view); | |
| builder.setPositiveButton("Simpan", new DialogInterface.OnClickListener() { | |
| @Override | |
| public void onClick(DialogInterface dialog, int which) { | |
| Log.d("CLIK SIMPAN","adalah"+which); | |
| } | |
| }); |
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
| View profil = getLayoutInflater().inflate(R.layout.profil_form,container,false); | |
| profil.setLayoutParams(new ViewGroup.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT)); | |
| profil.setTranslationZ(10); | |
| container.addView(profil); |
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
| AlertDialog.Builder profil = new AlertDialog.Builder(this); | |
| View view = getLayoutInflater().inflate(R.layout.tesaja,null); | |
| profil.setView(view); | |
| profil.setOnDismissListener(new DialogInterface.OnDismissListener() { | |
| @Override | |
| public void onDismiss(DialogInterface dialog) { | |
| Log.d("DIALOG","cancel"); | |
| } | |
| }); | |
| profil.show(); |
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
| <service android:name=".FireIDService" | |
| android:exported="false"> | |
| <intent-filter> | |
| <action android:name="com.google.firebase.INSTANCE_ID_EVENT" /> | |
| </intent-filter> | |
| </service> | |
| <service android:name=".FireBaseMsgService" | |
| android:exported="false"> | |
| <intent-filter> | |
| <action android:name="com.google.firebase.MESSAGING_EVENT" /> |