This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 7 <% @comics.each do |comic| %> | |
| 8 <%= "Name: #{comic.name}" %> <br /> | |
| 9 <%= image_tag comic.image_strip.url(:thumb) %> <br /> | |
| 10 <%= "Description: #{comic.description}" %> <br /> | |
| 11 <% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1 <%= render :partial => 'comic_thumb', :collection => @comics %> | |
| Partial: | |
| 1 <%= "Name: #{comic_thumb.name}" %> <br /> | |
| 2 <%= image_tag comic_thumb.image_strip.url(:thumb) %> <br /> | |
| 3 <%= "Description: #{comic_thumb.description}" %> <br /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //OnClickListener stub | |
| public class ButtonListener implements OnClickListener { | |
| private UpdateUIListener mUIListener; | |
| public ButtonListener(UpdateUIListener uiListener){ | |
| mUIListener = uiListener; | |
| } | |
| @Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 04-28 16:29:41.182 1332-1332/com.mycompany.app E/AndroidRuntime﹕ FATAL EXCEPTION: main | |
| android.view.InflateException: Binary XML file line #22: Error inflating class com.mycompany.app.ui.widgets.SharePhotoView | |
| at android.view.LayoutInflater.createView(LayoutInflater.java:613) | |
| at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:687) | |
| at android.view.LayoutInflater.rInflate(LayoutInflater.java:746) | |
| at android.view.LayoutInflater.inflate(LayoutInflater.java:459) | |
| at android.view.LayoutInflater.inflate(LayoutInflater.java:396) | |
| at android.view.LayoutInflater.inflate(LayoutInflater.java:352) | |
| at android.view.View.inflate(View.java:16119) | |
| at com.mycompany.app.ui.widgets.PhotoView.createViews(PhotoView.java:83) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Type listType = new TypeToken<List<JSonModel>>() {}.getType(); | |
| List<JsonModel> jsonModels = gson.fromJson(reader, listType); | |
| jsonModel = jsonModels.get(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class RecyclerViewEmptySupport extends RecyclerView { | |
| @Inject ViewFadeAnimator viewFadeAnimator; | |
| private int marginTop; | |
| private View progressView; | |
| private View emptyView; | |
| public RecyclerViewEmptySupport(Context context) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void pullRows() { | |
| Elements elements = html.getElementsByTag(ROW_TAG); | |
| elements.remove(); | |
| Observable.from(elements) | |
| .flatMap(row -> parseRow(row, CELL_TAG)) | |
| .toList() | |
| .subscribe(table::setRows); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private void pullRows() { | |
| Elements elements = html.getElementsByTag(ROW_TAG); | |
| ArrayList<ArrayList<String>> rows = new ArrayList<>(); | |
| elements.remove(); | |
| for (Element element: elements) { | |
| ArrayList<String> row = parseRow(element, CELL_TAG); | |
| rows.add(row); | |
| } | |
| table.setRows(rows); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Override | |
| public void onBindViewHolder(PageViewHolder holder, int position) { | |
| Page page = getList().get(position); | |
| holder.bind(page); | |
| } |
OlderNewer