Newer
Older
CitrusClient / app / src / main / java / com / example / citrusclient / views / TestActivity.java
t-watanabe on 8 Oct 942 bytes カレンダーの機能修正
  1. package com.example.citrusclient.views;
  2.  
  3. import android.os.Bundle;
  4.  
  5. import androidx.activity.EdgeToEdge;
  6. import androidx.appcompat.app.AppCompatActivity;
  7. import androidx.core.graphics.Insets;
  8. import androidx.core.view.ViewCompat;
  9. import androidx.core.view.WindowInsetsCompat;
  10.  
  11. import com.example.citrusclient.R;
  12.  
  13. import com.example.citrusclient.Citrus;
  14.  
  15. public class TestActivity extends AppCompatActivity {
  16. @Override
  17. protected void onCreate(Bundle savedInstanceState) {
  18. super.onCreate(savedInstanceState);
  19. setContentView(R.layout.activity_test);
  20.  
  21. Citrus citrus = (Citrus)getApplication();
  22. citrus.setCurLookingAccountId("tako");
  23. citrus.setCurLookingBookId(2);
  24.  
  25.  
  26. if (savedInstanceState == null) {
  27. getSupportFragmentManager().beginTransaction()
  28. .replace(R.id.fragment_container, new OtherCalendarFragment())
  29. .commit();
  30. }
  31. }
  32. }