【范承达:移动培训大作业】继续!!!进移动!!!!
待办APP的设计
srgg曾说,这次的待办APP是用来记录某些“重大事情”的,和备忘录的形式差不多吧,所以我打算按照这个的方式设计,但是呢,我这一看,好像有亿点难,尽力吧。
到此完成的项目
- 第一次培训的登录注册界面(我就直接套用了),但是那个登录保持我还是没有完成,上个星期尝试过很长时间,但也没有找到正确的代码,报错到处都是,只有你想不到,没有它做不到。
- 第二次培训的滚动页面成功了,但是却不能点击,再试试吧。
我扩展完成的步骤
-
第一次培训中,扩展作业是实现页面跳转,这个尝试挺多吧,但是我差不多已经摸清了代码的大概思路。
Button button3 = findViewById(R.id.button3); button3.setOnClickListener(v -> { Toast toast = Toast.makeText(getApplicationContext(), "登录成功!", Toast.LENGTH_SHORT); toast.show(); Intent intent = new Intent(); intent.setClass(MainActivity.this, MainActivity3.class); startActivity(intent); });
也实现了反复跳转。
- 还有这次培训的漂浮按钮,也是弄出来了,虽然没啥用。
<com.google.android.material.floatingactionbutton.FloatingActionButton android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_gravity="bottom|end|center" android:layout_margin="18dp" android:elevation="20dp" android:src="@mipmap/kfdz" app:backgroundTint="#0882f4" app:layout_constraintBottom_toBottomOf="parent" app:layout_constraintEnd_toEndOf="parent" />
- 第一次培训还多插入了一些图片、背景、颜色等等,都是小事。
作业思路
说实话,到现在我并没有想出来多少好的思路,并不知道下一步需要做什么,只能是在一次次的培训过程中去寻找一些灵感,看看还需要加什么,加什么合适,继续努力吧。