diff --git a/AppPortfolio.iml b/AppPortfolio.iml new file mode 100644 index 0000000..ac43846 --- /dev/null +++ b/AppPortfolio.iml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/.DS_Store b/app/.DS_Store new file mode 100644 index 0000000..5008ddf Binary files /dev/null and b/app/.DS_Store differ diff --git a/app/.gitignore b/app/.gitignore new file mode 100644 index 0000000..796b96d --- /dev/null +++ b/app/.gitignore @@ -0,0 +1 @@ +/build diff --git a/app/app.iml b/app/app.iml new file mode 100644 index 0000000..82c719e --- /dev/null +++ b/app/app.iml @@ -0,0 +1,149 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle new file mode 100644 index 0000000..0a2436a --- /dev/null +++ b/app/build.gradle @@ -0,0 +1,29 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 25 + buildToolsVersion "25.0.0" + defaultConfig { + applicationId "com.example.fabiofilho.appportfolio" + minSdkVersion 15 + targetSdkVersion 25 + versionCode 1 + versionName "1.0" + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + compile fileTree(dir: 'libs', include: ['*.jar']) + androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { + exclude group: 'com.android.support', module: 'support-annotations' + }) + compile 'com.android.support:appcompat-v7:25.0.1' + testCompile 'junit:junit:4.12' +} diff --git a/app/proguard-rules.pro b/app/proguard-rules.pro new file mode 100644 index 0000000..c507a56 --- /dev/null +++ b/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 /Users/fabiofilho/Library/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/app/src/androidTest/java/com/example/fabiofilho/appportfolio/ExampleInstrumentedTest.java b/app/src/androidTest/java/com/example/fabiofilho/appportfolio/ExampleInstrumentedTest.java new file mode 100644 index 0000000..a2377ca --- /dev/null +++ b/app/src/androidTest/java/com/example/fabiofilho/appportfolio/ExampleInstrumentedTest.java @@ -0,0 +1,26 @@ +package com.example.fabiofilho.appportfolio; + +import android.content.Context; +import android.support.test.InstrumentationRegistry; +import android.support.test.runner.AndroidJUnit4; + +import org.junit.Test; +import org.junit.runner.RunWith; + +import static org.junit.Assert.*; + +/** + * Instrumentation test, which will execute on an Android device. + * + * @see Testing documentation + */ +@RunWith(AndroidJUnit4.class) +public class ExampleInstrumentedTest { + @Test + public void useAppContext() throws Exception { + // Context of the app under test. + Context appContext = InstrumentationRegistry.getTargetContext(); + + assertEquals("com.example.fabiofilho.appportfolio", appContext.getPackageName()); + } +} diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml new file mode 100644 index 0000000..675de61 --- /dev/null +++ b/app/src/main/AndroidManifest.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/app/src/main/java/com/example/fabiofilho/appportfolio/PortfolioActivity.java b/app/src/main/java/com/example/fabiofilho/appportfolio/PortfolioActivity.java new file mode 100644 index 0000000..1e7f1b4 --- /dev/null +++ b/app/src/main/java/com/example/fabiofilho/appportfolio/PortfolioActivity.java @@ -0,0 +1,53 @@ +package com.example.fabiofilho.appportfolio; + +import android.support.v7.app.AppCompatActivity; +import android.os.Bundle; +import android.view.View; +import android.widget.Toast; + +public class PortfolioActivity extends AppCompatActivity { + + @Override + protected void onCreate(Bundle savedInstanceState) { + super.onCreate(savedInstanceState); + setContentView(R.layout.activity_portfolio); + } + + public void onClickPopularMoviesButton(View view) { + showToast(getDefaultMessage(getResources().getString(R.string.portfolio_activity_button_popular_movies))); + } + + public void onClickStockHawkButton(View view) { + showToast(getDefaultMessage(getResources().getString(R.string.portfolio_activity_button_stock_hawk))); + } + + public void onClickBuiltItBiggerButton(View view) { + showToast(getDefaultMessage(getResources().getString(R.string.portfolio_activity_button_build_it_bigger))); + } + + public void onClickMakeAppMaterialButton(View view) { + showToast(getDefaultMessage(getResources().getString(R.string.portfolio_activity_button_make_app_material))); + } + + public void onClickGoUbiquitousButton(View view) { + showToast(getDefaultMessage(getResources().getString(R.string.portfolio_activity_button_go_ubiquitous))); + } + + public void onClickCapstoneMyAppButton(View view) { + showToast(getDefaultMessage(getResources().getString(R.string.portfolio_activity_button_capstone_my_app).split(":")[0])); + } + + + private String getDefaultMessage(String mMainMessage){ + + return getResources().getString(R.string.portfolio_activity_text_default_toast_message_start) + + " " + mMainMessage.toLowerCase() + " " + + getResources().getString(R.string.portfolio_activity_text_default_toast_message_end); + } + + private void showToast(String mMessage){ + + Toast.makeText(getApplicationContext(), mMessage, Toast.LENGTH_SHORT).show(); + } + +} diff --git a/app/src/main/res/layout/activity_portfolio.xml b/app/src/main/res/layout/activity_portfolio.xml new file mode 100644 index 0000000..c3becdc --- /dev/null +++ b/app/src/main/res/layout/activity_portfolio.xml @@ -0,0 +1,101 @@ + + + + + + + + + + + + +