• 最新一课 老师指点用Listview适配器


    上课前

    <?xml version="1.0" encoding="utf-8"?>
        <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"  
         android:layout_width="fill_parent"  
         android:layout_height="fill_parent"  
         android:fadingEdge="vertical">  
        <RelativeLayout  
          android:layout_width="fill_parent"   
          android:layout_height="wrap_content">  

             
                <ImageButton
                    android:id="@+id/byButton1"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_alignParentLeft="true"
                    android:layout_alignParentTop="true"
                    android:src="@drawable/empty_p" />

                <ImageButton
                    android:id="@+id/byButton2"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_below="@+id/byButton1"
                    android:src="@drawable/empty_p" />

                <ImageButton
                    android:id="@+id/byButton3"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_below="@+id/byButton2"
                    android:src="@drawable/empty_p" />

                <ImageButton
                    android:id="@+id/byButton4"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_below="@+id/byButton3"
                    android:src="@drawable/empty_p" />

                <ImageButton
                    android:id="@+id/byButton5"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_below="@+id/byButton4"
                    android:src="@drawable/empty_p" />

                <ImageButton
                    android:id="@+id/byButton6"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_below="@+id/byButton5"
                    android:src="@drawable/empty_p" />

                <ImageButton
                    android:id="@+id/byButton7"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_below="@+id/byButton6"
                    android:src="@drawable/empty_p" />

                <ImageButton
                    android:id="@+id/byButton8"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_below="@+id/byButton7"
                    android:src="@drawable/empty_p" />

                <ImageButton
                    android:id="@+id/byButton9"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"
                    android:layout_below="@+id/byButton8"
                    android:src="@drawable/empty_p" />          
            
        </RelativeLayout>  
        </ScrollView> 

    上完课后知道用Listview适配器便可达到我想要的

  • 相关阅读:
    (1)定义一个接口Compute含有一个方法int computer(int n,int m); (2)设计四个类分别实现此接口,完成+-*/运算 (3)设计一个类UseCompute,含有方法: public void useCom(Compute com, int one, int two) (4)设计一个测试类
    定义一个“点”(Point)类用来表示三维空间中的点(有三个坐标)。要求如下: (1)可以生成具有特定坐标的点对象。 (2)提供可以设置三个坐标的方法。 (3)提供可以计算该“点”距原点距离平方的方法。 (4)编写主类程序验证。
    编写一个Java程序,计算半径为3.0的圆周长和面积并输出结果
    Java泛型详解
    面向对象
    随机数
    随机数的产生
    随机数
    matplotlib 绘图实例01:正弦余弦曲线
    第05课 Linux命令初探(一)
  • 原文地址:https://www.cnblogs.com/vip-fan1234xiang/p/5008461.html
Copyright © 2020-2023  润新知