#Adding an existing project to GitHub using the command line
Simple steps to add existing project to Github.
In Terminal, change the current working directory to your local project.
##2. Initialize the local directory as a Git repository.
git init
| <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"> |
| Unless specified otherwise, all of the below tinting applies to both Lollipop and pre-Lollipop using AppCompat v21. | |
| To use the support version of these attributes, remove the android namespace. | |
| For instance, "android:colorControlNormal" becomes "colorControlNormal". | |
| These attributes will be propagated to their corresponding attributes within the android namespace | |
| for devices running Lollipop. Any exceptions to this will be noted by including the "android:" prefix. | |
| All Clickable Views: | |
| ----------- |
| /** | |
| _____ _____ _ | |
| | __ \ / ____| | | | |
| | | | | ___| | _ __ _ _ _ __ | |_ ___ _ __ | |
| | | | |/ _ \ | | '__| | | | '_ \| __/ _ \| '__| | |
| | |__| | __/ |____| | | |_| | |_) | || (_) | | | |
| |_____/ \___|\_____|_| \__, | .__/ \__\___/|_| | |
| __/ | | | |
| |___/|_| | |
| */ |
| 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* |
| $ brew doctor | |
| Your system is raring to brew. | |
| $ brew update | |
| Already up-to-date. | |
| $ brew install -v gpg | |
| ==> Downloading ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.12.tar.bz2 | |
| File already downloaded in /Users/ivaughan/Library/Caches/Homebrew | |
| /usr/bin/tar xf /Users/ivaughan/Library/Caches/Homebrew/gnupg-1.4.12.tar.bz2 |
| $ brew doctor | |
| Your system is raring to brew. | |
| $ brew update | |
| Already up-to-date. | |
| $ brew install -v gpg | |
| ==> Downloading ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-1.4.12.tar.bz2 | |
| File already downloaded in /Users/ivaughan/Library/Caches/Homebrew | |
| /usr/bin/tar xf /Users/ivaughan/Library/Caches/Homebrew/gnupg-1.4.12.tar.bz2 |
Now I'm going to list how to publish an Android libray to jCenter and then syncronize it with Maven Central:
I use "Android Studio" and I have this simple android lib that I would like to be available on maven: CircularImageView
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
| static class Activity { | |
| interface Listener {} | |
| Service service; | |
| Activity(Service service) { | |
| this.service = service; | |
| } | |
| void onStart() { | |
| service.registerListener(new Listener() {});//Listener hold a reference to Activity |