mirror of
https://github.com/lacerta-doc/Lacerta.git
synced 2026-11-02 11:37:37 +00:00
パッケージ構成変更
This commit is contained in:
16 files changed
+40
-264
No files matched your search
+6
-1
@@ -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>
|
||||
Reference in new issue
Block a user