谁能告诉我这个Android前后端用的什么架构?

下面项目的架构是什么?为什么那么复杂?
原本想跟着实例学习,没想到实例是那么复杂,而且看起来找不到逻辑,学习编程真的很难啊!

img

img

不知道你这个问题是否已经解决, 如果还没有解决的话:
  • 这有个类似的问题, 你可以参考下: https://ask.csdn.net/questions/272113
  • 这篇博客你也可以参考下:转行Android后第一次面试某鹅被坑,那些一毕业就进大厂的程序员,有哪些秘诀?
  • 除此之外, 这篇博客: Android中单选按钮的相关知识点中的 当我们让用户选择完后,我们需要获取到用户选择的是哪一项。可以使用以下方式获取 部分也许能够解决你的问题, 你可以仔细阅读以下内容或者直接跳转源博客中阅读:
    public class MainActivity extends AppCompatActivity implements View.OnClickListener {
    
        private RadioGroup rg_root;
        private Button bt_look;
    
        @Override
        protected void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.activity_main);
            rg_root = findViewById(R.id.rg_root);
            bt_look = findViewById(R.id.bt_look);
            bt_look.setOnClickListener(this);
            rg_root.check(R.id.rb_one);
        }
    
        @Override
        public void onClick(View view) {
            switch (view.getId()){
                case R.id.bt_look:
                    if (rg_root.getCheckedRadioButtonId() == R.id.rb_one){
                        Toast.makeText(this,"第一项",Toast.LENGTH_LONG).show();
                    }else if (rg_root.getCheckedRadioButtonId() == R.id.rb_two){
                        Toast.makeText(this,"第二项",Toast.LENGTH_LONG).show();
                    }else if (rg_root.getCheckedRadioButtonId() == R.id.rb_three){
                        Toast.makeText(this,"第三项",Toast.LENGTH_LONG).show();
                    }
                    break;
            }
        }
    }
    <?xml version="1.0" encoding="utf-8"?>
    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:orientation="vertical">
        <RadioGroup
            android:id="@+id/rg_root"
            android:layout_width="match_parent"
            android:layout_height="wrap_content">
            <RadioButton
                android:id="@+id/rb_one"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="第一项"/>
    
            <RadioButton
                android:id="@+id/rb_two"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="第二项"/>
    
            <RadioButton
                android:id="@+id/rb_three"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="第三项"/>
        </RadioGroup>
    
        <Button
            android:id="@+id/bt_look"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:text="看结果"/>
    </LinearLayout>
  • 您还可以看一下 赵龙老师的Android 企业应用系列开发教程课程中的 线性布局实现 输入用户名 与密码的基本排版功能小节, 巩固相关知识点

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^