This commit is contained in:
ろむねこ 2023-12-10 17:22:05 +09:00
parent f3cb02b6b2
commit 7b4304224b
No known key found for this signature in database
GPG Key ID: FA1F39A1BA37D168
5 changed files with 31 additions and 2 deletions

View File

@ -2,5 +2,8 @@ package one.nem.lacerta;
import android.app.Application;
import dagger.hilt.android.HiltAndroidApp;
@HiltAndroidApp
public class LacertaApplication extends Application {
}

View File

@ -10,6 +10,9 @@ import android.os.Bundle;
import com.google.android.material.bottomnavigation.BottomNavigationView;
import dagger.hilt.android.AndroidEntryPoint;
@AndroidEntryPoint
public class MainActivity extends AppCompatActivity {
@Override

View File

@ -1,6 +1,13 @@
package one.nem.lacerta.data.repository;
import javax.inject.Inject;
public class TestData {
@Inject
public TestData(){
}
public String getTestData(){
return "TestData";
}

View File

@ -7,6 +7,7 @@ import androidx.fragment.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
/**
* A simple {@link Fragment} subclass.
@ -15,6 +16,8 @@ import android.view.ViewGroup;
*/
public class DebugMenuFragment extends Fragment {
// TODO: Rename parameter arguments, choose names that match
// the fragment initialization parameters, e.g. ARG_ITEM_NUMBER
private static final String ARG_PARAM1 = "param1";
@ -61,4 +64,16 @@ public class DebugMenuFragment extends Fragment {
// Inflate the layout for this fragment
return inflater.inflate(R.layout.fragment_debug_menu, container, false);
}
@Override
public void onViewCreated(View view, Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
Button button = view.findViewById(R.id.button_di_test);
// Lambda
button.setOnClickListener(v -> {
}
}
}

View File

@ -14,8 +14,9 @@
android:text="DebugMenu" />
<Button
android:id="@+id/button"
android:id="@+id/button_di_test"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
android:text="DiTest" />
</LinearLayout>