ESPN's hidden API endpoints
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
| package org.buffer.android.helpers.customtabs; | |
| import android.app.Activity; | |
| import android.content.ComponentName; | |
| import android.net.Uri; | |
| import android.os.Bundle; | |
| import android.support.customtabs.CustomTabsCallback; | |
| import android.support.customtabs.CustomTabsClient; | |
| import android.support.customtabs.CustomTabsIntent; | |
| import android.support.customtabs.CustomTabsServiceConnection; |
| ''' | |
| HTTP Reuests has following parameters: | |
| 1)Request URL | |
| 2)Header Fields | |
| 3)Parameter | |
| 4)Request body | |
| ''' | |
| #!/usr/bin/env python | |
| import requests |
Latest News: http://site.api.espn.com/apis/site/v2/sports/football/college-football/news
Latest Scores: http://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard
| package com.your.package | |
| import android.app.Dialog | |
| import android.os.Bundle | |
| import com.your.package.R | |
| import com.google.android.material.bottomsheet.BottomSheetDialog | |
| import com.google.android.material.bottomsheet.BottomSheetDialogFragment | |
| /** | |
| * BottomSheetDialog fragment that uses a custom |
| package io.hudepohl | |
| import com.google.gson.Gson | |
| import com.google.gson.annotations.SerializedName | |
| import com.google.gson.reflect.TypeToken | |
| import org.junit.Assert.assertTrue | |
| import org.junit.Test | |
| private const val testJson = | |
| """ |
| ext { | |
| compileSDKVersionValue = 29 | |
| minSDKVersionValue = 22 | |
| targetSDKVersionValue = 29 | |
| libraries = [ | |
| cardView : 'androidx.cardview:cardview:1.0.0', | |
| androidXLegacySupport : 'androidx.legacy:legacy-support-v4:1.0.0', | |
| androidXAppCompat : 'androidx.appcompat:appcompat:1.1.0', |
The Material Components Library introduced with the 1.2.0-alpha03 the new ShapeableImageView.
In your layout you can use:
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/image_view"
app:srcCompat="@drawable/..." />
Then in your code apply the ShapeAppearanceModel to define your custom corners:
This page has been updated a lot in the past 3 years. Older revisions you might like more than this one:
| import androidx.compose.runtime.* | |
| import kotlinx.coroutines.CoroutineScope | |
| @Stable | |
| internal class Event<T>(val value: T) | |
| class MutableEventQueue<T> | |
| internal constructor(): EventQueue<T>() { | |
| private val events = mutableListOf<Event<T>>() | |
| private val nextEventAsState = mutableStateOf<Event<T>?>(null) |
| #!/bin/bash | |
| # Runs Ankama Launcher on a steam deck by using existing Proton runtime. | |
| # | |
| # /!\ You must ensure that you have a Proton instance installed through | |
| # steam before running this script. | |
| DOWNLOAD_URL="https://launcher.cdn.ankama.com/installers/production/Ankama%20Launcher-Setup-x86_64.AppImage" | |
| STEAM_COMMON="/home/deck/.local/share/Steam/steamapps/common" | |
| # Init compatdata dir | |
| CURR_DIR=`dirname ${BASH_SOURCE[0]}` |