安卓学生练手简易项目:
四大名著的点击显示
第一个Activity:
<ImageView
android:id="@+id/img"
android:layout_width="match_parent"
android:layout_height="300dp"
android:layout_gravity="center"
android:src="@drawable/x"/>
<RadioGroup
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/gp"
>
<RadioButton
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/x"
android:text="西游记"
android:textSize="30sp"/>
<RadioButton
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/s"
android:text="水浒传"
android:textSize="30sp"/>
<RadioButton
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/sg"
android:text="三国演义"
android:textSize="30sp"/>
<RadioButton
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/h"
android:text="红楼梦"
android:textSize="30sp"/>
</RadioGroup>
<Button
android:id="@+id/bt"
android:layout_width="
安卓实践:四大名著应用开发

这篇博客介绍了一个适合安卓学生练习的简易项目——四大名著应用。通过创建两个Activity,实现点击显示四大名著的详细信息。第一个Activity包含了ImageView、RadioGroup和Button等组件的交互逻辑,而第二个Activity则展示具体的书籍信息。
最低0.47元/天 解锁文章
930

被折叠的 条评论
为什么被折叠?



