diff --git a/MidiPlayer.Droid/ListViewAdapter.cs b/MidiPlayer.Droid/ListViewAdapter.cs index 8049ca2..69a52cd 100644 --- a/MidiPlayer.Droid/ListViewAdapter.cs +++ b/MidiPlayer.Droid/ListViewAdapter.cs @@ -1,4 +1,18 @@ - +/* + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + using Android.Content; using Android.Views; using Android.Widget; @@ -19,6 +33,9 @@ public class ListTitle { /// /// an Adapter class for ListView. /// + /// + /// h.adachi (STUDIO MeowToon) + /// public class ListTitleAdapter : ArrayAdapter { #nullable enable @@ -37,9 +54,9 @@ public override View GetView(int position, View convertView, ViewGroup parent) { if (convertView == null) { convertView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.list_title, parent, false); viewHolder = new(); - viewHolder.TextViewName = convertView.FindViewById(Resource.Id.text_view_title_name); - viewHolder.TextViewInstrument = convertView.FindViewById(Resource.Id.text_view_title_instrument); - viewHolder.TextViewChannel = convertView.FindViewById(Resource.Id.text_view_title_channel); + viewHolder.TextViewName = convertView.FindViewById(Resource.Id.textview_title_name); + viewHolder.TextViewInstrument = convertView.FindViewById(Resource.Id.textview_title_instrument); + viewHolder.TextViewChannel = convertView.FindViewById(Resource.Id.textview_title_channel); convertView.SetTag(Resource.String.view_holder_tag, viewHolder); } else { viewHolder = (ViewHolder) convertView.GetTag(Resource.String.view_holder_tag); @@ -96,9 +113,9 @@ public override View GetView(int position, View convertView, ViewGroup parent) { convertView = LayoutInflater.From(parent.Context).Inflate(Resource.Layout.list_item, parent, false); viewHolder = new(); viewHolder.CheckBox = convertView.FindViewById(Resource.Id.checkbox_item_select); - viewHolder.TextViewName = convertView.FindViewById(Resource.Id.text_view_item_name); - viewHolder.TextViewInstrument = convertView.FindViewById(Resource.Id.text_view_item_instrument); - viewHolder.TextViewChannel = convertView.FindViewById(Resource.Id.text_view_item_channel); + viewHolder.TextViewName = convertView.FindViewById(Resource.Id.textview_item_name); + viewHolder.TextViewInstrument = convertView.FindViewById(Resource.Id.textview_item_instrument); + viewHolder.TextViewChannel = convertView.FindViewById(Resource.Id.textview_item_channel); convertView.SetTag(Resource.String.view_holder_tag, viewHolder); } else { viewHolder = (ViewHolder) convertView.GetTag(Resource.String.view_holder_tag); diff --git a/MidiPlayer.Droid/MainActivity.Component.cs b/MidiPlayer.Droid/MainActivity.Component.cs index accabdd..d9b487b 100644 --- a/MidiPlayer.Droid/MainActivity.Component.cs +++ b/MidiPlayer.Droid/MainActivity.Component.cs @@ -1,4 +1,18 @@ - +/* + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + using Android.Support.V7.App; using Android.Widget; @@ -10,6 +24,9 @@ namespace MidiPlayer.Droid { /// /// partial class for initialize the component /// + /// + /// h.adachi (STUDIO MeowToon) + /// public partial class MainActivity : AppCompatActivity { #nullable enable @@ -22,21 +39,21 @@ public partial class MainActivity : AppCompatActivity { /////////////////////////////////////////////////////////////////////////////////////////////// // Fields [nouns, noun phrases] - Button _buttonloadSoundFont; - Button _buttonloadMidiFile; - Button _buttonStart; - Button _buttonStop; - Button _buttonAddPlaylist; - Button _buttonDeletePlaylist; - Button _buttonSendSynth; - TextView _textViewNo; - TextView _textViewChannel; - NumberPicker _numberPickerProg; - NumberPicker _numberPickerPan; - NumberPicker _numberPickerVol; - CheckBox _checkBoxMute; - ListView _titleListView; - ListView _itemListView; + Button _button_load_soundfont; + Button _button_load_midi_file; + Button _button_start; + Button _button_stop; + Button _button_add_playlist; + Button _button_delete_playlist; + Button _button_send_synth; + TextView _textview_no; + TextView _textview_channel; + NumberPicker _numberpicker_prog; + NumberPicker _numberpicker_pan; + NumberPicker _numberpicker_vol; + CheckBox _checkbox_mute; + ListView _listview_title; + ListView _listview_item; /////////////////////////////////////////////////////////////////////////////////////////////// // private Methods [verb, verb phrases] @@ -49,9 +66,9 @@ void initializeComponent() { /// /// buttonLoadSoundFont /// - _buttonloadSoundFont = FindViewById