diff --git a/PocketCasts/.gitignore b/PocketCasts/.gitignore new file mode 100644 index 0000000..c6cbe56 --- /dev/null +++ b/PocketCasts/.gitignore @@ -0,0 +1,8 @@ +*.iml +.gradle +/local.properties +/.idea/workspace.xml +/.idea/libraries +.DS_Store +/build +/captures diff --git a/PocketCasts/app/.gitignore b/PocketCasts/app/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/PocketCasts/app/.gitignore @@ -0,0 +1 @@ +/build diff --git a/PocketCasts/app/build.gradle b/PocketCasts/app/build.gradle new file mode 100644 index 0000000..45d70bc --- /dev/null +++ b/PocketCasts/app/build.gradle @@ -0,0 +1,27 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 23 + buildToolsVersion "23.0.2" + + defaultConfig { + applicationId "com.boloutaredoubeni.pocketcasts" + minSdkVersion 16 + targetSdkVersion 23 + versionCode 1 + versionName "1.0" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + compile fileTree(dir: 'libs', include: ['*.jar']) + testCompile 'junit:junit:4.12' + compile 'com.android.support:appcompat-v7:23.1.1' + compile 'com.android.support:design:23.1.1' +} diff --git a/PocketCasts/app/proguard-rules.pro b/PocketCasts/app/proguard-rules.pro new file mode 100644 index 0000000..a965f92 --- /dev/null +++ b/PocketCasts/app/proguard-rules.pro @@ -0,0 +1,17 @@ +# Add project specific ProGuard rules here. +# By default, the flags in this file are appended to flags specified +# in /usr/local/opt/android-sdk/tools/proguard/proguard-android.txt +# You can edit the include path and order by changing the proguardFiles +# directive in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# Add any project specific keep options here: + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} diff --git a/PocketCasts/app/src/androidTest/java/com/boloutaredoubeni/pocketcasts/ApplicationTest.java b/PocketCasts/app/src/androidTest/java/com/boloutaredoubeni/pocketcasts/ApplicationTest.java new file mode 100644 index 0000000..51d456b --- /dev/null +++ b/PocketCasts/app/src/androidTest/java/com/boloutaredoubeni/pocketcasts/ApplicationTest.java @@ -0,0 +1,13 @@ +package com.boloutaredoubeni.pocketcasts; + +import android.app.Application; +import android.test.ApplicationTestCase; + +/** + * Testing Fundamentals + */ +public class ApplicationTest extends ApplicationTestCase { + public ApplicationTest() { + super(Application.class); + } +} \ No newline at end of file diff --git a/PocketCasts/app/src/main/AndroidManifest.xml b/PocketCasts/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..edcc154 --- /dev/null +++ b/PocketCasts/app/src/main/AndroidManifest.xml @@ -0,0 +1,23 @@ + + + + + + + + + + + + + + diff --git a/PocketCasts/app/src/main/java/com/boloutaredoubeni/pocketcasts/MainActivity.java b/PocketCasts/app/src/main/java/com/boloutaredoubeni/pocketcasts/MainActivity.java new file mode 100644 index 0000000..efd8e55 --- /dev/null +++ b/PocketCasts/app/src/main/java/com/boloutaredoubeni/pocketcasts/MainActivity.java @@ -0,0 +1,54 @@ +package com.boloutaredoubeni.pocketcasts; + +import android.os.Bundle; +import android.support.design.widget.FloatingActionButton; +import android.support.design.widget.Snackbar; +import android.support.v7.app.AppCompatActivity; +import android.support.v7.widget.Toolbar; +import android.view.View; +import android.view.Menu; +import android.view.MenuItem; +import android.widget.Toast; + +public class MainActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_main); + Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar); + setSupportActionBar(toolbar); + + FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab); + fab.setOnClickListener(new View.OnClickListener() { + @Override + public void onClick(View view) { + Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG) + .setAction("Action", null).show(); + } + }); + } + + @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_check) { + Toast.makeText(this, "You checked", Toast.LENGTH_SHORT).show(); + return true; + } + + return super.onOptionsItemSelected(item); + } +} diff --git a/PocketCasts/app/src/main/res/layout/activity_main.xml b/PocketCasts/app/src/main/res/layout/activity_main.xml new file mode 100644 index 0000000..adeaa02 --- /dev/null +++ b/PocketCasts/app/src/main/res/layout/activity_main.xml @@ -0,0 +1,35 @@ + + + + + + + + + + + + + + diff --git a/PocketCasts/app/src/main/res/layout/content_main.xml b/PocketCasts/app/src/main/res/layout/content_main.xml new file mode 100644 index 0000000..b21137c --- /dev/null +++ b/PocketCasts/app/src/main/res/layout/content_main.xml @@ -0,0 +1,20 @@ + + + + + diff --git a/PocketCasts/app/src/main/res/menu/menu_main.xml b/PocketCasts/app/src/main/res/menu/menu_main.xml new file mode 100644 index 0000000..4a167d6 --- /dev/null +++ b/PocketCasts/app/src/main/res/menu/menu_main.xml @@ -0,0 +1,11 @@ + + + diff --git a/PocketCasts/app/src/main/res/mipmap-hdpi/ic_launcher.png b/PocketCasts/app/src/main/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 0000000..cde69bc Binary files /dev/null and b/PocketCasts/app/src/main/res/mipmap-hdpi/ic_launcher.png differ diff --git a/PocketCasts/app/src/main/res/mipmap-mdpi/ic_launcher.png b/PocketCasts/app/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 0000000..c133a0c Binary files /dev/null and b/PocketCasts/app/src/main/res/mipmap-mdpi/ic_launcher.png differ diff --git a/PocketCasts/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/PocketCasts/app/src/main/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 0000000..bfa42f0 Binary files /dev/null and b/PocketCasts/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/PocketCasts/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/PocketCasts/app/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 0000000..324e72c Binary files /dev/null and b/PocketCasts/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/PocketCasts/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/PocketCasts/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 0000000..aee44e1 Binary files /dev/null and b/PocketCasts/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/PocketCasts/app/src/main/res/values-v21/styles.xml b/PocketCasts/app/src/main/res/values-v21/styles.xml new file mode 100644 index 0000000..251fb9f --- /dev/null +++ b/PocketCasts/app/src/main/res/values-v21/styles.xml @@ -0,0 +1,9 @@ +> + + + diff --git a/PocketCasts/app/src/main/res/values-w820dp/dimens.xml b/PocketCasts/app/src/main/res/values-w820dp/dimens.xml new file mode 100644 index 0000000..63fc816 --- /dev/null +++ b/PocketCasts/app/src/main/res/values-w820dp/dimens.xml @@ -0,0 +1,6 @@ + + + 64dp + diff --git a/PocketCasts/app/src/main/res/values/colors.xml b/PocketCasts/app/src/main/res/values/colors.xml new file mode 100644 index 0000000..3ab3e9c --- /dev/null +++ b/PocketCasts/app/src/main/res/values/colors.xml @@ -0,0 +1,6 @@ + + + #3F51B5 + #303F9F + #FF4081 + diff --git a/PocketCasts/app/src/main/res/values/dimens.xml b/PocketCasts/app/src/main/res/values/dimens.xml new file mode 100644 index 0000000..812cb7b --- /dev/null +++ b/PocketCasts/app/src/main/res/values/dimens.xml @@ -0,0 +1,6 @@ + + + 16dp + 16dp + 16dp + diff --git a/PocketCasts/app/src/main/res/values/strings.xml b/PocketCasts/app/src/main/res/values/strings.xml new file mode 100644 index 0000000..1c22a05 --- /dev/null +++ b/PocketCasts/app/src/main/res/values/strings.xml @@ -0,0 +1,4 @@ + + PocketCasts + Settings + diff --git a/PocketCasts/app/src/main/res/values/styles.xml b/PocketCasts/app/src/main/res/values/styles.xml new file mode 100644 index 0000000..177cefc --- /dev/null +++ b/PocketCasts/app/src/main/res/values/styles.xml @@ -0,0 +1,20 @@ + + + + + + + +