Skip to content

Instantly share code, notes, and snippets.

View luqmanoop's full-sized avatar

Luqman Olushi Opemipo luqmanoop

View GitHub Profile
@luqmanoop
luqmanoop / activity_main.xml
Last active September 2, 2017 20:08
HNG profile app example layout
<?xml version="1.0" encoding="utf-8"?>
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="your_package_name.MainActivity">
<LinearLayout
android:layout_width="match_parent"
@luqmanoop
luqmanoop / MainActivity.java
Last active September 13, 2020 21:53
Android Exoplayer demo activity
import android.annotation.SuppressLint;
import android.net.Uri;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import com.google.android.exoplayer2.DefaultLoadControl;
import com.google.android.exoplayer2.DefaultRenderersFactory;
import com.google.android.exoplayer2.ExoPlayerFactory;
import com.google.android.exoplayer2.SimpleExoPlayer;
@luqmanoop
luqmanoop / iterm2-solarized.md
Created May 16, 2017 16:28 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@luqmanoop
luqmanoop / CircularNetworkImageView
Created March 15, 2017 19:54 — forked from bkurzius/CircularNetworkImageView
Circular NetworkImageView for use with Volley. Creates a circular bitmap and uses whichever dimension is smaller to determine the radius. Also constrains the circle to the leftmost part of that image. Used in the same way as the Volley NetworkImageView, in both code and xml. Of course you'll need to include the Volley Library in you app too.
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.PorterDuffXfermode;
import android.graphics.Rect;
import android.graphics.RectF;
import android.graphics.Bitmap.Config;
import android.graphics.PorterDuff.Mode;
import android.graphics.drawable.BitmapDrawable;