This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package it.mariolization.android.sunshine; | |
import android.content.Intent; | |
import android.os.Bundle; | |
import android.support.v4.app.Fragment; | |
import android.support.v4.view.MenuItemCompat; | |
import android.support.v7.widget.ShareActionProvider; | |
import android.util.Log; | |
import android.view.LayoutInflater; | |
import android.view.Menu; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Call this in onCreateView method | |
inflater.inflate(R.layout.your_layout_xml_name, container, false) // container is an onCreateView parameter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function log() { | |
try { | |
console.log.apply(console, arguments); | |
} catch(e) { | |
try { | |
opera.postError().apply(opera, arguments); | |
} catch(e) { | |
alert(Array.prototype.join.call(arguments, " ")); | |
} | |
} |