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
{ "data": [ { "viewType": "songElement", "imageUrl": "https://i.pravatar.cc/300", "title": "Ku Takek Tinggai", "artistName": "Rita Yohana", "songUrl": "https://res.cloudinary.com/diztyydas/video/upload/v1625366188/lagu-kerinci/Rita_Yohana_Kutakek_Tinggai_Lagu_Daerah_Kerinci_bio5k0.mp3", "id": "skdfj-k34n5" }, { "viewType": "songElement", "imageUrl": "https://i.pravatar.cc/300", "title": "Rentak Kudo - Cinteu Hatai", "artistName": "Viona Music", "songUrl": "https://res.cloudinary.com/diztyydas/video/upload/v1625559089/lagu-kerinci/RENTAK_KUDO_TERBARU_2018_-_Cinteu_Hatai_-_By_Viona_Music_zwrcen.mp3", "id": "skdfj-k34n5" }, { "viewType": "songElement", "imageUrl": "https://i.pravatar.cc/300", "title": "Anak Datung", "artistName": "Eka Diana", "songUrl": "https://res.cloudinary.com/diztyydas/video/upload/v1625559025/lagu-kerinci/Eka_Diana_Anak_Datung_Lagu_Kerinci_ckhpw5.mp3", "id": "skdfj-k34n5" }, { "viewType": "songElement", "imageUrl": "https://i.pravatar.cc/300", "title": "Tumbuk Punano", "artistName": "Yuli |
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
{"data": [ { "viewType": "horizontalScroll", "header": { "title" : "Popular Artist" }, "data": [ { "viewType" : "artistElement", "imageUrl": "https://i.pravatar.cc/300", "artistName": "John Doe", "artistId" :"skdfj-k34n5" }, { "viewType" : "artistElement", "imageUrl": "https://i.pravatar.cc/300", "artistName": "John Doe", "artistId" :"skdfj-k34n5" }, { "viewType" : "artistElement", "imageUrl": "https://i.pravatar.cc/300", "artistName": "John Doe", "artistId" :"skdfj-k34n5" } ] }, { "viewType": "tabView", "data": [ { "category" : "Playlists", "data": [ { "viewType" : "categoryElement", "imageUrl": "https://i.pravatar.cc/300", "title": "Lo-Fi Beats", "id" :"skdfj-k34n5" }, { "viewType" : "categoryElement", "imageUrl": "https://i.pravatar.cc/300", "title": "Santai Kayak Di Pantai", "id" :"skdfj-k34n5" } ] }, { "category" : "Albums", "data": [ { "viewType" : "categoryElement", "imageUrl": "https://i.pravatar.cc/300", "title": "Lo-Fi Beats", "id" :"skdfj-k34n5" }, { "viewType" : "categoryElement", "imageUrl": "htt |
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 'dart:ui'; | |
class TextSizes { | |
static TextSizes _instance; | |
static const int defaultWidth = 720; | |
static const int defaultHeight = 1280; | |
num uiWidthPx; | |
num uiHeightPx; |
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 HexColor extends Color { | |
static int _getColorFromHex(String hexColor) { | |
hexColor = hexColor.toUpperCase().replaceAll("#", ""); | |
if (hexColor.length == 6) { | |
hexColor = "FF" + hexColor; | |
} | |
return int.parse(hexColor, radix: 16); | |
} | |
HexColor(final String hexColor) : super(_getColorFromHex(hexColor)); |
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
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME}#end | |
import okhttp3.OkHttpClient | |
import okhttp3.logging.HttpLoggingInterceptor | |
import retrofit2.Response | |
import retrofit2.Retrofit | |
import retrofit2.converter.gson.GsonConverterFactory | |
import retrofit2.http.GET | |
import java.util.concurrent.TimeUnit |
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
#if (${PACKAGE_NAME} && ${PACKAGE_NAME} != "")package ${PACKAGE_NAME}#end | |
import android.view.LayoutInflater | |
import android.view.View | |
import android.view.ViewGroup | |
import androidx.recyclerview.widget.DiffUtil | |
import androidx.recyclerview.widget.ListAdapter | |
import androidx.recyclerview.widget.RecyclerView | |
#parse("File Header.java") |
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.annotation.SuppressLint | |
import android.annotation.TargetApi | |
import android.os.Build | |
import android.text.format.DateFormat | |
import android.text.format.DateUtils | |
import com.yogi.examplemvvm.utils.DateHelper.ABBR_DAY | |
import com.yogi.examplemvvm.utils.DateHelper.ABBR_HOUR | |
import com.yogi.examplemvvm.utils.DateHelper.ABBR_MINUTE | |
import com.yogi.examplemvvm.utils.DateHelper.ABBR_SECOND |
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.annotation.SuppressLint | |
import android.content.Context | |
import android.net.ConnectivityManager | |
import android.net.NetworkCapabilities | |
import android.os.Build | |
import android.telephony.TelephonyManager | |
/** |
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 androidx.recyclerview.widget.GridLayoutManager | |
import androidx.recyclerview.widget.LinearLayoutManager | |
import androidx.recyclerview.widget.RecyclerView | |
import androidx.recyclerview.widget.StaggeredGridLayoutManager | |
/** | |
* Created by oohyugi on 2019-09-03. | |
* github: https://github.com/oohyugi | |
*/ | |
abstract class EndlessRecyclerViewScrollListener : RecyclerView.OnScrollListener { |
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.cards.notification"> | |
<uses-sdk | |
android:minSdkVersion="17" | |
android:targetSdkVersion="17" /> | |
<application | |
android:allowBackup="true" |