Skip to content

Instantly share code, notes, and snippets.

View matpag's full-sized avatar
🐧
Noot-Nooting around

MatPag matpag

🐧
Noot-Nooting around
View GitHub Profile
@matpag
matpag / DialogNavigator.kt
Last active February 16, 2021 12:29 — forked from fbarthelery/DialogNavigator.kt
Minor changes
package com.geekorum.geekdroid.navigation
import android.content.Context
import android.os.Bundle
import android.util.AttributeSet
import androidx.core.content.res.use
import androidx.core.os.bundleOf
import androidx.fragment.app.DialogFragment
import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
@matpag
matpag / README.md
Created May 20, 2017 10:06 — forked from lopspower/README.md
Publish AAR to jCenter and Maven Central

Publish AAR to jCenter and Maven Central

Twitter

Now I'm going to list how to publish an Android libray to jCenter and then syncronize it with Maven Central:

  1. I use "Android Studio" and I have this simple android lib that I would like to be available on maven: CircularImageView

  2. In the library folder(module) I have the lib code abovementioned. And applying in the build.gradle of this folder apply plugin: 'com.android.library' I got as output an .aar in the build/outputs/aar/ directory of the module's directory

@matpag
matpag / TextViewDrawableSize.java
Last active December 14, 2016 10:19 — forked from hrules6872/TextViewDrawableSize.java
TextViewDrawableSize - CompoundDrawable size
/**
* Original source from here : http://stackoverflow.com/a/31916731
*/
public class TextViewDrawableSize extends TextView {
private static final int DEFAULT_COMPOUND_DRAWABLE_SIZE = -1;
private int compoundDrawableWidth;
private int compoundDrawableHeight;
public TextViewDrawableSize(Context context) {
this(context, null);