From 7965ce90a617ef1d008fdf788b6200a2590c0ab4 Mon Sep 17 00:00:00 2001 From: nero Date: Thu, 21 Dec 2023 13:58:20 +0900 Subject: [PATCH] =?UTF-8?q?LibraryArchiveFragment=E3=81=AB=E3=81=A6?= =?UTF-8?q?=E3=82=B3=E3=83=BC=E3=83=89=E3=81=8C=E9=87=8D=E8=A4=87=E3=81=97?= =?UTF-8?q?=E3=81=A6=E3=81=84=E3=81=9F=E3=81=9F=E3=82=81=E3=80=81=E5=89=8A?= =?UTF-8?q?=E9=99=A4=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/deploymentTargetDropDown.xml | 17 ++++++++++---- .../library/LibraryArchiveFragment.java | 23 ++++--------------- 2 files changed, 17 insertions(+), 23 deletions(-) diff --git a/.idea/deploymentTargetDropDown.xml b/.idea/deploymentTargetDropDown.xml index 0c0c3383..76049e85 100644 --- a/.idea/deploymentTargetDropDown.xml +++ b/.idea/deploymentTargetDropDown.xml @@ -1,10 +1,17 @@ - - - - - + + + + + + + + + + + + \ No newline at end of file diff --git a/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryArchiveFragment.java b/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryArchiveFragment.java index 806afc4f..18acbb3d 100644 --- a/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryArchiveFragment.java +++ b/feature/library/src/main/java/one/nem/lacerta/feature/library/LibraryArchiveFragment.java @@ -7,13 +7,14 @@ import android.widget.TextView; import androidx.appcompat.app.AppCompatActivity; +// LibraryArchiveFragment.java public class LibraryArchiveFragment extends AppCompatActivity { @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.fragment_library_top); - //ここに入力された内容を表示する機能 + // ここに入力された内容を表示する機能 TextView textView = findViewById(R.id.document_list); textView.setOnClickListener(new View.OnClickListener() { @@ -24,24 +25,10 @@ public class LibraryArchiveFragment extends AppCompatActivity { // 移動先のアクティビティを指定 Intent intent = new Intent(LibraryArchiveFragment.this, LibraryDocFragment.class); - // または、移動先のフラグメントを指定 - // Intent intent = new Intent(LibraryArchiveFragment.this, TargetFragment.class); - - startActivity(intent);textView.setOnClickListener(new View.OnClickListener() { - @Override - public void onClick(View v) { - // 文字をタップしたときの処理 - - // 移動先のアクティビティを指定 - Intent intent = new Intent(LibraryArchiveFragment.this, LibraryDocFragment.class); - - // データを付加する - intent.putExtra("key_name", "value_data"); - - startActivity(intent); - } - }); + // データを付加する + intent.putExtra("key_name", "value_data"); + startActivity(intent); } }); }