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 @@ + + + + + + + +