Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
82b1f36379
6 changed files with 15 additions and 6 deletions
|
|
@ -69,7 +69,7 @@ dependencies {
|
|||
compile 'de.hdodenhof:circleimageview:1.2.2'
|
||||
compile 'com.github.bumptech.glide:glide:3.5.2'
|
||||
|
||||
compile 'com.afollestad:material-dialogs:0.7.2.6'
|
||||
compile 'com.afollestad:material-dialogs:0.7.2.7'
|
||||
compile 'com.jpardogo.materialtabstrip:library:1.0.9'
|
||||
compile 'com.readystatesoftware.systembartint:systembartint:1.0.3'
|
||||
compile 'com.melnykov:floatingactionbutton:1.3.0'
|
||||
|
|
|
|||
|
|
@ -1,6 +1,9 @@
|
|||
package com.kabouzeid.gramophone.model;
|
||||
|
||||
public class PlaylistSong extends Song {
|
||||
|
||||
private static final long serialVersionUID = 1098600801627571043L;
|
||||
|
||||
public final int playlistId;
|
||||
public int idInPlayList;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,6 +7,8 @@ import java.io.Serializable;
|
|||
*/
|
||||
public class Song implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 3720703366054566981L;
|
||||
|
||||
public int id;
|
||||
public final int albumId;
|
||||
public final int artistId;
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ import android.os.Build;
|
|||
import android.os.Bundle;
|
||||
import android.support.v4.content.ContextCompat;
|
||||
import android.support.v4.view.MenuItemCompat;
|
||||
import android.support.v7.widget.LinearLayoutManager;
|
||||
import android.support.v7.widget.RecyclerView;
|
||||
import android.support.v7.widget.SearchView;
|
||||
import android.support.v7.widget.Toolbar;
|
||||
|
|
@ -28,7 +29,6 @@ public class SearchActivity extends AbsBaseActivity {
|
|||
public static final String TAG = SearchActivity.class.getSimpleName();
|
||||
private RecyclerView recyclerView;
|
||||
private SearchView searchView;
|
||||
private SearchAdapter searchAdapter;
|
||||
|
||||
@SuppressLint("NewApi")
|
||||
@Override
|
||||
|
|
@ -39,7 +39,8 @@ public class SearchActivity extends AbsBaseActivity {
|
|||
setContentView(R.layout.activity_search);
|
||||
|
||||
recyclerView = (RecyclerView) findViewById(R.id.recycler_view);
|
||||
searchAdapter = new SearchAdapter(this);
|
||||
recyclerView.setLayoutManager(new LinearLayoutManager(this));
|
||||
SearchAdapter searchAdapter = new SearchAdapter(this);
|
||||
recyclerView.setAdapter(searchAdapter);
|
||||
|
||||
recyclerView.setOnTouchListener(new View.OnTouchListener() {
|
||||
|
|
@ -56,6 +57,7 @@ public class SearchActivity extends AbsBaseActivity {
|
|||
Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);
|
||||
toolbar.setBackgroundColor(PreferenceUtils.getInstance(this).getThemeColorPrimary());
|
||||
setSupportActionBar(toolbar);
|
||||
//noinspection ConstantConditions
|
||||
getSupportActionBar().setDisplayHomeAsUpEnabled(true);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
|
@ -21,6 +21,7 @@
|
|||
android:clipToPadding="false"
|
||||
android:divider="@null"
|
||||
android:dividerHeight="0px"
|
||||
android:paddingBottom="@dimen/playlist_list_bottom_offset"
|
||||
android:scrollbars="vertical" />
|
||||
|
||||
</LinearLayout>
|
||||
|
|
|
|||
|
|
@ -48,4 +48,5 @@ http://developer.android.com/guide/topics/appwidgets/index.html#CreatingLayout
|
|||
<dimen name="list_padding_vertical">2dp</dimen>
|
||||
|
||||
<dimen name="notification_albumart_size">128dp</dimen>
|
||||
<dimen name="playlist_list_bottom_offset">86dp</dimen>
|
||||
</resources>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue