Skip to content

Instantly share code, notes, and snippets.

View cbedoy's full-sized avatar

Bedoy cbedoy

View GitHub Profile
import android.content.Context;
import android.graphics.Color;
import android.graphics.PixelFormat;
import android.graphics.drawable.GradientDrawable;
import android.graphics.drawable.PaintDrawable;
import android.graphics.drawable.ShapeDrawable;
import android.graphics.drawable.shapes.RoundRectShape;
import android.os.Bundle;
import android.view.Gravity;
import android.view.LayoutInflater;
@cbedoy
cbedoy / StrechableListView
Created October 13, 2014 04:51
StrechableListView
package cbedoy.stretchablelistview;
/**
* Created by Carlos on 27/09/2014.
*/
import android.content.Context;
import android.util.AttributeSet;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.MotionEvent;
@cbedoy
cbedoy / gist:d9757c870ebe69942777
Created October 25, 2014 18:32
Infernal Refactory - Apprende
Removing src/com/cbedoy/apprende/services/UniversityService.java
Removing src/com/cbedoy/apprende/services/ThemeService.java
Removing src/com/cbedoy/apprende/services/QuestionService.java
Removing src/com/cbedoy/apprende/services/ProfileService.java
Removing src/com/cbedoy/apprende/services/LoginService.java
Removing src/com/cbedoy/apprende/services/GuysService.java
Removing src/com/cbedoy/apprende/services/FeedService.java
Removing src/com/cbedoy/apprende/services/ExamService.java
Removing src/com/cbedoy/apprende/services/CourseService.java
Removing src/com/cbedoy/apprende/services/AppInstanceProvider.java
@cbedoy
cbedoy / gist:618ad6d5ba26b3e091dd
Created November 19, 2014 05:50
MosaicService
import java.util.ArrayList;
import java.util.Random;
/**
* --------------------------------------------------------
* Created by Carlos Bedoy on 18/11/14.
* MosaicTest
* Mobile Developer
* Aguascalientes Mexico
* Email: [email protected]
@cbedoy
cbedoy / Example use
Last active August 29, 2015 14:10
ApplicationLoaderWithImageLoaderConfiguration
import android.content.Context;
import android.graphics.Bitmap;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.ImageView;
import android.widget.TextView;
import com.cbedoy.apprende.R;
@cbedoy
cbedoy / FontSupportedService
Created January 14, 2015 23:57
Service To Set Support Font To all text view on deferents font settings - Avoid alter viewcontrollers
import android.content.res.Configuration;
import android.util.TypedValue;
import android.widget.TextView;
import org.pademobile.application.ApplicationLoader;
/**
* Created by Carlos Bedoy on 1/14/15.
* <p/>
* Mobile App Developer - Bills Android
@cbedoy
cbedoy / gist:13589cf4d4128b0ead94
Created January 25, 2015 15:20
RestService Supported
package com.cbedoy.apprende.service;
import android.os.AsyncTask;
import android.os.Build;
import android.util.Log;
import com.cbedoy.apprende.interfaces.IRestService;
import org.apache.http.HttpResponse;
import org.apache.http.NameValuePair;
@cbedoy
cbedoy / NotificationCenter.java
Created April 10, 2015 18:00
Provider notifications from observers
import java.util.ArrayList;
import java.util.HashMap;
public class NotificationCenter {
private static NotificationCenter mInstance;
private final HashMap<Integer, ArrayList<NotificationListener>> mListeners;
private NotificationCenter() {
package org.pademobile.viewcontrollers.inapp;
import android.view.View;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;
import org.pademobile.application.ApplicationLoader;
import org.pademobile.bills.R;
//
// PaymentOriginViewController.m
// Bills
//
// Created by Carlos Bedoy on 22/06/14.
// Copyright (c) 2014 Pademobile. All rights reserved.
//
#import "PaymentOriginViewController.h"
#import "Memento.h"