1.sh:
#!/bin/sh
set -eux
rm -rf rubygems bundler
git clone https://github.com/rubygems/rubygems
git clone https://github.com/rubygems/bundler| <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:layout_width="match_parent" | |
| android:layout_height="80dp" | |
| xmlns:tools="http://schemas.android.com/tools"> | |
| <ImageView | |
| android:id="@+id/recipe_photo" | |
| android:layout_width="80dp" | |
| android:layout_height="match_parent" | |
| android:scaleType="centerCrop" |
| private void initializeList() { | |
| ListView recipesList = (ListView) findViewById(R.id.recipes_list); | |
| recipesList.setAdapter(new RecipesAdapter(this)); | |
| } |
| package com.example.myapplication; | |
| import android.content.Context; | |
| import android.view.LayoutInflater; | |
| import android.view.View; | |
| import android.view.ViewGroup; | |
| import android.widget.BaseAdapter; | |
| import android.widget.ImageView; | |
| import android.widget.TextView; |
| package pl.amu.service.rest; | |
| import io.swagger.annotations.*; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import pl.amu.service.repository.UserRepository; | |
| import pl.amu.service.rest.dao.ErrorMessage; | |
| import pl.amu.service.rest.dao.User; | |
| import pl.amu.service.rest.exception.UsersAppExceptions; | |
| import javax.validation.Valid; |
| package com.example.myapplication; | |
| import android.content.Context; | |
| import android.content.SharedPreferences; | |
| /** | |
| * Exercise 1. | |
| * | |
| * Implement saveSelectedNumberOfColumns and getSelectedNumberOfColumns methods. Use SharedPreferences as a storage. | |
| */ |