Skip to content

Instantly share code, notes, and snippets.

const Stations = [
{
id: "1",
name: "إذاعة صور من حياة الصحابة رضوان الله عليهم",
radio_url: "https://qurango.net/radio/sahabah",
name_en: "Sahaba Stories",
category: "منوعات",
category_en: "Others"
},
{
@moxgeek
moxgeek / MoxGeekImageView.java
Last active June 8, 2020 11:47
image zoom in/out , double tap, pinch , drag for gallery with RecyclerView. use setRecyclerView to freez your recycler while performing any kind of zooming gestures.
package com.nexy.nexinun.voipapp.utils;
import android.animation.ValueAnimator;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.graphics.PointF;
import android.graphics.RectF;
import android.util.AttributeSet;
import android.annotation.TargetApi;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Build;
import android.text.Editable;
import android.util.AttributeSet;
import android.util.TypedValue;
@gabrielemariotti
gabrielemariotti / Readme.md
Last active March 2, 2024 23:10
A SimpleSectionedRecyclerViewAdapter: use this class to realize a simple sectioned `RecyclerView.Adapter`.

You can use this class to realize a simple sectioned RecyclerView.Adapter without changing your code.

The RecyclerView should use a LinearLayoutManager. You can use this code also with the TwoWayView with the ListLayoutManager (https://github.com/lucasr/twoway-view)

This is a porting of the class SimpleSectionedListAdapter provided by Google

Screen

Example: