Commit 2a767753 authored by Donald's avatar Donald

merged jibe stuff

parent 6ace3b20
......@@ -40,9 +40,6 @@ dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:+'
compile 'com.nostra13.universalimageloader:universal-image-loader:+'
compile 'com.readystatesoftware.systembartint:systembartint:1.0.3'
//add for using CardView
compile 'com.android.support:cardview-v7:+'
//add for using recicle view
compile 'com.android.support:recyclerview-v7:+'
}
package com.leafpic.app.Adapters;
import android.content.Context;
import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.support.v7.widget.RecyclerView;
import android.text.Html;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;
import android.widget.RelativeLayout;
import android.widget.TextView;
import com.leafpic.app.Album;
import com.leafpic.app.R;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
......@@ -23,76 +17,85 @@ import com.nostra13.universalimageloader.core.assist.ImageScaleType;
import java.util.ArrayList;
/**
* Created by dnld on 12/12/15.
* Created by dnld on 1/7/16.
*/
public class AlbumAdapter extends ArrayAdapter<Album> {
public class AlbumsAdapter extends RecyclerView.Adapter<AlbumsAdapter.ViewHolder> {
ArrayList<Album> albums;
Bitmap photoPlaceHolder = BitmapFactory.decodeResource(Resources.getSystem(), R.drawable.ic_launcher);
private Context localContext;
private int layout_ID;
private View.OnClickListener mOnClickListener;
public AlbumAdapter (Context ct,int Layout_ID, ArrayList<Album> a){
super(ct, Layout_ID, a);
this.localContext = ct;
this.layout_ID = Layout_ID;
albums = a;
}
public AlbumsAdapter(ArrayList<Album> ph, int id) {
albums = ph;
layout_ID = id;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
RelativeLayout card_layout;
View v;
ImageView picture;
TextView name;
TextView nphotos;
if (convertView == null) {
LayoutInflater inflater = (LayoutInflater) localContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = inflater.inflate(this.layout_ID, parent, false);
v.setTag(R.id.picture, v.findViewById(R.id.picture));
v.setTag(R.id.picturetext, v.findViewById(R.id.picturetext));
v.setTag(R.id.layout_card_id, v.findViewById(R.id.layout_card_id));
v.setTag(R.id.image_number_text, v.findViewById(R.id.image_number_text));
} else
v = convertView;
card_layout = (RelativeLayout) v.getTag(R.id.layout_card_id);
picture = (ImageView) v.getTag(R.id.picture);
name = (TextView) v.getTag(R.id.picturetext);
nphotos=(TextView) v.getTag(R.id.image_number_text);
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View v = LayoutInflater.from(parent.getContext()).inflate(layout_ID, parent, false);
v.setOnClickListener(mOnClickListener);
return new ViewHolder(v);
}
@Override
public void onBindViewHolder(AlbumsAdapter.ViewHolder holder, int position) {
Album a = albums.get(position);
//non so se serve
picture.setTag(a.getPathCoverAlbum());
//impostazioni libreria immagini
holder.picture.setTag(a.getPathCoverAlbum());
DisplayImageOptions defaultOptions = new DisplayImageOptions.Builder()
.showImageOnLoading(R.drawable.ic_empty)
.imageScaleType(ImageScaleType.IN_SAMPLE_POWER_OF_2)
.cacheInMemory(true)
.cacheOnDisk(true)
.build();
//Setta immagine
ImageLoader.getInstance().displayImage(a.getPathCoverAlbum(), picture, defaultOptions);
//setta titolo
name.setText(a.DisplayName);
ImageLoader.getInstance().displayImage(a.getPathCoverAlbum(), holder.picture, defaultOptions);
holder.name.setText(a.DisplayName);
holder.nPhotos.setText(Html.fromHtml("<b><font color='#FBC02D'>" + a.getImagesCount() + "</font></b>" + "<font " +
"color='#FFFFFF'> Photos</font>"));
holder.name.setTag(a.Path);
//setta numero immaghini
nphotos.setText(Html.fromHtml("<b><font color='#FBC02D'>"+ a.getImagesCount()+"</font></b>" + "<font color='#FFFFFF'> Photos</font>"));
if (a.isSelected()) {
/*if (a.isSelected()) {
//name.setBackgroundColor(localContext.getColor(R.color.selected_album));
card_layout.setBackgroundColor(localContext.getColor(R.color.selected_album));
holder.card_layout.setBackgroundColor(holder.localContext.getColor(R.color.selected_album));
} else {
//name.setBackgroundColor(localContext.getColor(R.color.unselected_album));
card_layout.setBackgroundColor(localContext.getColor(R.color.unselected_album));
holder. card_layout.setBackgroundColor(localContext.getColor(R.color.unselected_album));
}*/
}
public void setDataset(ArrayList<Album> dataset) {
albums = dataset;
// This isn't working
notifyItemRangeInserted(0, dataset.size());
}
public void setOnClickListener(View.OnClickListener lis) {
mOnClickListener = lis;
}
@Override
public int getItemCount() {
return albums.size();
}
public static class ViewHolder extends RecyclerView.ViewHolder {
RelativeLayout card_layout;
ImageView picture;
TextView name;
TextView nPhotos;
public ViewHolder(View itemView) {
super(itemView);
picture = (ImageView) itemView.findViewById(R.id.picture);
card_layout = (RelativeLayout) itemView.findViewById(R.id.layout_card_id);
name = (TextView) itemView.findViewById(R.id.picturetext);
nPhotos = (TextView) itemView.findViewById(R.id.image_number_text);
}
return v;
}
}
}
\ No newline at end of file
package com.leafpic.app.Adapters;
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.ArrayAdapter;
import android.widget.ImageView;
import com.leafpic.app.Photo;
import com.leafpic.app.R;
......@@ -15,50 +14,61 @@ import com.nostra13.universalimageloader.core.assist.ImageScaleType;
import java.util.ArrayList;
/**
* Created by dnld on 12/12/15.
* Created by dnld on 1/7/16.
*/
public class PhotosAdapter extends ArrayAdapter<Photo> {
public class PhotosAdapter extends RecyclerView.Adapter<PhotosAdapter.ViewHolder> {
ArrayList<Photo> photos;
private Context localContext;
private int layout_ID;
//Bitmap photoPlaceholder = BitmapFactory.decodeResource(Resources.getSystem(), R.drawable.ic_launcher);
private View.OnClickListener mOnClickListener;
public PhotosAdapter (Context ct,int Layout_ID, ArrayList<Photo> a){
super(ct, Layout_ID, a);
this.localContext = ct;
this.layout_ID = Layout_ID;
photos = a;
public PhotosAdapter(ArrayList<Photo> ph, int id) {
photos = ph;
layout_ID = id;
}
@Override
public View getView(int position, View convertView, ViewGroup parent) {
View v;
ImageView picture;
if (convertView == null) {
LayoutInflater inflater = (LayoutInflater) localContext.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
v = inflater.inflate(this.layout_ID, parent, false);
v.setTag(R.id.pic, v.findViewById(R.id.pic));
} else
v = convertView;
public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
View v = LayoutInflater.from(parent.getContext()).inflate(layout_ID, parent, false);
v.setOnClickListener(mOnClickListener);
return new ViewHolder(v);
}
picture = (ImageView) v.getTag(R.id.pic);
picture.setTag(photos.get(position).Path);
@Override
public void onBindViewHolder(PhotosAdapter.ViewHolder holder, int position) {
DisplayImageOptions defaultOptions = new DisplayImageOptions.Builder()
.showImageOnLoading(R.drawable.ic_empty)
.imageScaleType(ImageScaleType.IN_SAMPLE_POWER_OF_2)
.cacheInMemory(true)
.cacheOnDisk(true)
.build();
ImageLoader.getInstance().displayImage("file://" + photos.get(position).Path,
holder.imageView, defaultOptions);
holder.imageView.setTag(photos.get(position).Path);
}
public void setOnClickListener(View.OnClickListener lis) {
mOnClickListener = lis;
}
@Override
public int getItemCount() {
return photos.size();
}
ImageLoader.getInstance().displayImage("file://"+photos.get(position).Path, picture, defaultOptions);
public static class ViewHolder extends RecyclerView.ViewHolder {
ImageView imageView;
return v;
public ViewHolder(View itemView) {
super(itemView);
imageView = (ImageView) itemView.findViewById(R.id.pic);
}
}
}
\ No newline at end of file
}
......@@ -13,27 +13,27 @@ import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarDrawerToggle;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.*;
import android.support.v7.widget.Toolbar;
import android.view.*;
import android.widget.*;
import com.leafpic.app.Adapters.AlbumAdapter;
import com.leafpic.app.Adapters.AlbumsAdapter;
import com.leafpic.app.Adapters.MyAdapter;
import com.leafpic.app.utils.string;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;
import com.nostra13.universalimageloader.core.assist.QueueProcessingType;
import com.readystatesoftware.systembartint.SystemBarTintManager;
public class AlbumsActivity extends AppCompatActivity {
DatabaseHandler db = new DatabaseHandler(AlbumsActivity.this);
HandlingAlbums albums = new HandlingAlbums(AlbumsActivity.this);
AlbumAdapter albumAdapter;
GridView albumgrid;
boolean editmode = false, hidden = false;
RecyclerView.Adapter mAdapter;
RecyclerView mRecyclerView;
AlbumsAdapter adapt;
private ActionBarDrawerToggle mDrawerToggle;
@Override
......@@ -44,10 +44,7 @@ public class AlbumsActivity extends AppCompatActivity {
setContentView(R.layout.activity_albums);
SystemBarTintManager tintManager = new SystemBarTintManager(this);
tintManager.setNavigationBarTintEnabled(true);
tintManager.setStatusBarTintEnabled(false);
tintManager.setNavigationBarTintResource(R.color.navigation_bar);
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(this)
.memoryCacheExtraOptions(200, 200)
......@@ -109,12 +106,13 @@ public class AlbumsActivity extends AppCompatActivity {
String drawerArrayItems[] = getResources().getStringArray(R.array.drawer_items);
int ICONS[] = new int[1];
RecyclerView mRecyclerView = (RecyclerView) findViewById(R.id.RecyclerView); // Declaring RecyclerView
RecyclerView drawerAdapter = (RecyclerView) findViewById(R.id.RecyclerView); // Declaring
// RecyclerView
mAdapter = new MyAdapter(drawerArrayItems, ICONS);
RecyclerView.LayoutManager mLayoutManager = new LinearLayoutManager(this);
mRecyclerView.setLayoutManager(mLayoutManager);
mRecyclerView.setAdapter(mAdapter);
drawerAdapter.setLayoutManager(mLayoutManager);
drawerAdapter.setAdapter(mAdapter);
try{
......@@ -145,16 +143,26 @@ public class AlbumsActivity extends AppCompatActivity {
switch (position){
case 0:
albums.loadAlbums();
albumAdapter = new AlbumAdapter(AlbumsActivity.this, R.layout.album_card, albums.dispAlbums);
//adapt = new AlbumsAdapter(albums.dispAlbums,R.layout.album_card);
//mRecyclerView.setAdapter(adapt);
adapt.setDataset(albums.dispAlbums);
adapt.notifyDataSetChanged();
//adapt.setDataset(albums.dispAlbums);
/*albumAdapter = new AlbumAdapter(AlbumsActivity.this, R.layout.album_card, albums.dispAlbums);
albumgrid = (GridView) findViewById(R.id.gridAlbums);
albumgrid.setAdapter(albumAdapter);
albumgrid.setAdapter(albumAdapter);*/
hidden = false;
break;
case 1:
albums.loadHiddenAlbums();
albumAdapter = new AlbumAdapter(AlbumsActivity.this, R.layout.album_card, albums.dispAlbums);
//adapt = new AlbumsAdapter(albums.dispAlbums,R.layout.album_card);
// mRecyclerView.setAdapter(adapt);
adapt.setDataset(albums.dispAlbums);
adapt.notifyDataSetChanged();
//adapt.setDataset(albums.dispAlbums);
/*albumAdapter = new AlbumAdapter(AlbumsActivity.this, R.layout.album_card, albums.dispAlbums);
albumgrid = (GridView) findViewById(R.id.gridAlbums);
albumgrid.setAdapter(albumAdapter);
albumgrid.setAdapter(albumAdapter);*/
hidden = true;
break;
......@@ -274,13 +282,13 @@ public class AlbumsActivity extends AppCompatActivity {
album.photos = db.getPhotosByAlbum(album.Path);
}
albumAdapter.notifyDataSetChanged();
// albumAdapter.notifyDataSetChanged();
break;
case R.id.endEditAlbumMode:
editmode = false;
invalidateOptionsMenu();
albums.clearSelectedAlbums();
albumAdapter.notifyDataSetChanged();
// albumAdapter.notifyDataSetChanged();
break;
case R.id.excludeAlbumButton:
......@@ -292,7 +300,7 @@ public class AlbumsActivity extends AppCompatActivity {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
albums.excludeSelectedAlbums();
albumAdapter.notifyDataSetChanged();
// albumAdapter.notifyDataSetChanged();
invalidateOptionsMenu();
}
});
......@@ -313,7 +321,7 @@ public class AlbumsActivity extends AppCompatActivity {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
albums.deleteSelectedAlbums();
albumAdapter.notifyDataSetChanged();
//albumAdapter.notifyDataSetChanged();
invalidateOptionsMenu();
}
......@@ -329,7 +337,7 @@ public class AlbumsActivity extends AppCompatActivity {
case R.id.hideAlbumButton:
if (hidden) {
albums.unHideSelectedAlbums();
albumAdapter.notifyDataSetChanged();
//albumAdapter.notifyDataSetChanged();
invalidateOptionsMenu();
} else {
AlertDialog.Builder dlg1 = new AlertDialog.Builder(
......@@ -339,7 +347,7 @@ public class AlbumsActivity extends AppCompatActivity {
@Override
public void onClick(DialogInterface dialogInterface, int j) {
albums.hideSelectedAlbums();
albumAdapter.notifyDataSetChanged();
//albumAdapter.notifyDataSetChanged();
invalidateOptionsMenu();
}
});
......@@ -352,7 +360,7 @@ public class AlbumsActivity extends AppCompatActivity {
@Override
public void onClick(DialogInterface dialog, int which) {
albums.excludeSelectedAlbums();
albumAdapter.notifyDataSetChanged();
//albumAdapter.notifyDataSetChanged();
invalidateOptionsMenu();
}
});
......@@ -401,10 +409,34 @@ public class AlbumsActivity extends AppCompatActivity {
}
albumAdapter = new AlbumAdapter(this, R.layout.album_card, albums.dispAlbums);
albumgrid = (GridView) findViewById(R.id.gridAlbums);
albumgrid.setAdapter(albumAdapter);
albumgrid.setOnItemClickListener(new AdapterView.OnItemClickListener() {
mRecyclerView = (RecyclerView) findViewById(R.id.gridAlbums);
adapt = new AlbumsAdapter(albums.dispAlbums, R.layout.album_card);
adapt.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
TextView a = (TextView) v.findViewById(R.id.picturetext);
String s = a.getTag().toString();
Album album = db.getAlbum(s);
album.photos = db.getPhotosByAlbum(s);
Intent intent = new Intent(AlbumsActivity.this, PhotosActivity.class);
Bundle b = new Bundle();
b.putParcelable("album", album);
intent.putExtras(b);
startActivity(intent);
}
});
mRecyclerView.setHasFixedSize(true);
mRecyclerView.setAdapter(adapt);
mRecyclerView.setLayoutManager(new GridLayoutManager(this, 2));
mRecyclerView.setItemAnimator(new DefaultItemAnimator());
/*albumgrid.setOnItemClickListener(new AdapterView.OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
......@@ -440,6 +472,6 @@ public class AlbumsActivity extends AppCompatActivity {
return true;
}
});
});*/
}
}
......@@ -67,6 +67,25 @@ class DatabaseHandler extends SQLiteOpenHelper {
/***
* Normal Albums
***/
public Album getAlbum(String path) {
String selectQuery = "SELECT * FROM " + TABLE_ALBUMS + " WHERE " + ALBUM_PATH + "='" + path + "'";
SQLiteDatabase db = this.getWritableDatabase();
Cursor cursor = db.rawQuery(selectQuery, null);
Album a = new Album();
if (cursor.moveToFirst()) {
a = new Album(
string.quoteReverse(cursor.getString(0)),
string.quoteReverse(cursor.getString(1)),
Boolean.getBoolean(cursor.getString(2)));
a.photos = getPhotosByAlbum(a.Path);
}
return a;
}
public ArrayList<Album> getAllAlbums() {
ArrayList<Album> contactList = new ArrayList<Album>();
......@@ -378,6 +397,22 @@ class DatabaseHandler extends SQLiteOpenHelper {
db.close();
}
public Photo getPhoto(String path) {
String selectQuery = "SELECT " + PHOTO_PATH + ", " + PHOTO_DATE_TAKEN + " FROM " + TABLE_PHOTOS + " WHERE " +
PHOTO_PATH + "='" + path + "'";
SQLiteDatabase db = this.getWritableDatabase();
Cursor cursor = db.rawQuery(selectQuery, null);
Photo a = null;
if (cursor.moveToFirst()) {
a = new Photo(
string.quoteReverse(cursor.getString(0)),
cursor.getString(1));
}
return a;
}
public ArrayList<Photo> getPhotosByAlbum(String path) {
ArrayList<Photo> contactList = new ArrayList<Photo>();
String selectQuery = "SELECT " + PHOTO_PATH + ", " + PHOTO_DATE_TAKEN + " FROM " + TABLE_PHOTOS + " WHERE " +
......
......@@ -2,12 +2,10 @@ package com.leafpic.app;
import android.graphics.Point;
import android.os.Bundle;
import android.support.v4.app.NavUtils;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.*;
import android.widget.ImageView;
import com.leafpic.app.utils.string;
import com.nostra13.universalimageloader.core.DisplayImageOptions;
import com.nostra13.universalimageloader.core.ImageLoader;
import com.nostra13.universalimageloader.core.ImageLoaderConfiguration;
......@@ -35,7 +33,6 @@ public class PhotoActivity extends AppCompatActivity {
display.getSize(size);
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(this)
.memoryCacheExtraOptions(size.x, size.y)
.diskCacheExtraOptions(size.x, size.y, null)
.tasksProcessingOrder(QueueProcessingType.LIFO)
.build();
ImageLoader.getInstance().destroy();
......@@ -45,14 +42,13 @@ public class PhotoActivity extends AppCompatActivity {
Bundle data = getIntent().getExtras();
f = data.getParcelable("photo");
album = data.getParcelable("album");
string.showToast(this, f.Path);
try {
ImageView picture = (ImageView) findViewById(R.id.current_picture);
DisplayImageOptions defaultOptions = new DisplayImageOptions.Builder()
.showImageOnLoading(R.drawable.ic_empty)
.imageScaleType(ImageScaleType.IN_SAMPLE_POWER_OF_2)
.imageScaleType(ImageScaleType.NONE)
.cacheInMemory(true)
.cacheOnDisk(true)
.build();
......@@ -101,8 +97,8 @@ public class PhotoActivity extends AppCompatActivity {
case android.R.id.home:
NavUtils.navigateUpFromSameTask(this);
finish();
//NavUtils.navigateUpFromSameTask(this);
return true;
......
......@@ -6,10 +6,13 @@ import android.os.Bundle;
import android.support.v4.app.NavUtils;
import android.support.v7.app.AlertDialog;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.DefaultItemAnimator;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.support.v7.widget.Toolbar;
import android.view.*;
import android.widget.AdapterView;
import android.widget.GridView;
import android.widget.ImageView;
import com.leafpic.app.Adapters.PhotosAdapter;
import com.leafpic.app.utils.string;
import com.nostra13.universalimageloader.core.ImageLoader;
......@@ -20,8 +23,10 @@ import com.nostra13.universalimageloader.core.assist.QueueProcessingType;
* Created by dnld on 12/12/15.
*/
public class PhotosActivity extends AppCompatActivity {
HandlingAlbums albums = new HandlingAlbums(PhotosActivity.this);
//HandlingPhotos photos;
DatabaseHandler db = new DatabaseHandler(PhotosActivity.this);
Album album;
GridView photosgrid;
......@@ -38,6 +43,7 @@ public class PhotosActivity extends AppCompatActivity {
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_photos);
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(this)
.memoryCacheExtraOptions(100, 100)
.diskCacheExtraOptions(100, 100, null)
......@@ -51,37 +57,32 @@ public class PhotosActivity extends AppCompatActivity {
Bundle data = getIntent().getExtras();
album = data.getParcelable("album");
setTitle(album.DisplayName);
//photos = new HandlingPhotos(this, album.Path, album.isHidden());
adapter = new PhotosAdapter(this, R.layout.photo_card, album.photos);
photosgrid = (GridView) findViewById(R.id.gridPhotos);
photosgrid.setAdapter(adapter);
photosgrid.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {
RecyclerView mRecyclerView = (RecyclerView) findViewById(R.id.gridPhotos);
adapter = new PhotosAdapter(album.photos, R.layout.photo_card);
adapter.setOnClickListener(new View.OnClickListener() {
@Override
public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {
Photo f = (Photo) parent.getItemAtPosition(position);
string.showToast(PhotosActivity.this, f.Path);
}
public void onClick(View v) {
ImageView is = (ImageView) v.findViewById(R.id.pic);
@Override
public void onNothingSelected(AdapterView<?> parent) {
}
});
photosgrid.setOnItemClickListener(new AdapterView.OnItemClickListener() {
Photo a = db.getPhoto(is.getTag().toString());
@Override
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
Photo a = (Photo) parent.getItemAtPosition(position);
Intent intent = new Intent(PhotosActivity.this, PhotoActivity.class);
Bundle b = new Bundle();
b.putParcelable("album", album);
b.putParcelable("photo", a);
intent.putExtras(b);
startActivity(intent);
}
});
mRecyclerView.setHasFixedSize(true);
mRecyclerView.setAdapter(adapter);
mRecyclerView.setLayoutManager(new GridLayoutManager(this, 3));
mRecyclerView.setItemAnimator(new DefaultItemAnimator());
hidden = album.isHidden();
}
catch (Exception e){ e.printStackTrace(); }
......
......@@ -27,7 +27,7 @@
<include layout="@layout/toolbar"
android:id="@+id/my_awesome_toolbar"/>
<GridView
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/gridAlbums"
......
......@@ -9,7 +9,8 @@
>
<include layout="@layout/toolbar"
android:id="@+id/my_awesome_toolbar"/>
<GridView
<android.support.v7.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:id="@+id/gridPhotos"
......
......@@ -15,5 +15,6 @@ buildscript {
allprojects {
repositories {
jcenter()
maven { url "http://jitpack.net" }
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment