You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
81 lines
2.2 KiB
81 lines
2.2 KiB
@startuml
|
|
class com.example.music.PlayerActivity {
|
|
~ TextView song_name
|
|
~ ImageView cover_art
|
|
~ FloatingActionButton playPauseBtn
|
|
~ SeekBar seekBar
|
|
~ int position
|
|
~ {static} ArrayList<MusicFiles> listSongs
|
|
~ {static} Uri uri
|
|
~ {static} MediaPlayer mediaPlayer
|
|
- Handler handler
|
|
- Thread playThread
|
|
# void onCreate(Bundle)
|
|
# void onResume()
|
|
- void prevThreadBtn()
|
|
- void prevBtnClicked()
|
|
- void nextThreadBtn()
|
|
- void nextBtnClicked()
|
|
- int getRandom(int)
|
|
- void playThreadBtn()
|
|
- void playPauseBtnClicked()
|
|
- String formattedTime(int)
|
|
- void getIntentMethod()
|
|
- void initView()
|
|
- void metaData(Uri)
|
|
+ void ImageAnimation(Context,ImageView,Bitmap)
|
|
+ void onCompletion(MediaPlayer)
|
|
}
|
|
class com.example.music.RegisterActivity {
|
|
~ Button button_submit
|
|
~ DaBa daBa
|
|
~ EditText index_username
|
|
~ EditText index_password
|
|
~ SQLiteDatabase sqLiteDatabase
|
|
# void onCreate(Bundle)
|
|
}
|
|
class com.example.music.LoginActivity {
|
|
~ EditText usernameInput
|
|
~ EditText passwordInput
|
|
~ Button button_login
|
|
~ Button button_index
|
|
~ Context that
|
|
- CheckBox RePassword
|
|
- CheckBox AutoLogin
|
|
- String Tag
|
|
- String SP_Name
|
|
- String SP_Password
|
|
- String SP_IsRemember
|
|
- SharedPreferences sharedPreferences
|
|
- boolean status
|
|
# void onCreate(Bundle)
|
|
- void initData()
|
|
- void initUI()
|
|
}
|
|
class com.example.music.MainActivity {
|
|
~ DrawerLayout drawerLayout
|
|
~ ActionBarDrawerToggle toggle
|
|
~ NavigationView navigationView
|
|
~ ViewPager pager
|
|
~ TabLayout mTabLayout
|
|
~ TabItem songs
|
|
~ PagerAdapter pagerAdapter
|
|
+ {static} int REQUEST_CODE
|
|
~ {static} ArrayList<MusicFiles> musicFiles
|
|
~ {static} boolean shuffleBoolean
|
|
# void onCreate(Bundle)
|
|
- void initViewPager()
|
|
- void permission()
|
|
+ void onRequestPermissionsResult(int,String[],int[])
|
|
+ boolean onNavigationItemSelected(MenuItem)
|
|
+ {static} ArrayList<MusicFiles> getAllAudio(Context)
|
|
}
|
|
|
|
|
|
com.example.music.OnCompletionListener <|.. com.example.music.PlayerActivity
|
|
androidx.appcompat.app.AppCompatActivity <|-- com.example.music.PlayerActivity
|
|
androidx.appcompat.app.AppCompatActivity <|-- com.example.music.RegisterActivity
|
|
androidx.appcompat.app.AppCompatActivity <|-- com.example.music.LoginActivity
|
|
com.example.music.OnNavigationItemSelectedListener <|.. com.example.music.MainActivity
|
|
androidx.appcompat.app.AppCompatActivity <|-- com.example.music.MainActivity
|
|
@enduml |