Skip to content

Instantly share code, notes, and snippets.

View praveen2gemini's full-sized avatar

Praveen Kumar Sugumaran praveen2gemini

View GitHub Profile
@davidwparker
davidwparker / layout.xml
Created August 30, 2011 22:28
Android floating bottom row above soft keyboard
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_height="fill_parent"
android:layout_width="fill_parent">
<ScrollView
android:id="@+id/scrollview"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
android:layout_above="@+id/m_table_menu">
@alexpchin
alexpchin / Add_Existing_Project_To_Git.md
Created June 1, 2014 20:14
Add Existing Project To Git Repo

#Adding an existing project to GitHub using the command line

Simple steps to add existing project to Github.

1. Create a new repository on GitHub.

In Terminal, change the current working directory to your local project.

##2. Initialize the local directory as a Git repository.

git init
@kevinpelgrims
kevinpelgrims / MainActivity.java
Last active January 12, 2023 04:52
ActionBar tab badge
actionBar.addTab(actionBar.newTab()
.setCustomView(TabUtils.renderTabView(NotificationsActivity.this, R.string.tab_invitations, R.drawable.tab_orange, numberOfNotifications))
.setTabListener(tabListener));
@tahmidsadik
tahmidsadik / purgeAndroid.txt
Created September 19, 2015 18:47
How to completely remove Android Studio from Mac OS X
How to Completely Remove Android Studio
Execute these commands from the terminal
rm -Rf /Applications/Android\ Studio.app
rm -Rf ~/Library/Preferences/AndroidStudio*
rm ~/Library/Preferences/com.google.android.studio.plist
rm -Rf ~/Library/Application\ Support/AndroidStudio*
rm -Rf ~/Library/Logs/AndroidStudio*
@lopspower
lopspower / README.md
Last active November 18, 2024 19:11
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@orwir
orwir / FontsReplacer.java
Created June 3, 2016 11:33
Android: change fonts for the whole application
public class FontsReplacer {
@SuppressWarnings("unchecked")
public static void replaceFonts(Context context) {
try {
//we need to change all static fields contains fonts:
//1. static constants
setStaticFinalField(Typeface.class, "DEFAULT", FontCache.getTypeface(context, Typeface.NORMAL));
setStaticFinalField(Typeface.class, "DEFAULT_BOLD", FontCache.getTypeface(context, Typeface.BOLD));
@ChanSek
ChanSek / play-auth-proguard-rules.pro
Last active October 14, 2024 10:11
ProGuard rules for Google Play Services (Authentication)
-keepclassmembers class com.google.android.gms.dynamite.DynamiteModule {
** MODULE_ID;
** MODULE_VERSION;
** sClassLoader;
}
-keepclassmembers class com.google.android.gms.internal.in {
** mOrigin;
** mCreationTimestamp;
** mName;
** mValue;