// Adapter code
public class CustomAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> {
ArrayList<String> mItems;
public CustomAdapter(Context context, ArrayList<String> items) {
#import random, math | |
outputdebug = False | |
def debug(msg): | |
if outputdebug: | |
print msg | |
class Node(): | |
def __init__(self, key): |
var easing = { | |
linear : function (t){ | |
return t; | |
}, | |
easeInQuad: function (t) { | |
return t*t; | |
}, | |
easeOutQuad: function (t) { | |
return -1 *t*(t-2); | |
}, |
[Deprecated] migrated to notion
Open or create a file called gradle.properties in .gradle
directory. Inside the file, add following
org.gradle.parallel=true
: Allow you to build multiple modules in the same project at the same timeorg.gradle.daemon=true
will turn on daemon so that every time we build the application, it doesn’t need to rerun the entire Gradle application every time.
Since each Activity is made to work in different purpose. Some is designed to work separately with each Intent sent for example an Activity for email composing in email client. While some is designed to work as a singleton for example an email's inbox Activity. That's why it does matter to specify whether Activity is needed to be created a new one or to use the existed one. launchMode
is designed for this specifically.
launchMode can be assigned directly as an attribute tag
<activity
android:name=".SingleTaskActivity"
android:label="singleTask launchMode"
android:launchMode="singleTask">
Condense all information below.
Other great references:
- https://github.com/serodriguez68/poodr-notes
- https://medium.com/ruby-on-rails/what-i-learned-from-sandi-metz-9d0c94347b7f
>The purpose of design is to allow you to do design later, and it's primary goal is to reduce the cost of change.
# Built application files | |
*.apk | |
*.ap_ | |
*.aab | |
# Files for the ART/Dalvik VM | |
*.dex | |
# Java class files | |
*.class |
The goal of InputStream and OutputStream is to abstract different ways to input and output: whether the stream is a file, a web page, or the screen shouldn't matter. All that matters is that you receive information from the stream (or send information into that stream.)
InputStream is used for many things that you read from.
OutputStream is used for many things that you write to.
Here's some sample code. It assumes the InputStream instr and OutputStream osstr have already been created:
int i;
-
The following line is bold
Hi, I am Bold (**Hi, I am Bold**) -
The following line is given emphasis
I am cooool. (*I am cooool.*) -
To write something on the new line, give two spaces and hit enter
Yay! we are on the next line -
Now comes the Headline