パッケージ構成変更

This commit is contained in:
r-ca committed 2023-12-14 01:20:21 +09:00
1 parent d222d77a91
commit cbe5d1069a
16 files changed
+40 -264

No files matched your search

@@ -15,6 +15,8 @@ import one.nem.lacerta.data.repository.SharedPref;
import one.nem.lacerta.data.model.shared_pref.enums.SharedPrefType;
import one.nem.lacerta.source.db.LacertaDatabase;
import javax.inject.Inject;
import dagger.hilt.android.AndroidEntryPoint;
@@ -28,6 +30,9 @@ public class DebugPlayGroundFragment extends Fragment {
@Inject // DI
SharedPref sharedPref;
@Inject
LacertaDatabase lacertaDatabase; // TODO-rca: Repositoryを噛ませる
public DebugPlayGroundFragment() {
// Required empty public constructor
}
@@ -60,6 +65,6 @@ public class DebugPlayGroundFragment extends Fragment {
// (viewは引数として受け取ってるviewなので、別メソッドに切り出したりするなら渡してあげる)
// ShardPrefの要素数をトーストする例
Toast.makeText(getContext(), "SharedPrefの要素数: " + sharedPref.getSharedPreferencesByTag(SharedPrefType.COMMON).getAll().size(), Toast.LENGTH_SHORT).show();
Toast.makeText(getContext(), "DBの要素数" + lacertaDatabase.repositoriesDao(), Toast.LENGTH_SHORT).show();
}
}
@@ -11,4 +11,38 @@
android:layout_height="match_parent"
android:text="@string/hello_blank_fragment" />
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" />
</ScrollView>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" />
</ScrollView>
<ScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" />
</ScrollView>
<androidx.recyclerview.widget.RecyclerView
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>