安卓学生练习简易项目:四大名著

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

安卓学生练手简易项目:
四大名著的点击显示
第一个Activity:

<?xml version="1.0" encoding="utf-8"?>

<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="
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值