Skip to content

Instantly share code, notes, and snippets.

Avatar

Davide Maggio DVDAndroid

  • 23:10 (UTC +02:00)
View GitHub Profile
View translucenttb.cpp
#include <windows.h>
void SetWindowBlur(HWND hWnd)
{
const HINSTANCE hModule = LoadLibrary(TEXT("user32.dll"));
if (hModule)
{
@NikolaDespotoski
NikolaDespotoski / CustomTabsURLSpan.java
Last active November 21, 2019 13:06
Open clicked links of TextView in CustomTabs
View CustomTabsURLSpan.java
package samples.despotoski.nikola.com.customtabsmovementmethod;
import android.os.Parcel;
import android.text.style.URLSpan;
import android.view.View;
/**
* Created by Nikola D. on 12/23/2015.
*/
public class CustomTabsURLSpan extends URLSpan {
@ZkHaider
ZkHaider / expand-collapse.java
Last active January 30, 2022 02:31
Simple Expand / Collapse RecyclerView Item
View expand-collapse.java
public static class ExampleViewHolder extends RecyclerView.ViewHolder
implements View.OnClickListener {
private int originalHeight = 0;
private boolean isViewExpanded = false;
private YourCustomView yourCustomView
public ExampleViewHolder(View v) {
super(v);
v.setOnClickListener(this);
@fpopic
fpopic / card_friend.xml
Created December 26, 2014 21:24
material list avatar two textviews and icon
View card_friend.xml
<?xml version="1.0" encoding="utf-8"?>
<android.support.v7.widget.CardView
android:id="@+id/card_view_friend"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
card_view:cardCornerRadius="4dp"
card_view:cardUseCompatPadding="true">