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.haerulmuttaqin.firebaselogin; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.support.annotation.NonNull; | |
import android.support.v7.app.AppCompatActivity; | |
import android.util.Log; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.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
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.design.widget.CoordinatorLayout | |
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" | |
android:fitsSystemWindows="true" | |
android:background="@color/colorBackground" | |
tools:context=".NewsDetailActivity"> |
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"?> | |
<resources> | |
<color name="colorPrimary">#ea474a</color> | |
<color name="colorPrimaryDark">#cf2a2d</color> | |
<color name="colorAccent">#1e344b</color> | |
<color name="colorBackground">#f9f9fa</color> | |
<color name="colorTextSubtitle">#4e4e4e</color> | |
<color name="colorTextTitle">#262626</color> | |
</resources> |
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
implementation 'com.android.support:design:27.1.1' | |
implementation 'com.android.support:cardview-v7:27.1.1' | |
implementation 'com.android.support:recyclerview-v7:27.1.1' | |
//Image | |
implementation 'com.github.bumptech.glide:glide:4.7.1' | |
annotationProcessor 'com.github.bumptech.glide:compiler:4.7.1' | |
//Network | |
implementation 'com.squareup.retrofit2:retrofit:2.4.0' |
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.haerul.newsapps; | |
import android.graphics.Color; | |
import android.graphics.drawable.ColorDrawable; | |
import org.ocpsoft.prettytime.PrettyTime; | |
import java.text.ParseException; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; |
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.haerul.newsapps; | |
import java.security.cert.CertificateException; | |
import javax.net.ssl.HostnameVerifier; | |
import javax.net.ssl.SSLContext; | |
import javax.net.ssl.SSLSession; | |
import javax.net.ssl.SSLSocketFactory; | |
import javax.net.ssl.TrustManager; | |
import javax.net.ssl.X509TrustManager; |
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.haerul.androidregisterandlogin; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.SharedPreferences; | |
import java.util.HashMap; | |
public class SessionManager { |
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
additional, | |
To display an image: | |
/** | |
you have to send the image url from server, you change php code (read_detail.php) following this: | |
**/ | |
//read_detail.php | |
<?php | |
if ($_SERVER['REQUEST_METHOD']=='POST') { | |
NewerOlder