-
-
Save shakilsustswe/de4b68abe48d15f6ebb838ad05e8c439 to your computer and use it in GitHub Desktop.
| *.iml | |
| .gradle | |
| /local.properties | |
| /.idea/caches | |
| /.idea/libraries | |
| /.idea/modules.xml | |
| /.idea/workspace.xml | |
| /.idea/navEditor.xml | |
| /.idea/assetWizardSettings.xml | |
| .DS_Store | |
| /build | |
| /captures | |
| .externalNativeBuild | |
| .cxx |
| MediaPlayerDemo |
| <component name="ProjectCodeStyleConfiguration"> | |
| <code_scheme name="Project" version="173"> | |
| <codeStyleSettings language="XML"> | |
| <indentOptions> | |
| <option name="CONTINUATION_INDENT_SIZE" value="4" /> | |
| </indentOptions> | |
| <arrangement> | |
| <rules> | |
| <section> | |
| <rule> | |
| <match> | |
| <AND> | |
| <NAME>xmlns:android</NAME> | |
| <XML_ATTRIBUTE /> | |
| <XML_NAMESPACE>^$</XML_NAMESPACE> | |
| </AND> | |
| </match> | |
| </rule> | |
| </section> | |
| <section> | |
| <rule> | |
| <match> | |
| <AND> | |
| <NAME>xmlns:.*</NAME> | |
| <XML_ATTRIBUTE /> | |
| <XML_NAMESPACE>^$</XML_NAMESPACE> | |
| </AND> | |
| </match> | |
| <order>BY_NAME</order> | |
| </rule> | |
| </section> | |
| <section> | |
| <rule> | |
| <match> | |
| <AND> | |
| <NAME>.*:id</NAME> | |
| <XML_ATTRIBUTE /> | |
| <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE> | |
| </AND> | |
| </match> | |
| </rule> | |
| </section> | |
| <section> | |
| <rule> | |
| <match> | |
| <AND> | |
| <NAME>.*:name</NAME> | |
| <XML_ATTRIBUTE /> | |
| <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE> | |
| </AND> | |
| </match> | |
| </rule> | |
| </section> | |
| <section> | |
| <rule> | |
| <match> | |
| <AND> | |
| <NAME>name</NAME> | |
| <XML_ATTRIBUTE /> | |
| <XML_NAMESPACE>^$</XML_NAMESPACE> | |
| </AND> | |
| </match> | |
| </rule> | |
| </section> | |
| <section> | |
| <rule> | |
| <match> | |
| <AND> | |
| <NAME>style</NAME> | |
| <XML_ATTRIBUTE /> | |
| <XML_NAMESPACE>^$</XML_NAMESPACE> | |
| </AND> | |
| </match> | |
| </rule> | |
| </section> | |
| <section> | |
| <rule> | |
| <match> | |
| <AND> | |
| <NAME>.*</NAME> | |
| <XML_ATTRIBUTE /> | |
| <XML_NAMESPACE>^$</XML_NAMESPACE> | |
| </AND> | |
| </match> | |
| <order>BY_NAME</order> | |
| </rule> | |
| </section> | |
| <section> | |
| <rule> | |
| <match> | |
| <AND> | |
| <NAME>.*</NAME> | |
| <XML_ATTRIBUTE /> | |
| <XML_NAMESPACE>http://schemas.android.com/apk/res/android</XML_NAMESPACE> | |
| </AND> | |
| </match> | |
| <order>ANDROID_ATTRIBUTE_ORDER</order> | |
| </rule> | |
| </section> | |
| <section> | |
| <rule> | |
| <match> | |
| <AND> | |
| <NAME>.*</NAME> | |
| <XML_ATTRIBUTE /> | |
| <XML_NAMESPACE>.*</XML_NAMESPACE> | |
| </AND> | |
| </match> | |
| <order>BY_NAME</order> | |
| </rule> | |
| </section> | |
| </rules> | |
| </arrangement> | |
| </codeStyleSettings> | |
| </code_scheme> | |
| </component> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project version="4"> | |
| <component name="GradleMigrationSettings" migrationVersion="1" /> | |
| <component name="GradleSettings"> | |
| <option name="linkedExternalProjectsSettings"> | |
| <GradleProjectSettings> | |
| <option name="testRunner" value="PLATFORM" /> | |
| <option name="distributionType" value="DEFAULT_WRAPPED" /> | |
| <option name="externalProjectPath" value="$PROJECT_DIR$" /> | |
| <option name="gradleJvm" value="1.8" /> | |
| <option name="modules"> | |
| <set> | |
| <option value="$PROJECT_DIR$" /> | |
| <option value="$PROJECT_DIR$/app" /> | |
| </set> | |
| </option> | |
| <option name="resolveModulePerSourceSet" value="false" /> | |
| </GradleProjectSettings> | |
| </option> | |
| </component> | |
| </project> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project version="4"> | |
| <component name="RemoteRepositoriesConfiguration"> | |
| <remote-repository> | |
| <option name="id" value="central" /> | |
| <option name="name" value="Maven Central repository" /> | |
| <option name="url" value="https://repo1.maven.org/maven2" /> | |
| </remote-repository> | |
| <remote-repository> | |
| <option name="id" value="jboss.community" /> | |
| <option name="name" value="JBoss Community repository" /> | |
| <option name="url" value="https://repository.jboss.org/nexus/content/repositories/public/" /> | |
| </remote-repository> | |
| <remote-repository> | |
| <option name="id" value="BintrayJCenter" /> | |
| <option name="name" value="BintrayJCenter" /> | |
| <option name="url" value="https://jcenter.bintray.com/" /> | |
| </remote-repository> | |
| <remote-repository> | |
| <option name="id" value="Google" /> | |
| <option name="name" value="Google" /> | |
| <option name="url" value="https://dl.google.com/dl/android/maven2/" /> | |
| </remote-repository> | |
| </component> | |
| </project> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project version="4"> | |
| <component name="ProjectRootManager" version="2" languageLevel="JDK_1_7" project-jdk-name="1.8" project-jdk-type="JavaSDK"> | |
| <output url="file://$PROJECT_DIR$/build/classes" /> | |
| </component> | |
| <component name="ProjectType"> | |
| <option name="id" value="Android" /> | |
| </component> | |
| </project> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project version="4"> | |
| <component name="RunConfigurationProducerService"> | |
| <option name="ignoredProducers"> | |
| <set> | |
| <option value="org.jetbrains.plugins.gradle.execution.test.runner.AllInPackageGradleConfigurationProducer" /> | |
| <option value="org.jetbrains.plugins.gradle.execution.test.runner.TestClassGradleConfigurationProducer" /> | |
| <option value="org.jetbrains.plugins.gradle.execution.test.runner.TestMethodGradleConfigurationProducer" /> | |
| </set> | |
| </option> | |
| </component> | |
| </project> |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <project version="4"> | |
| <component name="VcsDirectoryMappings"> | |
| <mapping directory="$PROJECT_DIR$" vcs="Git" /> | |
| </component> | |
| </project> |
| /build |
| apply plugin: 'com.android.application' | |
| android { | |
| compileSdkVersion 30 | |
| buildToolsVersion "30.0.2" | |
| defaultConfig { | |
| applicationId "com.example.mediaplayerdemo" | |
| minSdkVersion 17 | |
| targetSdkVersion 30 | |
| versionCode 1 | |
| versionName "1.0" | |
| testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" | |
| } | |
| buildTypes { | |
| release { | |
| minifyEnabled false | |
| proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro' | |
| } | |
| } | |
| } | |
| dependencies { | |
| implementation fileTree(dir: "libs", include: ["*.jar"]) | |
| implementation 'androidx.appcompat:appcompat:1.2.0' | |
| implementation 'androidx.constraintlayout:constraintlayout:2.0.1' | |
| testImplementation 'junit:junit:4.12' | |
| androidTestImplementation 'androidx.test.ext:junit:1.1.2' | |
| androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0' | |
| implementation 'com.mikhaellopez:circularimageview:3.2.0' | |
| } |
| # Add project specific ProGuard rules here. | |
| # You can control the set of applied configuration files using the | |
| # proguardFiles setting in build.gradle. | |
| # | |
| # For more details, see | |
| # http://developer.android.com/guide/developing/tools/proguard.html | |
| # If your project uses WebView with JS, uncomment the following | |
| # and specify the fully qualified class name to the JavaScript interface | |
| # class: | |
| #-keepclassmembers class fqcn.of.javascript.interface.for.webview { | |
| # public *; | |
| #} | |
| # Uncomment this to preserve the line number information for | |
| # debugging stack traces. | |
| #-keepattributes SourceFile,LineNumberTable | |
| # If you keep the line number information, uncomment this to | |
| # hide the original source file name. | |
| #-renamesourcefileattribute SourceFile |
| package com.example.mediaplayerdemo; | |
| import android.content.Context; | |
| import androidx.test.platform.app.InstrumentationRegistry; | |
| import androidx.test.ext.junit.runners.AndroidJUnit4; | |
| import org.junit.Test; | |
| import org.junit.runner.RunWith; | |
| import static org.junit.Assert.*; | |
| /** | |
| * Instrumented test, which will execute on an Android device. | |
| * | |
| * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> | |
| */ | |
| @RunWith(AndroidJUnit4.class) | |
| public class ExampleInstrumentedTest { | |
| @Test | |
| public void useAppContext() { | |
| // Context of the app under test. | |
| Context appContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); | |
| assertEquals("com.example.mediaplayerdemo", appContext.getPackageName()); | |
| } | |
| } |
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.example.mediaplayerdemo"> | |
| <application | |
| android:allowBackup="true" | |
| android:icon="@drawable/media_player" | |
| android:label="@string/app_name" | |
| android:roundIcon="@drawable/media_player" | |
| android:supportsRtl="true" | |
| android:theme="@style/AppTheme"> | |
| <activity android:name=".MainActivity"> | |
| <intent-filter> | |
| <action android:name="android.intent.action.MAIN" /> | |
| <category android:name="android.intent.category.LAUNCHER" /> | |
| </intent-filter> | |
| </activity> | |
| </application> | |
| </manifest> |
| package com.example.mediaplayerdemo; | |
| import android.annotation.SuppressLint; | |
| import android.media.MediaPlayer; | |
| import android.os.Bundle; | |
| import android.os.Handler; | |
| import android.os.Message; | |
| import android.view.View; | |
| import android.widget.ImageButton; | |
| import android.widget.SeekBar; | |
| import android.widget.TextView; | |
| import android.widget.Toast; | |
| import androidx.appcompat.app.AppCompatActivity; | |
| import java.util.ArrayList; | |
| public class MainActivity extends AppCompatActivity { | |
| private ImageButton playButton,preButton,nextButton; | |
| private TextView songTitle; | |
| private MediaPlayer mediaPlayer; | |
| SeekBar seekBar; | |
| //private Runnable runnable; | |
| int currentIndex=0; | |
| @Override | |
| protected void onCreate(Bundle savedInstanceState) { | |
| super.onCreate(savedInstanceState); | |
| setContentView(R.layout.activity_main); | |
| nextButton=findViewById(R.id.nextButtonId); | |
| playButton = findViewById(R.id.playbuttonId); | |
| preButton=findViewById(R.id.preButtonId); | |
| songTitle=findViewById(R.id.songId); | |
| seekBar = findViewById(R.id.seekbarId); | |
| ///creating on array list to store our songs | |
| final ArrayList<Integer> songs = new ArrayList<>(); | |
| songs.add(0, R.raw.christina_perri_a_thousand_years); | |
| songs.add(1, R.raw.ed_sheeran_happier); | |
| songs.add(2, R.raw.hero_enrique_iglesias); | |
| songs.add(3, R.raw.i_m_yours_jason_mraz); | |
| songs.add(4, R.raw.i_will_be_loving_you_original_by_chester_see); | |
| songs.add(5, R.raw.james_arthur_say_you_will_not_let_go); | |
| songs.add(6, R.raw.john_denver_annies_song); | |
| songs.add(7, R.raw.john_legend_all_of_me_qoret_com); | |
| songs.add(8, R.raw.just_the_way_you_are_bruno_mars); | |
| songs.add(9, R.raw.marry_you_bruno_mars); | |
| songs.add(10, R.raw.michael_jackson_you_are_not_alone); | |
| songs.add(11, R.raw.michael_learns_tock_take_me_to_your_heart); | |
| songs.add(12, R.raw.where_are_you_now_chester_see); | |
| ////initializing media player//// | |
| mediaPlayer = MediaPlayer.create(getApplicationContext(),songs.get(currentIndex)); | |
| playButton.setOnClickListener(new View.OnClickListener() { | |
| @Override | |
| public void onClick(View v) { | |
| seekBar.setMax(mediaPlayer.getDuration()); | |
| if (mediaPlayer != null && mediaPlayer.isPlaying()) { | |
| mediaPlayer.pause(); | |
| playButton.setImageResource(R.drawable.ic_baseline_play_arrow_24); | |
| } else { | |
| mediaPlayer.start(); | |
| playButton.setImageResource(R.drawable.ic_baseline_pause_24); | |
| } | |
| songnames(); | |
| } | |
| }); | |
| ///OnClickListener//// | |
| preButton.setOnClickListener(new View.OnClickListener() { | |
| @Override | |
| public void onClick(View v) { | |
| if (mediaPlayer != null) { | |
| playButton.setImageResource(R.drawable.ic_baseline_pause_24); | |
| } | |
| if (currentIndex > 0) { | |
| currentIndex=currentIndex-1; | |
| } else { | |
| currentIndex = songs.size()-1; | |
| } | |
| if (mediaPlayer.isPlaying()) { | |
| mediaPlayer.stop(); | |
| } | |
| mediaPlayer = MediaPlayer.create(getApplicationContext(), songs.get(currentIndex)); | |
| mediaPlayer.start(); | |
| songnames(); | |
| } | |
| }); | |
| nextButton.setOnClickListener(new View.OnClickListener() { | |
| @Override | |
| public void onClick(View v) { | |
| if (mediaPlayer != null) { | |
| playButton.setImageResource(R.drawable.ic_baseline_pause_24); | |
| } | |
| if (currentIndex < songs.size()-1) { | |
| currentIndex=currentIndex+1; | |
| } else { | |
| currentIndex = 0; | |
| } | |
| if (mediaPlayer.isPlaying()) { | |
| mediaPlayer.stop(); | |
| } | |
| mediaPlayer = MediaPlayer.create(getApplicationContext(), songs.get(currentIndex)); | |
| mediaPlayer.start(); | |
| songnames(); | |
| } | |
| }); | |
| } | |
| private void songnames() | |
| { | |
| if (currentIndex == 0) { | |
| songTitle.setText("1.A Thousand Years by Christina perri"); | |
| } | |
| if (currentIndex == 1) { | |
| songTitle.setText("2.Happier by Ed Sheeran ."); | |
| } | |
| if (currentIndex == 2) { | |
| songTitle.setText("3.Hero by Enrique Iglesias."); | |
| } | |
| if (currentIndex == 3) { | |
| songTitle.setText("4.I m Yours by Jason Mraz ."); | |
| } | |
| if(currentIndex==4) | |
| { | |
| songTitle.setText("5.I Will Be Loving You Original by Chester See ."); | |
| } | |
| if(currentIndex==5) | |
| { | |
| songTitle.setText("6.Say You Won't Let Go by James Arthur."); | |
| } | |
| if(currentIndex==6) | |
| { | |
| songTitle.setText("7.Annies by John Denver."); | |
| } | |
| if(currentIndex==7) | |
| { | |
| songTitle.setText("8.All of Me by John_Legend. "); | |
| } | |
| if(currentIndex==8) | |
| { | |
| songTitle.setText("9.Just The Way You Are by Bruno Mars . "); | |
| } | |
| if(currentIndex==9) | |
| { | |
| songTitle.setText("10.Marry You by Bruno Mars."); | |
| } | |
| if(currentIndex==10) | |
| { | |
| songTitle.setText("11.You Are Not Alone by Michael Jackson . "); | |
| } | |
| if(currentIndex==11) | |
| { | |
| songTitle.setText("12.To Rock Take Me To Your Heart by Michael Learns "); | |
| } | |
| if(currentIndex==12) | |
| { | |
| songTitle.setText(" 13.Where Are You Now by Chester See. "); | |
| } | |
| ///////seekbar ////////// | |
| seekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { | |
| @Override | |
| public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { | |
| if (fromUser) { | |
| mediaPlayer.seekTo(progress); | |
| seekBar.setProgress(progress); | |
| } | |
| } | |
| @Override | |
| public void onStartTrackingTouch(SeekBar seekBar) { | |
| } | |
| @Override | |
| public void onStopTrackingTouch(SeekBar seekBar) { | |
| } | |
| }); | |
| ///seekbar duration///// | |
| mediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { | |
| @Override | |
| public void onPrepared(MediaPlayer mp) { | |
| seekBar.setMax(mediaPlayer.getDuration()); | |
| mediaPlayer.start(); | |
| } | |
| }); | |
| ///seekbar for progress/// | |
| new Thread(new Runnable() { | |
| @Override | |
| public void run() { | |
| while (mediaPlayer != null) { | |
| try { | |
| if (mediaPlayer.isPlaying()) { | |
| Message message = new Message(); | |
| message.what = mediaPlayer.getCurrentPosition(); | |
| hendler.sendMessage(message); | |
| Thread.sleep(1000); | |
| } | |
| } catch (InterruptedException e) { | |
| e.printStackTrace(); | |
| } | |
| } | |
| } | |
| }).start(); | |
| } | |
| @SuppressLint({"HandlerLeak"}) | |
| Handler hendler = new Handler() { | |
| @Override | |
| public void handleMessage(Message msg) { | |
| seekBar.setProgress(msg.what); | |
| } | |
| }; | |
| @Override | |
| protected void onDestroy() { | |
| if(mediaPlayer!=null&&mediaPlayer.isPlaying()) | |
| { | |
| mediaPlayer.stop(); | |
| mediaPlayer.release(); | |
| if (mediaPlayer == null) ; | |
| } | |
| super.onDestroy(); | |
| } | |
| } |
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | |
| xmlns:aapt="http://schemas.android.com/aapt" | |
| android:width="108dp" | |
| android:height="108dp" | |
| android:viewportWidth="108" | |
| android:viewportHeight="108"> | |
| <path android:pathData="M31,63.928c0,0 6.4,-11 12.1,-13.1c7.2,-2.6 26,-1.4 26,-1.4l38.1,38.1L107,108.928l-32,-1L31,63.928z"> | |
| <aapt:attr name="android:fillColor"> | |
| <gradient | |
| android:endX="85.84757" | |
| android:endY="92.4963" | |
| android:startX="42.9492" | |
| android:startY="49.59793" | |
| android:type="linear"> | |
| <item | |
| android:color="#44000000" | |
| android:offset="0.0" /> | |
| <item | |
| android:color="#00000000" | |
| android:offset="1.0" /> | |
| </gradient> | |
| </aapt:attr> | |
| </path> | |
| <path | |
| android:fillColor="#FFFFFF" | |
| android:fillType="nonZero" | |
| android:pathData="M65.3,45.828l3.8,-6.6c0.2,-0.4 0.1,-0.9 -0.3,-1.1c-0.4,-0.2 -0.9,-0.1 -1.1,0.3l-3.9,6.7c-6.3,-2.8 -13.4,-2.8 -19.7,0l-3.9,-6.7c-0.2,-0.4 -0.7,-0.5 -1.1,-0.3C38.8,38.328 38.7,38.828 38.9,39.228l3.8,6.6C36.2,49.428 31.7,56.028 31,63.928h46C76.3,56.028 71.8,49.428 65.3,45.828zM43.4,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2c-0.3,-0.7 -0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C45.3,56.528 44.5,57.328 43.4,57.328L43.4,57.328zM64.6,57.328c-0.8,0 -1.5,-0.5 -1.8,-1.2s-0.1,-1.5 0.4,-2.1c0.5,-0.5 1.4,-0.7 2.1,-0.4c0.7,0.3 1.2,1 1.2,1.8C66.5,56.528 65.6,57.328 64.6,57.328L64.6,57.328z" | |
| android:strokeWidth="1" | |
| android:strokeColor="#00000000" /> | |
| </vector> |
| <?xml version="1.0" encoding="utf-8"?> | |
| <shape xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <gradient | |
| android:startColor="#ff22" | |
| android:centerColor="#0FE31A" | |
| android:endColor="#ff22" | |
| /> | |
| </shape> |
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:width="24dp" | |
| android:height="24dp" | |
| android:viewportWidth="24" | |
| android:viewportHeight="24" | |
| android:tint="?attr/colorControlNormal"> | |
| <path | |
| android:fillColor="@android:color/white" | |
| android:pathData="M6,19h4L10,5L6,5v14zM14,5v14h4L18,5h-4z"/> | |
| </vector> |
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:width="24dp" | |
| android:height="24dp" | |
| android:viewportWidth="24" | |
| android:viewportHeight="24" | |
| android:tint="?attr/colorControlNormal"> | |
| <path | |
| android:fillColor="@android:color/white" | |
| android:pathData="M8,5v14l11,-7z"/> | |
| </vector> |
| <?xml version="1.0" encoding="utf-8"?> | |
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:width="108dp" | |
| android:height="108dp" | |
| android:viewportWidth="108" | |
| android:viewportHeight="108"> | |
| <path | |
| android:fillColor="#3DDC84" | |
| android:pathData="M0,0h108v108h-108z" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M9,0L9,108" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M19,0L19,108" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M29,0L29,108" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M39,0L39,108" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M49,0L49,108" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M59,0L59,108" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M69,0L69,108" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M79,0L79,108" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M89,0L89,108" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M99,0L99,108" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M0,9L108,9" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M0,19L108,19" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M0,29L108,29" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M0,39L108,39" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M0,49L108,49" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M0,59L108,59" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M0,69L108,69" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M0,79L108,79" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M0,89L108,89" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M0,99L108,99" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M19,29L89,29" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M19,39L89,39" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M19,49L89,49" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M19,59L89,59" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M19,69L89,69" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M19,79L89,79" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M29,19L29,89" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M39,19L39,89" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M49,19L49,89" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M59,19L59,89" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M69,19L69,89" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| <path | |
| android:fillColor="#00000000" | |
| android:pathData="M79,19L79,89" | |
| android:strokeWidth="0.8" | |
| android:strokeColor="#33FFFFFF" /> | |
| </vector> |
| <?xml version="1.0" encoding="utf-8"?> | |
| <vector | |
| android:height="108dp" | |
| android:width="108dp" | |
| android:viewportHeight="108" | |
| android:viewportWidth="108" | |
| xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <path android:fillColor="#3DDC84" | |
| android:pathData="M0,0h108v108h-108z"/> | |
| <path android:fillColor="#00000000" android:pathData="M9,0L9,108" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M19,0L19,108" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M29,0L29,108" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M39,0L39,108" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M49,0L49,108" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M59,0L59,108" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M69,0L69,108" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M79,0L79,108" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M89,0L89,108" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M99,0L99,108" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M0,9L108,9" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M0,19L108,19" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M0,29L108,29" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M0,39L108,39" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M0,49L108,49" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M0,59L108,59" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M0,69L108,69" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M0,79L108,79" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M0,89L108,89" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M0,99L108,99" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M19,29L89,29" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M19,39L89,39" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M19,49L89,49" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M19,59L89,59" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M19,69L89,69" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M19,79L89,79" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M29,19L29,89" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M39,19L39,89" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M49,19L49,89" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M59,19L59,89" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M69,19L69,89" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M79,19L79,89" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| </vector> |
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:width="108dp" | |
| android:height="108dp" | |
| android:viewportWidth="108" | |
| android:viewportHeight="108" | |
| android:tint="#000000"> | |
| <group android:scaleX="2.61" | |
| android:scaleY="2.61" | |
| android:translateX="22.68" | |
| android:translateY="22.68"> | |
| <path | |
| android:fillColor="@android:color/white" | |
| android:pathData="M6,18l8.5,-6L6,6v12zM16,6v12h2V6h-2z"/> | |
| </group> | |
| </vector> |
| <?xml version="1.0" encoding="utf-8"?> | |
| <vector | |
| android:height="108dp" | |
| android:width="108dp" | |
| android:viewportHeight="108" | |
| android:viewportWidth="108" | |
| xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <path android:fillColor="#3DDC84" | |
| android:pathData="M0,0h108v108h-108z"/> | |
| <path android:fillColor="#00000000" android:pathData="M9,0L9,108" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M19,0L19,108" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M29,0L29,108" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M39,0L39,108" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M49,0L49,108" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M59,0L59,108" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M69,0L69,108" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M79,0L79,108" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M89,0L89,108" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M99,0L99,108" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M0,9L108,9" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M0,19L108,19" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M0,29L108,29" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M0,39L108,39" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M0,49L108,49" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M0,59L108,59" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M0,69L108,69" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M0,79L108,79" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M0,89L108,89" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M0,99L108,99" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M19,29L89,29" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M19,39L89,39" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M19,49L89,49" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M19,59L89,59" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M19,69L89,69" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M19,79L89,79" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M29,19L29,89" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M39,19L39,89" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M49,19L49,89" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M59,19L59,89" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M69,19L69,89" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| <path android:fillColor="#00000000" android:pathData="M79,19L79,89" | |
| android:strokeColor="#33FFFFFF" android:strokeWidth="0.8"/> | |
| </vector> |
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | |
| android:width="108dp" | |
| android:height="108dp" | |
| android:viewportWidth="108" | |
| android:viewportHeight="108" | |
| android:tint="#000000"> | |
| <group android:scaleX="2.61" | |
| android:scaleY="2.61" | |
| android:translateX="22.68" | |
| android:translateY="22.68"> | |
| <path | |
| android:fillColor="@android:color/white" | |
| android:pathData="M6,6h2v12L6,18zM9.5,12l8.5,6L18,6z"/> | |
| </group> | |
| </vector> |
| <?xml version="1.0" encoding="utf-8"?> | |
| <LinearLayout 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:app="http://schemas.android.com/apk/res-auto" | |
| android:orientation="vertical" | |
| android:gravity="center" | |
| android:background="@drawable/background_color" | |
| tools:context=".MainActivity"> | |
| <TextView | |
| android:layout_marginTop="30dp" | |
| android:layout_width="wrap_content" | |
| android:layout_height="wrap_content" | |
| android:text="Memi's music" | |
| android:fontFamily="cursive"/> | |
| <com.mikhaellopez.circularimageview.CircularImageView | |
| android:layout_marginTop="200dp" | |
| android:layout_width = "250dp" | |
| android:layout_height = "250dp" | |
| android:src = "@drawable/memi" | |
| app:civ_border_color = "#EEEEEE" | |
| app:civ_border_width = "4dp" | |
| app:civ_shadow = "true" | |
| app:civ_shadow_radius = "10" | |
| app:civ_shadow_color = "#8BC34A"/> | |
| <TextView | |
| android:id="@+id/songId" | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:layout_marginTop="20dp" | |
| android:layout_marginLeft="15dp" | |
| android:layout_gravity="center_horizontal" /> | |
| <SeekBar | |
| android:id="@+id/seekbarId" | |
| android:layout_marginTop="10dp" | |
| android:layout_width="match_parent" | |
| android:layout_height="wrap_content" | |
| android:layout_marginBottom="10dp"/> | |
| <LinearLayout | |
| android:layout_width="match_parent" | |
| android:layout_height="match_parent" | |
| android:orientation="horizontal"> | |
| <ImageButton | |
| android:id="@+id/preButtonId" | |
| android:layout_width="40dp" | |
| android:layout_height="40dp" | |
| android:layout_marginStart="100dp" | |
| android:src="@drawable/previous_foreground" | |
| android:scaleType="fitXY" | |
| android:backgroundTint="@color/colorPrimaryDark" | |
| android:baselineAligned="false" /> | |
| <ImageButton | |
| android:id="@+id/playbuttonId" | |
| android:src="@drawable/ic_baseline_play_arrow_24" | |
| android:layout_width="40dp" | |
| android:layout_height="40dp" | |
| android:backgroundTint="@color/colorPrimaryDark" | |
| android:layout_marginLeft="30dp" /> | |
| <ImageButton | |
| android:id="@+id/nextButtonId" | |
| android:layout_width="40dp" | |
| android:layout_height="40dp" | |
| android:layout_marginLeft="30dp" | |
| android:src="@drawable/next_foreground" | |
| android:scaleType="fitXY" | |
| android:backgroundTint="@color/colorPrimaryDark" | |
| android:baselineAligned="false" /> | |
| </LinearLayout> | |
| </LinearLayout> | |
| <?xml version="1.0" encoding="utf-8"?> | |
| <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <background android:drawable="@drawable/ic_launcher_background" /> | |
| <foreground android:drawable="@drawable/ic_launcher_foreground" /> | |
| </adaptive-icon> |
| <?xml version="1.0" encoding="utf-8"?> | |
| <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <background android:drawable="@drawable/ic_launcher_background" /> | |
| <foreground android:drawable="@drawable/ic_launcher_foreground" /> | |
| </adaptive-icon> |
| <?xml version="1.0" encoding="utf-8"?> | |
| <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <background android:drawable="@drawable/next_background"/> | |
| <foreground android:drawable="@drawable/next_foreground"/> | |
| </adaptive-icon> |
| <?xml version="1.0" encoding="utf-8"?> | |
| <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <background android:drawable="@drawable/next_background"/> | |
| <foreground android:drawable="@drawable/next_foreground"/> | |
| </adaptive-icon> |
| <?xml version="1.0" encoding="utf-8"?> | |
| <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <background android:drawable="@drawable/previous_background"/> | |
| <foreground android:drawable="@drawable/previous_foreground"/> | |
| </adaptive-icon> |
| <?xml version="1.0" encoding="utf-8"?> | |
| <adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android"> | |
| <background android:drawable="@drawable/previous_background"/> | |
| <foreground android:drawable="@drawable/previous_foreground"/> | |
| </adaptive-icon> |
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)
(Sorry about that, but we can’t show files that are this big right now.)