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
[ | |
{ | |
"caption": "Telaga Ngebel.", | |
"image": "https://lh3.googleusercontent.com/-DcvRTKtuO-8/VoiDXRtNyhI/AAAAAAAACUQ/aIVzWE5QQis/s720-Ic42/senja_di_ngebel.jpg" | |
}, | |
{ | |
"caption": "Benteng Van den Bosch/ Pendem.", | |
"image": "https://lh3.googleusercontent.com/-11vMvcdFsRk/VoIqvg-MXuI/AAAAAAAACAE/_0F3uCCFMiE/s640-Ic42/benteng_pendem.JPG" | |
}, | |
{ |
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
{ | |
"status_code": 200, | |
"message": "success", | |
"data": { | |
"data": [ | |
{ | |
"id": 221, | |
"title": "test", | |
"description": "air tersumbat di pembuangan air limbah", | |
"picture": "http://dev.dot.co.id/taprose/uploads/photos/125/aduan/aduan-1497321441.jpg", |
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
{ | |
"status_code": 200, | |
"data": [ | |
{ | |
"date": "28/12/2017 15:02:56", | |
"id": "668d2154-bf7a-11e7-aea2-001c426e6ad8", | |
"name": "mahsus", | |
"institution": "smi", | |
"photo": "http://dev.dot.co.id/smi-api/images/profiles/photo-profile-1511323003.png", | |
"followed": false |
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
{ | |
"status_code": 200, | |
"data": [{ | |
"nama": "Alun Alun Malang", | |
"lokasi" : "Kota Malang", | |
"deskripsi": "alun alun ini baru saja dipermak pada tahun 2015. yang sebelumnya terlihat semrawut sekarang menjadi lebih tertata.", | |
"thumbnail": "https://lh3.googleusercontent.com/-7To0y-nnYak/VqQYjBWAwoI/AAAAAAAACf8/r_sAJ-dgsL8/s250-Ic42/thumbnail_alun_alun_malang.jpg", | |
"gambar": "https://lh3.googleusercontent.com/-rTHiiW3vPMk/VqQXrbG5u6I/AAAAAAAACfs/buFhkMyTN98/s600-Ic42/alun_alun_malang.jpg" | |
}, | |
{ |
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
{ | |
"status_code" : 200, | |
"data" : [ | |
{ | |
"caption": "Alun alun kota Batu.", | |
"thumbnail": "https://lh3.googleusercontent.com/-d2w1AEOpt4s/Vq1x8fx4EDI/AAAAAAAACss/NAsAdPhkbLM/s250-Ic42/thumbnail_alun_alun_batu.jpg", | |
"image": "https://lh3.googleusercontent.com/-3UDPQ5U--g0/Vq1xAEOyNVI/AAAAAAAACsY/Rlaao9voS7Q/s720-Ic42/alun_alun_batu.jpg" | |
}, | |
{ | |
"caption": "Museum Tubuh Bagong Adventure.", |
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
{ | |
"status_code" : 200, | |
"data" : [ | |
{ | |
"id": 1, | |
"title": "Title Image 1", | |
"content": "Lorem Ipsum Dolor Amit", | |
"type": "image", | |
"media": [ | |
"https://i.imgur.com/BnW0w2T.jpg" |
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
import android.content.Context | |
import android.os.Build | |
import android.os.LocaleList | |
import java.util.* | |
class ContextWrapper(base: Context) : android.content.ContextWrapper(base) { | |
companion object { | |
fun wrap(context: Context, newLocale: Locale): ContextWrapper { | |
var mContext = context |
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
import android.content.Context | |
import androidx.appcompat.app.AppCompatActivity | |
import com.yoesuv.switchlanguage.data.LanguagePreferences | |
import java.util.* | |
abstract class BaseActivity: AppCompatActivity() { | |
override fun attachBaseContext(newBase: Context?) { | |
val locale = Locale(LanguagePreferences.appLanguage) | |
val context = ContextWrapper.wrap(newBase!!, locale) |
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
class LanguageActivity : BaseActivity() { | |
private lateinit var toolbar: MaterialToolbar | |
private lateinit var radioEnglish: MaterialRadioButton | |
private lateinit var radioIndonesia: MaterialRadioButton | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
setContentView(R.layout.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
<?xml version="1.0" encoding="utf-8"?> | |
<font-family xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto"> | |
<font | |
android:fontStyle="normal" | |
android:font="@font/raleway_regular" | |
android:fontWeight="400" | |
app:fontStyle="normal" | |
app:font="@font/raleway_regular" |