Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(767)

Unified Diff: samples/github/android/GithubSample/app/src/main/java/com/google/dartino/githubsample/RecyclerViewFragment.java

Issue 2035023003: Remove service-compiler related code. (Closed) Base URL: git@github.com:dartino/sdk.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: samples/github/android/GithubSample/app/src/main/java/com/google/dartino/githubsample/RecyclerViewFragment.java
diff --git a/samples/github/android/GithubSample/app/src/main/java/com/google/dartino/githubsample/RecyclerViewFragment.java b/samples/github/android/GithubSample/app/src/main/java/com/google/dartino/githubsample/RecyclerViewFragment.java
deleted file mode 100644
index a26f603b936c19e9b93e2c1019a69ec4f6f987e7..0000000000000000000000000000000000000000
--- a/samples/github/android/GithubSample/app/src/main/java/com/google/dartino/githubsample/RecyclerViewFragment.java
+++ /dev/null
@@ -1,37 +0,0 @@
-package com.google.dartino.githubsample;
-
-import android.app.Fragment;
-import android.os.Bundle;
-import android.support.v7.widget.DefaultItemAnimator;
-import android.support.v7.widget.LinearLayoutManager;
-import android.support.v7.widget.RecyclerView;
-import android.view.LayoutInflater;
-import android.view.View;
-import android.view.ViewGroup;
-
-public class RecyclerViewFragment extends Fragment {
-
- RecyclerView recyclerView;
- RecyclerView.Adapter adapter;
-
- @Override
- public View onCreateView(LayoutInflater inflater, ViewGroup container,
- Bundle savedInstanceState) {
- View view = inflater.inflate(R.layout.recycler_view, container, false);
- recyclerView = (RecyclerView) view.findViewById(R.id.recycler_view);
- // As long as the adapter does not cause size changes, this is set to true to gain performance.
- recyclerView.setHasFixedSize(true);
- recyclerView.setItemAnimator(new DefaultItemAnimator());
- recyclerView.setLayoutManager(new LinearLayoutManager(getActivity()));
- recyclerView.setAdapter(adapter);
- return view;
- }
-
- public RecyclerView getRecyclerView() {
- return recyclerView;
- }
-
- public void setRecyclerViewAdapter(RecyclerView.Adapter adapter) {
- this.adapter = adapter;
- }
-}

Powered by Google App Engine
This is Rietveld 408576698