Skip to content

Instantly share code, notes, and snippets.

mWaveSwipeRefreshLayout = (WaveSwipeRefreshLayout) findViewById(R.id.main_swipe);
mWaveSwipeRefreshLayout.setOnRefreshListener(new WaveSwipeRefreshLayout.OnRefreshListener() {
@Override public void onRefresh() {
// Do work to refresh the list here.
new Task().execute();
}
});
private class Task extends AsyncTask<Void, Void, String[]> {
...
<jp.co.recruit_lifestyle.android.widget.WaveSwipeRefreshLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/main_swipe">
<ListView
android:id="@+id/main_list"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
repositories {
maven {
url "https://jitpack.io"
}
}
dependencies {
compile 'com.github.recruit-lifestyle:WaveSwipeRefreshLayout:1.6'
}
package com.monstertechno.musicplayerappui;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import android.widget.Toast;
import com.sothree.slidinguppanel.SlidingUpPanelLayout;
import com.sothree.slidinguppanel.SlidingUpPanelLayout.PanelState;
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<ImageView
android:src="@drawable/songs_cover"
<?xml version="1.0" encoding="utf-8"?>
<com.sothree.slidinguppanel.SlidingUpPanelLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/activity_main"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom"
tools:context=".MainActivity"
app:umanoPanelHeight="70dp"
<resources>
<color name="colorPrimary">#3F51B5</color>
<color name="colorPrimaryDark">#a3391f</color>
<color name="colorAccent">#F55730</color>
<color name="backgroundColor">#ffff</color>
<color name="tectColor">#000</color>
<color name="songTimerColor">#484848</color>
</resources>
{
dataBinding {
enabled = true
}
}
dependencies {
//...
implementation 'com.sothree.slidinguppanel:library:3.4.0'
package com.monstertechno.uidesignnew;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.MenuItem;
public class Profile extends AppCompatActivity{
@Override
<?xml version="1.0" encoding="utf-8"?>
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"
tools:context=".Profile">
<include