Skip to content

Instantly share code, notes, and snippets.

View AnwarShahriar's full-sized avatar
🎱
Focusing

Md. Shahriar Anwar AnwarShahriar

🎱
Focusing
View GitHub Profile
@AnwarShahriar
AnwarShahriar / MainActivity.kt
Created June 2, 2019 08:47
Image View size manipulation and conditional image loading with glide
package me.anwarshahriar.bitmapwithglide
import android.content.Context
import android.graphics.BitmapFactory
import android.os.Bundle
import android.util.DisplayMetrics
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
@AnwarShahriar
AnwarShahriar / coordinator_scroll_sandwich.xml
Created August 14, 2019 04:11
Coordinator layout test with multiple static view and one scrollable header in between.
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent">
<RelativeLayout
android:id="@+id/topBar"
android:layout_width="match_parent"

Keybase proof

I hereby claim:

  • I am anwarshahriar on github.
  • I am noob88 (https://keybase.io/noob88) on keybase.
  • I have a public key ASDLM7t0UKezVlhF5JFugKZeM4EQjo5DYDPPMBtkGl7LHQo

To claim this, I am signing this object: