Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new pull request ex on github #162

Open
wants to merge 36 commits into
base: revert-26-master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
8c2d71c
SQLite Sample Added Tutorial 49-54
arslanaybars Sep 26, 2015
2fc8c7a
C Tutorial 10
Nodetails Oct 11, 2015
6103472
C_Tuts_11 & 12
Nodetails Oct 11, 2015
b98cfdc
C_Tut_13
Nodetails Oct 11, 2015
ab4c4b5
C_Tut_14
Nodetails Oct 11, 2015
f0a20cb
C_Tut_15
Nodetails Oct 11, 2015
3c758f5
Merge pull request #52 from buckyroberts/revert-26-master
buckyroberts Nov 16, 2015
2404a71
Merge pull request #48 from Nodetails/master
buckyroberts Nov 16, 2015
f951f22
Merge pull request #46 from arslanaybars/master
buckyroberts Nov 16, 2015
a475943
Added more source code files.
buckyroberts Dec 21, 2015
72da5e9
Added more source code files.
buckyroberts Dec 21, 2015
63ddff2
Fixing .git dir issue.
buckyroberts Dec 21, 2015
12b9399
Added source code.
buckyroberts Dec 21, 2015
aea7816
Added XHTML and CSS tutorials 2-5
hhaslam11 Feb 15, 2016
1b0ab4a
corrected the error max_page into pax_pages
sfolje0 Feb 15, 2016
93bfe3c
corrected max_page into max_pages
sfolje0 Feb 15, 2016
e6aa6db
created new file for alternative solution
sfolje0 Feb 15, 2016
18c20bc
created 27_workingsolution_python.py file
sfolje0 Feb 15, 2016
89beaf5
just tiny polishing
sfolje0 Feb 15, 2016
074757e
Added XHTML and CSS source code files for tutorials 6 and 7
hhaslam11 Feb 16, 2016
ac56464
Added XHTML and CSS source code files for tutorials 8 to 10
hhaslam11 Feb 17, 2016
98b18c5
Added XHTML and CSS source code files for tutorials 11 to 18
hhaslam11 Feb 18, 2016
98325d7
Added XHTML and CSS tutorial source code files 19-28
hhaslam11 Feb 20, 2016
431803b
Merge pull request #57 from sfolje0/master
buckyroberts Feb 24, 2016
9814119
Merge pull request #58 from sfolje0/python26and27tuts
buckyroberts Feb 24, 2016
88c8999
one line change: max_page => max_pages
sfolje0 Feb 24, 2016
2495155
Merge pull request #59 from sfolje0/master
buckyroberts Feb 24, 2016
5f49d4c
Added source code for 29 and 30
Feb 25, 2016
08d4cd6
added the rest of the source files
hhaslam11 Feb 26, 2016
e2c28cf
Contributions to Android
glwhitney Mar 11, 2016
18e10da
Merge pull request #60 from hhaslam11/master
buckyroberts Mar 16, 2016
e53f2d4
fix int to in
keatinge May 30, 2016
12f17a7
Merge pull request #65 from keatinge/master
buckyroberts May 30, 2016
3d41958
71_cppBeginners.cpp
collin5 Jun 24, 2016
6c13e76
Merge pull request #67 from Collins-a/master
buckyroberts Jun 29, 2016
c44241f
Merge pull request #61 from glwhitney/master
buckyroberts Jul 8, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
.idea/.name
.idea/compiler.xml
.idea/dictionaries/Bucky.xml
.idea/
*.iml
.idea/misc.xml
*.xml
*.xml
20 changes: 0 additions & 20 deletions Android_Beginners/010_States of an Activity/activity_main.xml

This file was deleted.

106 changes: 106 additions & 0 deletions Android_Beginners/011-012 User Interface/012 User Interface.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
[source code] Android Development Tutorials - 11 & 12 - User Interface

***** Main Activity.java
package your.package.name

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();

//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}

return super.onOptionsItemSelected(item);
}
}


***** activity_main.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin"
tools:context="glwhitney.info.nbvideos11_12.MainActivity">

<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceLarge"
android:text="@string/SignInTitle"
android:id="@+id/textView"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true"
android:singleLine="true"/>

<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="textEmailAddress"
android:ems="10"
android:id="@+id/editText"
android:layout_below="@+id/textView"
android:layout_centerHorizontal="true"
android:layout_marginTop="36dp"
android:width="320dp"/>

<EditText
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:inputType="textPassword"
android:ems="10"
android:id="@+id/editText2"
android:layout_marginTop="45dp"
android:layout_below="@+id/editText"
android:layout_alignLeft="@+id/editText"
android:layout_alignStart="@+id/editText"
android:width="320dp"/>

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/SignInButtonText"
android:id="@+id/button"
android:layout_centerVertical="true"
android:layout_centerHorizontal="true" />
</RelativeLayout>

***** strings.xml

<resources>
<string name="app_name">NB Videos 11_12</string>
<string name="title_activity_main">MainActivity</string>

<string name="hello_world">Hello world!</string>
<string name="action_settings">Settings</string>
<string name="SignInTitle">Sign In</string>
<string name="SignInButtonText">Log In</string>
</resources>
96 changes: 96 additions & 0 deletions Android_Beginners/013-016 Java Layout/013-016 Java Layout.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
/* API23 WARNING
* This activity was created with API21 when ActioinBarActivity was not depreciated.
* IF you are using API23 or later then you will need to extend AppCompatActivity
*/
****** MainActivity

package your.package.name

import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.RelativeLayout;
import android.widget.Button;
import android.graphics.Color;
import android.widget.EditText;
import android.content.res.Resources;
import android.util.TypedValue;

public class MainActivity extends ActionBarActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);

//Layout
RelativeLayout buckysLayout = new RelativeLayout(this);
buckysLayout.setBackgroundColor(Color.GREEN);

//Button
Button redButton = new Button(this);
redButton.setText("Log In");
redButton.setBackgroundColor(Color.RED);

//Username input
EditText username = new EditText(this);

redButton.setId(1);
username.setId(2);

RelativeLayout.LayoutParams buttonDetails = new RelativeLayout.LayoutParams(
RelativeLayout.LayoutParams.WRAP_CONTENT,
RelativeLayout.LayoutParams.WRAP_CONTENT
);
RelativeLayout.LayoutParams usernameDetails = new RelativeLayout.LayoutParams(
RelativeLayout.LayoutParams.WRAP_CONTENT,
RelativeLayout.LayoutParams.WRAP_CONTENT
);

//Give rules to position widgets
usernameDetails.addRule(RelativeLayout.ABOVE, redButton.getId());
usernameDetails.addRule(RelativeLayout.CENTER_HORIZONTAL);
usernameDetails.setMargins(0,0,0,50);

buttonDetails.addRule(RelativeLayout.CENTER_HORIZONTAL);
buttonDetails.addRule(RelativeLayout.CENTER_VERTICAL);

Resources r = getResources();
int px = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP,200,
r.getDisplayMetrics()
);

username.setWidth(px);

//Add widget to layout(button is now a child of layout)
buckysLayout.addView(redButton, buttonDetails);
buckysLayout.addView(username, usernameDetails);

//Set this activities content/display to this view
setContentView(buckysLayout);

}


@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();

//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}

return super.onOptionsItemSelected(item);
}
}
96 changes: 96 additions & 0 deletions Android_Beginners/017 GridLayout/017 GridLayout.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,96 @@
[source code] Android Development Tutorial - 17 GridLayout

***** MainActivity.java

package your.package.name;

import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;

public class MainActivity extends AppCompatActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();

//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}

return super.onOptionsItemSelected(item);
}
}

***** activity_main.xml

<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent"
android:layout_height="match_parent" android:paddingLeft="@dimen/activity_horizontal_margin"
android:paddingRight="@dimen/activity_horizontal_margin"
android:paddingTop="@dimen/activity_vertical_margin"
android:paddingBottom="@dimen/activity_vertical_margin" tools:context=".MainActivity">


<GridLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true">

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Bottom"
android:id="@+id/button4"
android:layout_row="1"
android:layout_column="0"
android:layout_columnSpan="2"
android:layout_gravity="fill_horizontal" />

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Center"
android:id="@+id/button"
android:layout_row="0"
android:layout_column="1" />

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Left"
android:id="@+id/button3"
android:layout_row="0"
android:layout_column="0" />

<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Right"
android:id="@+id/button2"
android:layout_row="0"
android:layout_column="2"
android:layout_rowSpan="2"
android:layout_gravity="fill_vertical" />
</GridLayout>
</RelativeLayout>
59 changes: 59 additions & 0 deletions Android_Beginners/018-020 Events/018 to 19 Events.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/* API23 WARNING
* This activity was created with API21 when ActioinBarActivity was not depreciated.
* IF you are using API23 or later then you will need to extend AppCompatActivity
*/
****** MainActivity

package your.package.name

import android.support.v7.app.ActionBarActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;


public class MainActivity extends ActionBarActivity {

@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);

Button buckysButton = (Button)findViewById(R.id.buckysButton);

buckysButton.setOnClickListener(
new Button.OnClickListener(){
public void onClick(View v){
TextView buckysText = (TextView)findViewById(R.id.buckysText);
buckysText.setText("Good job Hoss!");
}
}
);
}


@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.menu_main, menu);
return true;
}

@Override
public boolean onOptionsItemSelected(MenuItem item) {
// Handle action bar item clicks here. The action bar will
// automatically handle clicks on the Home/Up button, so long
// as you specify a parent activity in AndroidManifest.xml.
int id = item.getItemId();

//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}

return super.onOptionsItemSelected(item);
}
}
Loading