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
dependencies { | |
compile fileTree(include: ['*.jar'], dir: 'libs') | |
compile 'com.android.support:appcompat-v7:24.2.1' | |
compile 'com.squareup.picasso:picasso:2.4.0' | |
compile 'com.android.support:recyclerview-v7:24.2.1' | |
compile 'com.android.support:cardview-v7:24.2.1' | |
compile 'com.android.support:design:24.2.1' | |
} |
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
repositories { | |
google() | |
} | |
dependencies { | |
implementation 'androidx.core:core-ktx:0.1' | |
} |
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.keyes.youtube; | |
import android.app.Activity; | |
import android.app.AlertDialog; | |
import android.app.AlertDialog.Builder; | |
import android.content.Context; | |
import android.content.DialogInterface; | |
import android.content.Intent; | |
import android.graphics.Color; | |
import android.media.MediaPlayer; |
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"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="fill_parent" | |
android:layout_height="fill_parent" | |
android:background="@android:color/white" | |
android:orientation="vertical"> | |
<TextView | |
android:layout_width="wrap_content" | |
android:layout_height="wrap_content" |
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.keyes.youtube; | |
import android.app.Activity; | |
import android.content.Intent; | |
import android.net.Uri; | |
import android.os.Bundle; | |
import android.util.Log; | |
import android.view.View; | |
import android.widget.Button; | |
import android.widget.EditText; |
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.keyes.youtube; | |
import java.util.regex.Matcher; | |
import java.util.regex.Pattern; | |
/** | |
* By Askfortricks.com | |
*/ |
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
public class TypeFaceProvider { | |
public static final String TYPEFACE_FOLDER = "fonts"; | |
public static final String TYPEFACE_EXTENSION = ".ttf"; | |
private static Hashtable<String, Typeface> sTypeFaces = new Hashtable<String, Typeface>( | |
2); | |
public static Typeface getTypeFace(Context context, String fileName) { | |
Typeface tempTypeface = sTypeFaces.get(fileName); |
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
public class TextViewCustom extends TextView { | |
private static final String TAG = TextViewCustom.class.getSimpleName(); | |
public TextViewCustom(Context context) { | |
super(context); | |
} | |
public TextViewCustom(Context context, AttributeSet attrs) { | |
super(context, attrs); |
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="test.com.fusedlocationprovidermarshmallow"> | |
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/> | |
<application | |
android:allowBackup="true" | |
android:icon="@mipmap/ic_launcher" | |
android:label="@string/app_name" |
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
{"employees":[ | |
{"firstName":"John", "lastName":"Doe"}, | |
{"firstName":"Anna", "lastName":"Smith"}, | |
{"firstName":"Peter", "lastName":"Jones"} | |
]} |