diff --git a/ProjetoNewsAPI/.gitignore b/ProjetoNewsAPI/.gitignore
new file mode 100644
index 0000000..5edb4ee
--- /dev/null
+++ b/ProjetoNewsAPI/.gitignore
@@ -0,0 +1,10 @@
+*.iml
+.gradle
+/local.properties
+/.idea/libraries
+/.idea/modules.xml
+/.idea/workspace.xml
+.DS_Store
+/build
+/captures
+.externalNativeBuild
diff --git a/ProjetoNewsAPI/.idea/caches/build_file_checksums.ser b/ProjetoNewsAPI/.idea/caches/build_file_checksums.ser
new file mode 100644
index 0000000..1cde02f
Binary files /dev/null and b/ProjetoNewsAPI/.idea/caches/build_file_checksums.ser differ
diff --git a/ProjetoNewsAPI/.idea/codeStyles/Project.xml b/ProjetoNewsAPI/.idea/codeStyles/Project.xml
new file mode 100644
index 0000000..30aa626
--- /dev/null
+++ b/ProjetoNewsAPI/.idea/codeStyles/Project.xml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/.idea/gradle.xml b/ProjetoNewsAPI/.idea/gradle.xml
new file mode 100644
index 0000000..7ac24c7
--- /dev/null
+++ b/ProjetoNewsAPI/.idea/gradle.xml
@@ -0,0 +1,18 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/.idea/misc.xml b/ProjetoNewsAPI/.idea/misc.xml
new file mode 100644
index 0000000..99202cc
--- /dev/null
+++ b/ProjetoNewsAPI/.idea/misc.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/.idea/runConfigurations.xml b/ProjetoNewsAPI/.idea/runConfigurations.xml
new file mode 100644
index 0000000..7f68460
--- /dev/null
+++ b/ProjetoNewsAPI/.idea/runConfigurations.xml
@@ -0,0 +1,12 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/.gitignore b/ProjetoNewsAPI/app/.gitignore
new file mode 100644
index 0000000..796b96d
--- /dev/null
+++ b/ProjetoNewsAPI/app/.gitignore
@@ -0,0 +1 @@
+/build
diff --git a/ProjetoNewsAPI/app/build.gradle b/ProjetoNewsAPI/app/build.gradle
new file mode 100644
index 0000000..493cafa
--- /dev/null
+++ b/ProjetoNewsAPI/app/build.gradle
@@ -0,0 +1,37 @@
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 28
+ defaultConfig {
+ applicationId "com.thiago_viotto.projetonewsapi"
+ minSdkVersion 15
+ targetSdkVersion 28
+ versionCode 1
+ versionName "1.0"
+ testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+ }
+ buildTypes {
+ release {
+ minifyEnabled false
+ proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
+ }
+ }
+}
+
+dependencies {
+ implementation fileTree(dir: 'libs', include: ['*.jar'])
+ implementation 'com.android.support:appcompat-v7:28.0.0'
+ implementation 'com.android.support:design:28.0.0'
+ implementation 'com.android.support.constraint:constraint-layout:1.1.3'
+ implementation 'com.android.support:support-v4:28.0.0'
+ testImplementation 'junit:junit:4.12'
+ androidTestImplementation 'com.android.support.test:runner:1.0.2'
+ androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
+ implementation 'com.android.volley:volley:1.0.0'
+ implementation 'com.squareup.picasso:picasso:2.5.2'
+ implementation 'com.android.support:recyclerview-v7:28.0.0'
+ implementation 'com.android.support:cardview-v7:28.0.0'
+ testImplementation 'junit:junit:4.12'
+ androidTestImplementation 'com.android.support.test:runner:1.0.2'
+ androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
+}
diff --git a/ProjetoNewsAPI/app/proguard-rules.pro b/ProjetoNewsAPI/app/proguard-rules.pro
new file mode 100644
index 0000000..f1b4245
--- /dev/null
+++ b/ProjetoNewsAPI/app/proguard-rules.pro
@@ -0,0 +1,21 @@
+# Add project specific ProGuard rules here.
+# You can control the set of applied configuration files using the
+# proguardFiles setting in build.gradle.
+#
+# For more details, see
+# http://developer.android.com/guide/developing/tools/proguard.html
+
+# 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 *;
+#}
+
+# Uncomment this to preserve the line number information for
+# debugging stack traces.
+#-keepattributes SourceFile,LineNumberTable
+
+# If you keep the line number information, uncomment this to
+# hide the original source file name.
+#-renamesourcefileattribute SourceFile
diff --git a/ProjetoNewsAPI/app/src/androidTest/java/com/thiago_viotto/projetonewsapi/ExampleInstrumentedTest.java b/ProjetoNewsAPI/app/src/androidTest/java/com/thiago_viotto/projetonewsapi/ExampleInstrumentedTest.java
new file mode 100644
index 0000000..4c166b9
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/androidTest/java/com/thiago_viotto/projetonewsapi/ExampleInstrumentedTest.java
@@ -0,0 +1,26 @@
+package com.thiago_viotto.projetonewsapi;
+
+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.*;
+
+/**
+ * Instrumented test, which will execute on an Android device.
+ *
+ * @see Testing documentation
+ */
+@RunWith(AndroidJUnit4.class)
+public class ExampleInstrumentedTest {
+ @Test
+ public void useAppContext() {
+ // Context of the app under test.
+ Context appContext = InstrumentationRegistry.getTargetContext();
+
+ assertEquals("com.thiago_viotto.projetonewsapi", appContext.getPackageName());
+ }
+}
diff --git a/ProjetoNewsAPI/app/src/main/AndroidManifest.xml b/ProjetoNewsAPI/app/src/main/AndroidManifest.xml
new file mode 100644
index 0000000..4178dcb
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/AndroidManifest.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/java/com/thiago_viotto/projetonewsapi/Interface/JSON.java b/ProjetoNewsAPI/app/src/main/java/com/thiago_viotto/projetonewsapi/Interface/JSON.java
new file mode 100644
index 0000000..9a33f1a
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/java/com/thiago_viotto/projetonewsapi/Interface/JSON.java
@@ -0,0 +1,5 @@
+package com.thiago_viotto.projetonewsapi.Interface;
+
+public interface JSON {
+ void parseJSON();
+}
diff --git a/ProjetoNewsAPI/app/src/main/java/com/thiago_viotto/projetonewsapi/MainActivity.java b/ProjetoNewsAPI/app/src/main/java/com/thiago_viotto/projetonewsapi/MainActivity.java
new file mode 100644
index 0000000..b309407
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/java/com/thiago_viotto/projetonewsapi/MainActivity.java
@@ -0,0 +1,136 @@
+package com.thiago_viotto.projetonewsapi;
+
+import android.os.Bundle;
+import android.support.design.widget.FloatingActionButton;
+import android.support.design.widget.Snackbar;
+import android.support.v4.app.Fragment;
+import android.support.v4.app.FragmentManager;
+import android.support.v4.app.FragmentTransaction;
+import android.view.View;
+import android.support.design.widget.NavigationView;
+import android.support.v4.view.GravityCompat;
+import android.support.v4.widget.DrawerLayout;
+import android.support.v7.app.ActionBarDrawerToggle;
+import android.support.v7.app.AppCompatActivity;
+import android.support.v7.widget.Toolbar;
+import android.view.Menu;
+import android.view.MenuItem;
+
+import com.thiago_viotto.projetonewsapi.fragment.CienciaFragment;
+import com.thiago_viotto.projetonewsapi.fragment.EsporteFragment;
+import com.thiago_viotto.projetonewsapi.fragment.HomeFragment;
+import com.thiago_viotto.projetonewsapi.R;
+import com.thiago_viotto.projetonewsapi.fragment.TecnologiaFragment;
+
+public class MainActivity extends AppCompatActivity
+ implements NavigationView.OnNavigationItemSelectedListener {
+ FragmentManager fragmentManager;
+
+ @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();
+ }
+ });
+
+ DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
+ ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(
+ this, drawer, toolbar, R.string.navigation_drawer_open, R.string.navigation_drawer_close);
+ drawer.addDrawerListener(toggle);
+ toggle.syncState();
+
+ NavigationView navigationView = (NavigationView) findViewById(R.id.nav_view);
+ navigationView.setNavigationItemSelectedListener(this);
+
+ fragmentManager = getSupportFragmentManager();
+
+ if(savedInstanceState == null){
+ FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
+ HomeFragment h = new HomeFragment();
+ fragmentTransaction.add(R.id.frame,h,"home");
+ fragmentTransaction.commit();
+ }
+ }
+
+
+ @Override
+ public void onBackPressed() {
+ DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
+ if (drawer.isDrawerOpen(GravityCompat.START)) {
+ drawer.closeDrawer(GravityCompat.START);
+ } else {
+ super.onBackPressed();
+ }
+ }
+
+ @Override
+ public boolean onCreateOptionsMenu(Menu menu) {
+ // Inflate the menu; this adds items to the action bar if it is present.
+ getMenuInflater().inflate(R.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.
+
+ return super.onOptionsItemSelected(item);
+ }
+
+ @SuppressWarnings("StatementWithEmptyBody")
+ @Override
+ public boolean onNavigationItemSelected(MenuItem item) {
+ // Handle navigation view item clicks here.
+ int id = item.getItemId();
+
+ if (id == R.id.nav_home) {
+ Fragment homeFragment = fragmentManager.findFragmentByTag("home");
+ if(homeFragment == null){
+ homeFragment = new HomeFragment();
+ }
+ replaceFragment(homeFragment,"home");
+ } else if (id == R.id.nav_tecnologia) {
+ Fragment tecnologiaFragment = fragmentManager.findFragmentByTag("tecnologia");
+ if(tecnologiaFragment == null){
+ tecnologiaFragment = new TecnologiaFragment();
+ }
+ replaceFragment(tecnologiaFragment,"tecnologia");
+ } else if (id == R.id.nav_esporte) {
+ Fragment esporteFragment = fragmentManager.findFragmentByTag("esporte");
+ if(esporteFragment == null){
+ esporteFragment = new EsporteFragment();
+ }
+ replaceFragment(esporteFragment,"esporte");
+ } else if (id == R.id.nav_educacao) {
+ Fragment cienciaFragment = fragmentManager.findFragmentByTag("ciencia");
+ if(cienciaFragment == null){
+ cienciaFragment = new CienciaFragment();
+ }
+ replaceFragment(cienciaFragment,"ciencia");
+ }
+
+ DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
+ drawer.closeDrawer(GravityCompat.START);
+ return true;
+ }
+
+ public void replaceFragment(Fragment fragment, String tag){
+ FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
+ fragmentTransaction.replace(R.id.frame,fragment,tag);
+ fragmentTransaction.addToBackStack(null);
+ //fragmentManager.popBackStack(tag, fragmentManager.POP_BACK_STACK_INCLUSIVE);
+ fragmentTransaction.commit();
+ }
+
+}
diff --git a/ProjetoNewsAPI/app/src/main/java/com/thiago_viotto/projetonewsapi/adapter/NoticiaAdapter.java b/ProjetoNewsAPI/app/src/main/java/com/thiago_viotto/projetonewsapi/adapter/NoticiaAdapter.java
new file mode 100644
index 0000000..50fb79a
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/java/com/thiago_viotto/projetonewsapi/adapter/NoticiaAdapter.java
@@ -0,0 +1,98 @@
+package com.thiago_viotto.projetonewsapi.adapter;
+
+import android.content.Context;
+import android.support.v7.widget.RecyclerView;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import com.squareup.picasso.Picasso;
+import com.thiago_viotto.projetonewsapi.R;
+import com.thiago_viotto.projetonewsapi.model.Noticia;
+
+import java.util.ArrayList;
+
+public class NoticiaAdapter extends RecyclerView.Adapter {
+ private Context mContext;
+ private ArrayList itemNoticias;
+ private OnItemClickListener mListener;
+
+ public interface OnItemClickListener {
+ void onItemclick(int position);
+ }
+
+ public NoticiaAdapter(Context context, ArrayList noticias){
+ mContext = context;
+ itemNoticias = noticias;
+ }
+
+ public void setOnItemClickListener(OnItemClickListener listener){
+ mListener = listener;
+ }
+
+ @Override
+ public NoticiaAdapterViewHolder onCreateViewHolder(ViewGroup parent, int i) {
+ View v = LayoutInflater.from(mContext).inflate(R.layout.item_noticias, parent, false);
+ return new NoticiaAdapterViewHolder(v);
+ }
+
+ @Override
+ public void onBindViewHolder(NoticiaAdapterViewHolder holder, int position) {
+ Noticia noticiaAtual = itemNoticias.get(position);
+
+ String imagemURL = noticiaAtual.getImagemURL();
+ String autor = noticiaAtual.getAutor();
+ String titulo = noticiaAtual.getTitulo();
+ String descricao = noticiaAtual.getDescricao();
+ String data = noticiaAtual.getData();
+ String url = noticiaAtual.getUrl();
+
+ holder.autor.setText(autor);
+ holder.titulo.setText(titulo);
+ holder.descricao.setText(descricao);
+ holder.data.setText(data);
+ holder.url.setText(url);
+ Picasso.with(mContext).load(imagemURL).fit().centerInside().into(holder.imageView);
+ }
+
+ @Override
+ public int getItemCount() {
+ return itemNoticias.size();
+ }
+
+
+ public class NoticiaAdapterViewHolder extends RecyclerView.ViewHolder{
+ public ImageView imageView;
+ public TextView autor;
+ public TextView titulo;
+ public TextView descricao;
+ public TextView data;
+ public TextView url;
+
+ public NoticiaAdapterViewHolder(View itemView) {
+ super(itemView);
+ imageView = itemView.findViewById(R.id.image_view);
+ autor = itemView.findViewById(R.id.txtAutor);
+ titulo = itemView.findViewById(R.id.txtTitulo);
+ descricao = itemView.findViewById(R.id.txtDescricao);
+ data = itemView.findViewById(R.id.txtData);
+ url = itemView.findViewById(R.id.txtURL);
+
+ itemView.setOnClickListener(new View.OnClickListener() {
+ @Override
+ public void onClick(View view) {
+ if(mListener != null){
+ int position = getAdapterPosition();
+ if(position != RecyclerView.NO_POSITION) {
+ mListener.onItemclick(position);
+ }
+ }
+
+ }
+ });
+ }
+
+ }
+}
diff --git a/ProjetoNewsAPI/app/src/main/java/com/thiago_viotto/projetonewsapi/fragment/CienciaFragment.java b/ProjetoNewsAPI/app/src/main/java/com/thiago_viotto/projetonewsapi/fragment/CienciaFragment.java
new file mode 100644
index 0000000..6feebc2
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/java/com/thiago_viotto/projetonewsapi/fragment/CienciaFragment.java
@@ -0,0 +1,133 @@
+package com.thiago_viotto.projetonewsapi.fragment;
+
+
+import android.content.Intent;
+import android.os.Bundle;
+import android.support.v4.app.Fragment;
+import android.support.v7.widget.LinearLayoutManager;
+import android.support.v7.widget.RecyclerView;
+import android.view.LayoutInflater;
+import android.view.View;
+import android.view.ViewGroup;
+
+import com.android.volley.Request;
+import com.android.volley.RequestQueue;
+import com.android.volley.Response;
+import com.android.volley.VolleyError;
+import com.android.volley.toolbox.JsonObjectRequest;
+import com.android.volley.toolbox.Volley;
+import com.thiago_viotto.projetonewsapi.adapter.NoticiaAdapter;
+import com.thiago_viotto.projetonewsapi.model.DetalheActivity;
+import com.thiago_viotto.projetonewsapi.Interface.JSON;
+import com.thiago_viotto.projetonewsapi.R;
+import com.thiago_viotto.projetonewsapi.model.Noticia;
+
+import org.json.JSONArray;
+import org.json.JSONException;
+import org.json.JSONObject;
+
+import java.util.ArrayList;
+
+
+/**
+ * A simple {@link Fragment} subclass.
+ */
+public class CienciaFragment extends Fragment implements JSON,NoticiaAdapter.OnItemClickListener {
+ View view;
+ private RecyclerView mRecyclerView;
+ private ArrayList ciencias;
+ private NoticiaAdapter noticiaAdapter;
+ private RequestQueue requestQueue;
+ public static final String EXTRA_IMG_URL = "imagemURL";
+ public static final String EXTRA_URL = "url";
+ public static final String EXTRA_TITULO = "Título";
+ public static final String EXTRA_AUTOR = "Nome do Autor";
+ public static final String EXTRA_DATA = "data";
+ public static final String EXTRA_DESCRICAO = "descricao";
+
+ public CienciaFragment() {
+ // Required empty public constructor
+ }
+
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ // Inflate the layout for this fragment
+ if(view == null)
+ view = inflater.inflate(R.layout.fragment_ciencia, container, false);
+
+ mRecyclerView = view.findViewById(R.id.recycler_viewCiencia);
+ mRecyclerView.setHasFixedSize(true);
+ mRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
+
+ ciencias = new ArrayList<>();
+ requestQueue = Volley.newRequestQueue(getContext());
+ parseJSON();
+
+ return view;
+ }
+
+ @Override
+ public void parseJSON() {
+ String url = "https://api.nytimes.com/svc/mostpopular/v2/mostviewed/Science/1.json?api-key=f9c6c21d6eb44a46be9a1a3b577d95a3";
+ JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener() {
+ @Override
+ public void onResponse(JSONObject response) {
+ try {
+ JSONArray jsonArray = response.getJSONArray("results"); //procura array com nome "results"
+ for(int i = 0; i esportes;
+ private NoticiaAdapter noticiaAdapter;
+ private RequestQueue requestQueue;
+ public static final String EXTRA_IMG_URL = "imagemURL";
+ public static final String EXTRA_URL = "url";
+ public static final String EXTRA_TITULO = "Título";
+ public static final String EXTRA_AUTOR = "Nome do Autor";
+ public static final String EXTRA_DATA = "data";
+ public static final String EXTRA_DESCRICAO = "descricao";
+
+ public EsporteFragment() {
+ // Required empty public constructor
+ }
+
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+
+ // Inflate the layout for this fragment
+ if(view == null)
+ view = inflater.inflate(R.layout.fragment_esporte, container, false);
+
+ mRecyclerView = view.findViewById(R.id.recycler_viewSport);
+ mRecyclerView.setHasFixedSize(true);
+ mRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
+
+ esportes = new ArrayList<>();
+ requestQueue = Volley.newRequestQueue(getContext());
+ parseJSON();
+
+ return view;
+ }
+
+ @Override
+ public void parseJSON() {
+ String url = "https://api.nytimes.com/svc/topstories/v2/sports.json?api-key=f9c6c21d6eb44a46be9a1a3b577d95a3";
+ JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener() {
+ @Override
+ public void onResponse(JSONObject response) {
+ try {
+ JSONArray jsonArray = response.getJSONArray("results"); //procura array com nome "results"
+ for(int i = 0; i principais;
+ private NoticiaAdapter noticiaAdapter;
+ private RequestQueue requestQueue;
+ public static final String EXTRA_IMG_URL = "imagemURL";
+ public static final String EXTRA_URL = "url";
+ public static final String EXTRA_TITULO = "Título";
+ public static final String EXTRA_AUTOR = "Nome do Autor";
+ public static final String EXTRA_DATA = "data";
+ public static final String EXTRA_DESCRICAO = "descricao";
+
+ public HomeFragment() {
+ // Required empty public constructor
+ }
+
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ // Inflate the layout for this fragment
+ if(view == null) {
+ view = inflater.inflate(R.layout.fragment_home, container, false);
+ }
+ mRecyclerView = view.findViewById(R.id.recycler_viewHome);
+ mRecyclerView.setHasFixedSize(true);
+ mRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
+
+ principais = new ArrayList<>();
+ requestQueue = Volley.newRequestQueue(getContext());
+ parseJSON();
+
+ return view;
+ }
+
+ @Override
+ public void parseJSON() {
+ String url = "https://api.nytimes.com/svc/mostpopular/v2/mostviewed/World/1.json?api-key=f9c6c21d6eb44a46be9a1a3b577d95a3";
+ JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener() {
+ @Override
+ public void onResponse(JSONObject response) {
+ try {
+ JSONArray jsonArray = response.getJSONArray("results"); //procura array com nome "results"
+ for(int i = 0; i noticiasTecnologia;
+ private NoticiaAdapter noticiaAdapter;
+ private RequestQueue requestQueue;
+ public static final String EXTRA_IMG_URL = "imagemURL";
+ public static final String EXTRA_URL = "url";
+ public static final String EXTRA_TITULO = "Título";
+ public static final String EXTRA_AUTOR = "Nome do Autor";
+ public static final String EXTRA_DATA = "data";
+ public static final String EXTRA_DESCRICAO = "descricao";
+
+ public TecnologiaFragment() {
+ // Required empty public constructor
+ }
+
+
+ @Override
+ public View onCreateView(LayoutInflater inflater, ViewGroup container,
+ Bundle savedInstanceState) {
+ // Inflate the layout for this fragment
+ if(view == null) {
+ view = inflater.inflate(R.layout.fragment_tecnologia, container, false);
+ }
+
+ mRecyclerView = view.findViewById(R.id.recycler_viewTecno);
+ mRecyclerView.setHasFixedSize(true);
+ mRecyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
+
+ noticiasTecnologia = new ArrayList<>();
+ requestQueue = Volley.newRequestQueue(getContext());
+ parseJSON();
+
+ return view;
+ }
+
+ @Override
+ public void parseJSON() {
+ String url = "https://api.nytimes.com/svc/topstories/v2/technology.json?api-key=f9c6c21d6eb44a46be9a1a3b577d95a3";
+ JsonObjectRequest jsonObjectRequest = new JsonObjectRequest(Request.Method.GET, url, null, new Response.Listener() {
+ @Override
+ public void onResponse(JSONObject response) {
+ try {
+ JSONArray jsonArray = response.getJSONArray("results"); //procura array com nome "results"
+ for(int i = 0; i
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/drawable-xxxhdpi/icon_news.png b/ProjetoNewsAPI/app/src/main/res/drawable-v21/drawable-xxxhdpi/icon_news.png
new file mode 100644
index 0000000..39c9291
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable-v21/drawable-xxxhdpi/icon_news.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/drawable-xxxhdpi/no_result.png b/ProjetoNewsAPI/app/src/main/res/drawable-v21/drawable-xxxhdpi/no_result.png
new file mode 100644
index 0000000..2e6e19e
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable-v21/drawable-xxxhdpi/no_result.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/drawable-xxxhdpi/oops.png b/ProjetoNewsAPI/app/src/main/res/drawable-v21/drawable-xxxhdpi/oops.png
new file mode 100644
index 0000000..c82c934
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable-v21/drawable-xxxhdpi/oops.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/drawable-xxxhdpi/splash_icon.png b/ProjetoNewsAPI/app/src/main/res/drawable-v21/drawable-xxxhdpi/splash_icon.png
new file mode 100644
index 0000000..878ab2e
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable-v21/drawable-xxxhdpi/splash_icon.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/fotothi.jpg b/ProjetoNewsAPI/app/src/main/res/drawable-v21/fotothi.jpg
new file mode 100644
index 0000000..6f68d63
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable-v21/fotothi.jpg differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/fundojornal.jpg b/ProjetoNewsAPI/app/src/main/res/drawable-v21/fundojornal.jpg
new file mode 100644
index 0000000..e6fa8dd
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable-v21/fundojornal.jpg differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_menu_camera.xml b/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_menu_camera.xml
new file mode 100644
index 0000000..0d9ea10
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_menu_camera.xml
@@ -0,0 +1,12 @@
+
+
+
+
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_menu_gallery.xml b/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_menu_gallery.xml
new file mode 100644
index 0000000..f6872c4
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_menu_gallery.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_menu_manage.xml b/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_menu_manage.xml
new file mode 100644
index 0000000..c1be60b
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_menu_manage.xml
@@ -0,0 +1,9 @@
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_menu_send.xml b/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_menu_send.xml
new file mode 100644
index 0000000..00c668c
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_menu_send.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_menu_share.xml b/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_menu_share.xml
new file mode 100644
index 0000000..a28fb9e
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_menu_share.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_menu_slideshow.xml b/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_menu_slideshow.xml
new file mode 100644
index 0000000..209aa64
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_menu_slideshow.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_search.xml b/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_search.xml
new file mode 100644
index 0000000..d7dbf85
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_search.xml
@@ -0,0 +1,11 @@
+
+
+
+
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_share.xml b/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_share.xml
new file mode 100644
index 0000000..47c3189
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/drawable-v21/ic_share.xml
@@ -0,0 +1,7 @@
+
+
+
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/icon_news.png b/ProjetoNewsAPI/app/src/main/res/drawable-v21/icon_news.png
new file mode 100644
index 0000000..39c9291
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable-v21/icon_news.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/iconeducacao.png b/ProjetoNewsAPI/app/src/main/res/drawable-v21/iconeducacao.png
new file mode 100644
index 0000000..dc6a0b3
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable-v21/iconeducacao.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/iconesporte.png b/ProjetoNewsAPI/app/src/main/res/drawable-v21/iconesporte.png
new file mode 100644
index 0000000..6193633
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable-v21/iconesporte.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/iconhome.png b/ProjetoNewsAPI/app/src/main/res/drawable-v21/iconhome.png
new file mode 100644
index 0000000..8cc45ff
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable-v21/iconhome.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/iconreview.png b/ProjetoNewsAPI/app/src/main/res/drawable-v21/iconreview.png
new file mode 100644
index 0000000..4723528
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable-v21/iconreview.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/icontecnologia.png b/ProjetoNewsAPI/app/src/main/res/drawable-v21/icontecnologia.png
new file mode 100644
index 0000000..992e0d5
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable-v21/icontecnologia.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v21/sombracinza.jpg b/ProjetoNewsAPI/app/src/main/res/drawable-v21/sombracinza.jpg
new file mode 100644
index 0000000..d9ec7b8
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable-v21/sombracinza.jpg differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable-v24/ic_launcher_foreground.xml b/ProjetoNewsAPI/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
new file mode 100644
index 0000000..c7bd21d
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/drawable-v24/ic_launcher_foreground.xml
@@ -0,0 +1,34 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/borda_redonda.xml b/ProjetoNewsAPI/app/src/main/res/drawable/borda_redonda.xml
new file mode 100644
index 0000000..191861b
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/drawable/borda_redonda.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable-hdpi/icon_news.png b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-hdpi/icon_news.png
new file mode 100644
index 0000000..39f178d
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-hdpi/icon_news.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable-hdpi/no_result.png b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-hdpi/no_result.png
new file mode 100644
index 0000000..8de5e72
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-hdpi/no_result.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable-hdpi/oops.png b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-hdpi/oops.png
new file mode 100644
index 0000000..8e0cacd
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-hdpi/oops.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable-hdpi/splash_icon.png b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-hdpi/splash_icon.png
new file mode 100644
index 0000000..fa402f8
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-hdpi/splash_icon.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable-mdpi/icon_news.png b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-mdpi/icon_news.png
new file mode 100644
index 0000000..3ecfd54
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-mdpi/icon_news.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable-mdpi/no_result.png b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-mdpi/no_result.png
new file mode 100644
index 0000000..649fc85
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-mdpi/no_result.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable-mdpi/oops.png b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-mdpi/oops.png
new file mode 100644
index 0000000..bd7739c
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-mdpi/oops.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable-mdpi/splash_icon.png b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-mdpi/splash_icon.png
new file mode 100644
index 0000000..bf272e5
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-mdpi/splash_icon.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xhdpi/icon_news.png b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xhdpi/icon_news.png
new file mode 100644
index 0000000..ffdac74
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xhdpi/icon_news.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xhdpi/no_result.png b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xhdpi/no_result.png
new file mode 100644
index 0000000..bb52f23
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xhdpi/no_result.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xhdpi/oops.png b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xhdpi/oops.png
new file mode 100644
index 0000000..7c09443
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xhdpi/oops.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xhdpi/splash_icon.png b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xhdpi/splash_icon.png
new file mode 100644
index 0000000..7058d33
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xhdpi/splash_icon.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxhdpi/icon_news.png b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxhdpi/icon_news.png
new file mode 100644
index 0000000..a73b244
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxhdpi/icon_news.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxhdpi/no_result.png b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxhdpi/no_result.png
new file mode 100644
index 0000000..50ba264
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxhdpi/no_result.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxhdpi/oops.png b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxhdpi/oops.png
new file mode 100644
index 0000000..2018ed3
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxhdpi/oops.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxhdpi/splash_icon.png b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxhdpi/splash_icon.png
new file mode 100644
index 0000000..14dee1c
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxhdpi/splash_icon.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxxhdpi/icon_news.png b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxxhdpi/icon_news.png
new file mode 100644
index 0000000..39c9291
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxxhdpi/icon_news.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxxhdpi/no_result.png b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxxhdpi/no_result.png
new file mode 100644
index 0000000..2e6e19e
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxxhdpi/no_result.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxxhdpi/oops.png b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxxhdpi/oops.png
new file mode 100644
index 0000000..c82c934
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxxhdpi/oops.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxxhdpi/splash_icon.png b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxxhdpi/splash_icon.png
new file mode 100644
index 0000000..878ab2e
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/drawable/drawable-xxxhdpi/splash_icon.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable/bottom_shadow.xml b/ProjetoNewsAPI/app/src/main/res/drawable/drawable/bottom_shadow.xml
new file mode 100644
index 0000000..afe3978
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/drawable/drawable/bottom_shadow.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable/ic_date.xml b/ProjetoNewsAPI/app/src/main/res/drawable/drawable/ic_date.xml
new file mode 100644
index 0000000..923a989
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/drawable/drawable/ic_date.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable/ic_search.xml b/ProjetoNewsAPI/app/src/main/res/drawable/drawable/ic_search.xml
new file mode 100644
index 0000000..d7dbf85
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/drawable/drawable/ic_search.xml
@@ -0,0 +1,11 @@
+
+
+
+
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable/ic_share.xml b/ProjetoNewsAPI/app/src/main/res/drawable/drawable/ic_share.xml
new file mode 100644
index 0000000..47c3189
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/drawable/drawable/ic_share.xml
@@ -0,0 +1,7 @@
+
+
+
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable/round_white.xml b/ProjetoNewsAPI/app/src/main/res/drawable/drawable/round_white.xml
new file mode 100644
index 0000000..4c70d18
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/drawable/drawable/round_white.xml
@@ -0,0 +1,27 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/drawable/top_shadow.xml b/ProjetoNewsAPI/app/src/main/res/drawable/drawable/top_shadow.xml
new file mode 100644
index 0000000..3315ee2
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/drawable/drawable/top_shadow.xml
@@ -0,0 +1,8 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/ic_launcher_background.xml b/ProjetoNewsAPI/app/src/main/res/drawable/ic_launcher_background.xml
new file mode 100644
index 0000000..d5fccc5
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/drawable/ic_launcher_background.xml
@@ -0,0 +1,170 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ProjetoNewsAPI/app/src/main/res/drawable/side_nav_bar.xml b/ProjetoNewsAPI/app/src/main/res/drawable/side_nav_bar.xml
new file mode 100644
index 0000000..6d81870
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/drawable/side_nav_bar.xml
@@ -0,0 +1,9 @@
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/res/layout-land/actvitydetalhe.xml b/ProjetoNewsAPI/app/src/main/res/layout-land/actvitydetalhe.xml
new file mode 100644
index 0000000..e884b4e
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/layout-land/actvitydetalhe.xml
@@ -0,0 +1,101 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/res/layout-land/item_noticias.xml b/ProjetoNewsAPI/app/src/main/res/layout-land/item_noticias.xml
new file mode 100644
index 0000000..8769168
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/layout-land/item_noticias.xml
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/res/layout/activity_main.xml b/ProjetoNewsAPI/app/src/main/res/layout/activity_main.xml
new file mode 100644
index 0000000..a61d8a6
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/layout/activity_main.xml
@@ -0,0 +1,25 @@
+
+
+
+
+
+
+
+
diff --git a/ProjetoNewsAPI/app/src/main/res/layout/actvitydetalhe.xml b/ProjetoNewsAPI/app/src/main/res/layout/actvitydetalhe.xml
new file mode 100644
index 0000000..44a9acb
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/layout/actvitydetalhe.xml
@@ -0,0 +1,101 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/res/layout/app_bar_main.xml b/ProjetoNewsAPI/app/src/main/res/layout/app_bar_main.xml
new file mode 100644
index 0000000..eed4d89
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/layout/app_bar_main.xml
@@ -0,0 +1,33 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/res/layout/content_main.xml b/ProjetoNewsAPI/app/src/main/res/layout/content_main.xml
new file mode 100644
index 0000000..ca2bf25
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/layout/content_main.xml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/res/layout/fragment_ciencia.xml b/ProjetoNewsAPI/app/src/main/res/layout/fragment_ciencia.xml
new file mode 100644
index 0000000..c052b06
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/layout/fragment_ciencia.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/res/layout/fragment_esporte.xml b/ProjetoNewsAPI/app/src/main/res/layout/fragment_esporte.xml
new file mode 100644
index 0000000..5f31589
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/layout/fragment_esporte.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/res/layout/fragment_home.xml b/ProjetoNewsAPI/app/src/main/res/layout/fragment_home.xml
new file mode 100644
index 0000000..84ab8a2
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/layout/fragment_home.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/res/layout/fragment_tecnologia.xml b/ProjetoNewsAPI/app/src/main/res/layout/fragment_tecnologia.xml
new file mode 100644
index 0000000..01dd5ee
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/layout/fragment_tecnologia.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/res/layout/item_noticias.xml b/ProjetoNewsAPI/app/src/main/res/layout/item_noticias.xml
new file mode 100644
index 0000000..b12be75
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/layout/item_noticias.xml
@@ -0,0 +1,78 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/res/layout/nav_header_main.xml b/ProjetoNewsAPI/app/src/main/res/layout/nav_header_main.xml
new file mode 100644
index 0000000..e72dcc0
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/layout/nav_header_main.xml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
diff --git a/ProjetoNewsAPI/app/src/main/res/menu/activity_main_drawer.xml b/ProjetoNewsAPI/app/src/main/res/menu/activity_main_drawer.xml
new file mode 100644
index 0000000..8c1aced
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/menu/activity_main_drawer.xml
@@ -0,0 +1,25 @@
+
+
diff --git a/ProjetoNewsAPI/app/src/main/res/menu/main.xml b/ProjetoNewsAPI/app/src/main/res/menu/main.xml
new file mode 100644
index 0000000..fe20e5c
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/menu/main.xml
@@ -0,0 +1,5 @@
+
+
diff --git a/ProjetoNewsAPI/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml b/ProjetoNewsAPI/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
new file mode 100644
index 0000000..eca70cf
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml b/ProjetoNewsAPI/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
new file mode 100644
index 0000000..eca70cf
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/mipmap-anydpi-v26/ic_launcher_round.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/res/mipmap-hdpi/ic_launcher.png b/ProjetoNewsAPI/app/src/main/res/mipmap-hdpi/ic_launcher.png
new file mode 100644
index 0000000..a2f5908
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/mipmap-hdpi/ic_launcher.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/mipmap-hdpi/ic_launcher_round.png b/ProjetoNewsAPI/app/src/main/res/mipmap-hdpi/ic_launcher_round.png
new file mode 100644
index 0000000..1b52399
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/mipmap-hdpi/ic_launcher_round.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/mipmap-mdpi/ic_launcher.png b/ProjetoNewsAPI/app/src/main/res/mipmap-mdpi/ic_launcher.png
new file mode 100644
index 0000000..ff10afd
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/mipmap-mdpi/ic_launcher.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/mipmap-mdpi/ic_launcher_round.png b/ProjetoNewsAPI/app/src/main/res/mipmap-mdpi/ic_launcher_round.png
new file mode 100644
index 0000000..115a4c7
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/mipmap-mdpi/ic_launcher_round.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/mipmap-xhdpi/ic_launcher.png b/ProjetoNewsAPI/app/src/main/res/mipmap-xhdpi/ic_launcher.png
new file mode 100644
index 0000000..dcd3cd8
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/mipmap-xhdpi/ic_launcher.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png b/ProjetoNewsAPI/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..459ca60
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/mipmap-xxhdpi/ic_launcher.png b/ProjetoNewsAPI/app/src/main/res/mipmap-xxhdpi/ic_launcher.png
new file mode 100644
index 0000000..8ca12fe
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/mipmap-xxhdpi/ic_launcher.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png b/ProjetoNewsAPI/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..8e19b41
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/ProjetoNewsAPI/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png
new file mode 100644
index 0000000..b824ebd
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png b/ProjetoNewsAPI/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
new file mode 100644
index 0000000..4c19a13
Binary files /dev/null and b/ProjetoNewsAPI/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png differ
diff --git a/ProjetoNewsAPI/app/src/main/res/values-v21/styles.xml b/ProjetoNewsAPI/app/src/main/res/values-v21/styles.xml
new file mode 100644
index 0000000..fd7a058
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/values-v21/styles.xml
@@ -0,0 +1,8 @@
+
+
+
+
diff --git a/ProjetoNewsAPI/app/src/main/res/values/colors.xml b/ProjetoNewsAPI/app/src/main/res/values/colors.xml
new file mode 100644
index 0000000..9ec1ddb
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/values/colors.xml
@@ -0,0 +1,7 @@
+
+
+ #3F51B5
+ #303F9F
+ #FF4081
+
+
diff --git a/ProjetoNewsAPI/app/src/main/res/values/dimens.xml b/ProjetoNewsAPI/app/src/main/res/values/dimens.xml
new file mode 100644
index 0000000..4ab4520
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/values/dimens.xml
@@ -0,0 +1,8 @@
+
+
+ 16dp
+ 16dp
+ 8dp
+ 176dp
+ 16dp
+
\ No newline at end of file
diff --git a/ProjetoNewsAPI/app/src/main/res/values/drawables.xml b/ProjetoNewsAPI/app/src/main/res/values/drawables.xml
new file mode 100644
index 0000000..52c6a6c
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/values/drawables.xml
@@ -0,0 +1,8 @@
+
+ @android:drawable/ic_menu_camera
+ @android:drawable/ic_menu_gallery
+ @android:drawable/ic_menu_slideshow
+ @android:drawable/ic_menu_manage
+ @android:drawable/ic_menu_share
+ @android:drawable/ic_menu_send
+
diff --git a/ProjetoNewsAPI/app/src/main/res/values/strings.xml b/ProjetoNewsAPI/app/src/main/res/values/strings.xml
new file mode 100644
index 0000000..56f110b
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/values/strings.xml
@@ -0,0 +1,12 @@
+
+ Notícias NYT API
+ Open navigation drawer
+ Close navigation drawer
+ Thiago Viotto
+ thiagohenriqueviotto1@gmail.com
+ Navigation header
+ Settings
+
+
+ Hello blank fragment
+
diff --git a/ProjetoNewsAPI/app/src/main/res/values/styles.xml b/ProjetoNewsAPI/app/src/main/res/values/styles.xml
new file mode 100644
index 0000000..439a496
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/main/res/values/styles.xml
@@ -0,0 +1,20 @@
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/ProjetoNewsAPI/app/src/test/java/com/thiago_viotto/projetonewsapi/ExampleUnitTest.java b/ProjetoNewsAPI/app/src/test/java/com/thiago_viotto/projetonewsapi/ExampleUnitTest.java
new file mode 100644
index 0000000..4d7a6eb
--- /dev/null
+++ b/ProjetoNewsAPI/app/src/test/java/com/thiago_viotto/projetonewsapi/ExampleUnitTest.java
@@ -0,0 +1,17 @@
+package com.thiago_viotto.projetonewsapi;
+
+import org.junit.Test;
+
+import static org.junit.Assert.*;
+
+/**
+ * Example local unit test, which will execute on the development machine (host).
+ *
+ * @see Testing documentation
+ */
+public class ExampleUnitTest {
+ @Test
+ public void addition_isCorrect() {
+ assertEquals(4, 2 + 2);
+ }
+}
\ No newline at end of file
diff --git a/ProjetoNewsAPI/build.gradle b/ProjetoNewsAPI/build.gradle
new file mode 100644
index 0000000..077cb2f
--- /dev/null
+++ b/ProjetoNewsAPI/build.gradle
@@ -0,0 +1,27 @@
+// Top-level build file where you can add configuration options common to all sub-projects/modules.
+
+buildscript {
+
+ repositories {
+ google()
+ jcenter()
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:3.1.4'
+
+
+ // NOTE: Do not place your application dependencies here; they belong
+ // in the individual module build.gradle files
+ }
+}
+
+allprojects {
+ repositories {
+ google()
+ jcenter()
+ }
+}
+
+task clean(type: Delete) {
+ delete rootProject.buildDir
+}
diff --git a/ProjetoNewsAPI/gradle.properties b/ProjetoNewsAPI/gradle.properties
new file mode 100644
index 0000000..743d692
--- /dev/null
+++ b/ProjetoNewsAPI/gradle.properties
@@ -0,0 +1,13 @@
+# Project-wide Gradle settings.
+# IDE (e.g. Android Studio) users:
+# Gradle settings configured through the IDE *will override*
+# any settings specified in this file.
+# For more details on how to configure your build environment visit
+# http://www.gradle.org/docs/current/userguide/build_environment.html
+# Specifies the JVM arguments used for the daemon process.
+# The setting is particularly useful for tweaking memory settings.
+org.gradle.jvmargs=-Xmx1536m
+# When configured, Gradle will run in incubating parallel mode.
+# This option should only be used with decoupled projects. More details, visit
+# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects
+# org.gradle.parallel=true
diff --git a/ProjetoNewsAPI/gradle/wrapper/gradle-wrapper.jar b/ProjetoNewsAPI/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000..7a3265e
Binary files /dev/null and b/ProjetoNewsAPI/gradle/wrapper/gradle-wrapper.jar differ
diff --git a/ProjetoNewsAPI/gradle/wrapper/gradle-wrapper.properties b/ProjetoNewsAPI/gradle/wrapper/gradle-wrapper.properties
new file mode 100644
index 0000000..f8a9b1d
--- /dev/null
+++ b/ProjetoNewsAPI/gradle/wrapper/gradle-wrapper.properties
@@ -0,0 +1,6 @@
+#Thu Oct 18 14:09:50 BRT 2018
+distributionBase=GRADLE_USER_HOME
+distributionPath=wrapper/dists
+zipStoreBase=GRADLE_USER_HOME
+zipStorePath=wrapper/dists
+distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip
diff --git a/ProjetoNewsAPI/gradlew b/ProjetoNewsAPI/gradlew
new file mode 100644
index 0000000..cccdd3d
--- /dev/null
+++ b/ProjetoNewsAPI/gradlew
@@ -0,0 +1,172 @@
+#!/usr/bin/env sh
+
+##############################################################################
+##
+## Gradle start up script for UN*X
+##
+##############################################################################
+
+# Attempt to set APP_HOME
+# Resolve links: $0 may be a link
+PRG="$0"
+# Need this for relative symlinks.
+while [ -h "$PRG" ] ; do
+ ls=`ls -ld "$PRG"`
+ link=`expr "$ls" : '.*-> \(.*\)$'`
+ if expr "$link" : '/.*' > /dev/null; then
+ PRG="$link"
+ else
+ PRG=`dirname "$PRG"`"/$link"
+ fi
+done
+SAVED="`pwd`"
+cd "`dirname \"$PRG\"`/" >/dev/null
+APP_HOME="`pwd -P`"
+cd "$SAVED" >/dev/null
+
+APP_NAME="Gradle"
+APP_BASE_NAME=`basename "$0"`
+
+# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+DEFAULT_JVM_OPTS=""
+
+# Use the maximum available, or set MAX_FD != -1 to use that value.
+MAX_FD="maximum"
+
+warn () {
+ echo "$*"
+}
+
+die () {
+ echo
+ echo "$*"
+ echo
+ exit 1
+}
+
+# OS specific support (must be 'true' or 'false').
+cygwin=false
+msys=false
+darwin=false
+nonstop=false
+case "`uname`" in
+ CYGWIN* )
+ cygwin=true
+ ;;
+ Darwin* )
+ darwin=true
+ ;;
+ MINGW* )
+ msys=true
+ ;;
+ NONSTOP* )
+ nonstop=true
+ ;;
+esac
+
+CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
+
+# Determine the Java command to use to start the JVM.
+if [ -n "$JAVA_HOME" ] ; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ if [ ! -x "$JAVACMD" ] ; then
+ die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+ fi
+else
+ JAVACMD="java"
+ which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+
+Please set the JAVA_HOME variable in your environment to match the
+location of your Java installation."
+fi
+
+# Increase the maximum file descriptors if we can.
+if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then
+ MAX_FD_LIMIT=`ulimit -H -n`
+ if [ $? -eq 0 ] ; then
+ if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
+ MAX_FD="$MAX_FD_LIMIT"
+ fi
+ ulimit -n $MAX_FD
+ if [ $? -ne 0 ] ; then
+ warn "Could not set maximum file descriptor limit: $MAX_FD"
+ fi
+ else
+ warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
+ fi
+fi
+
+# For Darwin, add options to specify how the application appears in the dock
+if $darwin; then
+ GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
+fi
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin ; then
+ APP_HOME=`cygpath --path --mixed "$APP_HOME"`
+ CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
+ JAVACMD=`cygpath --unix "$JAVACMD"`
+
+ # We build the pattern for arguments to be converted via cygpath
+ ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
+ SEP=""
+ for dir in $ROOTDIRSRAW ; do
+ ROOTDIRS="$ROOTDIRS$SEP$dir"
+ SEP="|"
+ done
+ OURCYGPATTERN="(^($ROOTDIRS))"
+ # Add a user-defined pattern to the cygpath arguments
+ if [ "$GRADLE_CYGPATTERN" != "" ] ; then
+ OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
+ fi
+ # Now convert the arguments - kludge to limit ourselves to /bin/sh
+ i=0
+ for arg in "$@" ; do
+ CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
+ CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
+
+ if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
+ eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
+ else
+ eval `echo args$i`="\"$arg\""
+ fi
+ i=$((i+1))
+ done
+ case $i in
+ (0) set -- ;;
+ (1) set -- "$args0" ;;
+ (2) set -- "$args0" "$args1" ;;
+ (3) set -- "$args0" "$args1" "$args2" ;;
+ (4) set -- "$args0" "$args1" "$args2" "$args3" ;;
+ (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
+ (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
+ (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
+ (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
+ (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
+ esac
+fi
+
+# Escape application args
+save () {
+ for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+ echo " "
+}
+APP_ARGS=$(save "$@")
+
+# Collect all arguments for the java command, following the shell quoting and substitution rules
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+
+# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
+if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
+ cd "$(dirname "$0")"
+fi
+
+exec "$JAVACMD" "$@"
diff --git a/ProjetoNewsAPI/gradlew.bat b/ProjetoNewsAPI/gradlew.bat
new file mode 100644
index 0000000..f955316
--- /dev/null
+++ b/ProjetoNewsAPI/gradlew.bat
@@ -0,0 +1,84 @@
+@if "%DEBUG%" == "" @echo off
+@rem ##########################################################################
+@rem
+@rem Gradle startup script for Windows
+@rem
+@rem ##########################################################################
+
+@rem Set local scope for the variables with windows NT shell
+if "%OS%"=="Windows_NT" setlocal
+
+set DIRNAME=%~dp0
+if "%DIRNAME%" == "" set DIRNAME=.
+set APP_BASE_NAME=%~n0
+set APP_HOME=%DIRNAME%
+
+@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
+set DEFAULT_JVM_OPTS=
+
+@rem Find java.exe
+if defined JAVA_HOME goto findJavaFromJavaHome
+
+set JAVA_EXE=java.exe
+%JAVA_EXE% -version >NUL 2>&1
+if "%ERRORLEVEL%" == "0" goto init
+
+echo.
+echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:findJavaFromJavaHome
+set JAVA_HOME=%JAVA_HOME:"=%
+set JAVA_EXE=%JAVA_HOME%/bin/java.exe
+
+if exist "%JAVA_EXE%" goto init
+
+echo.
+echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME%
+echo.
+echo Please set the JAVA_HOME variable in your environment to match the
+echo location of your Java installation.
+
+goto fail
+
+:init
+@rem Get command-line arguments, handling Windows variants
+
+if not "%OS%" == "Windows_NT" goto win9xME_args
+
+:win9xME_args
+@rem Slurp the command line arguments.
+set CMD_LINE_ARGS=
+set _SKIP=2
+
+:win9xME_args_slurp
+if "x%~1" == "x" goto execute
+
+set CMD_LINE_ARGS=%*
+
+:execute
+@rem Setup the command line
+
+set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar
+
+@rem Execute Gradle
+"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS%
+
+:end
+@rem End local scope for the variables with windows NT shell
+if "%ERRORLEVEL%"=="0" goto mainEnd
+
+:fail
+rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of
+rem the _cmd.exe /c_ return code!
+if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1
+exit /b 1
+
+:mainEnd
+if "%OS%"=="Windows_NT" endlocal
+
+:omega
diff --git a/ProjetoNewsAPI/settings.gradle b/ProjetoNewsAPI/settings.gradle
new file mode 100644
index 0000000..e7b4def
--- /dev/null
+++ b/ProjetoNewsAPI/settings.gradle
@@ -0,0 +1 @@
+include ':app'
diff --git a/README.md b/README.md
index 783cc4c..2408f66 100644
--- a/README.md
+++ b/README.md
@@ -1,30 +1,26 @@
-# Github Test
+
APP New API
-Eae Candidato!
+Aplicativo que consome uma API Rest do New York Times e exibe as notícias em uma lista de dados (Recycler View).
-Este desafio consiste em identificar seu nível de conforto com desenvolvimento para Android, portanto esperamos que você tente resolve-lo usando toda a sua capacidade e conhecimento da tecnologia.
+Segue abaixo algumas imagens do aplicativo:
-O Desafio Android é o seguinte:
+
+
+
+
+
+
-Monte um aplicativo para Android, utilizando Java ou Kotlin (Escolha qualquer um não faz diferença), que consuma uma API REST e mostre uma lista de dados, ao clicar em um dos itens desta lista, uma segunda tela é mostrada contendo mais informações sobre aquele item.
+O aplicativo foi desenvolvido em Java Android, consumindo um API Rest disponível no site do New York Times (https://developer.nytimes.com/).
-Tente colocar ao máximo todos os recursos técnicos que você conhece, quando se trata de padrão de arquitetura, boas práticas de código, novas bibliotecas nativas do Android etc. Mas não se esqueça que nosso grande e querido usuário não vê as rotinas assíncronas majestosas que todos nós escrevemos, sendo assim, tente criar uma interface bem legal, objetiva e agradável. Colocamos também um link para um repositório no Zeplin contendo uma sugestão de interface.
+Ele usa o Navegation Drawer e exibe as notícias por tópico em cada fragmento. Por exemplo, o fragmento "Notícias de tecnologia" exibe as notícias de tecnologia de acordo com os dados da API.
-Você deve fazer um Fork deste repositório e solicitar um Pull Request, com seu nome completo na descrição, para nossa avaliação.
+Os dados são exibidos pela Recycler View, tendo em vista, a sua ótima performance para o mesmo.
-Recomendamos algumas API’s abertas e gratuitas para estes teste, porém isto é apenas uma recomendação, se sinta livre para fazer outra escolha e nos surpreender ;).
+Meus dados:
-# API’s
-## The Open Movie Database
- [OMDb API - The Open Movie Database](http://www.omdbapi.com/)
-
-## Unsplash
-[Unsplash Image API | Free HD Photo API](https://unsplash.com/developers)
-
-# Design - Zeplin
-E-mail - buildbox.mobileguest@gmail.com
-Senha - JhZ5dAPG
-
-[Zeplin](https://app.zeplin.io/login)
-
-
+Nome: Thiago Henrique Viotto
+Graduando Análise e Desenvolvimento de Sistemas pela UNICAMP, com término previsto para 2019.
+Email: thiagohenriqueviotto1@gmail.com
+Telefone: (19)98135-6064
+Linkedin: https://www.linkedin.com/in/thiago-henrique-viotto-4485b5147/