• 四则运算第二次冲刺


    最新一课 老师指点用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适配器便可达到我们团队想要的,可以加进去实现小小的功能

  • 相关阅读:
    POJ1028 Web Navigation【堆栈+模拟】
    UVa10276 HDU1329 ZOJ1239 Hanoi Tower Troubles Again!【递推函数+打表】
    UVALive5369 UVa732 HDU1515 ZOJ1004 Anagrams by Stack【DFS+堆栈】
    HDU5776 sum【前缀和+模除】
    POJ1844 Sum【水题+数学题】
    AOJ0558 Cheese【BFS】
    POJ3009 Curling 2.0【DFS】
    HDU1163 Eddy's digital Roots(解法二)【快速模幂+九余数定理】
    HDU1210 Eddy's 洗牌问题【递推函数+模拟】
    Vijos P1571 笨笨的导弹攻击【最长上升子序列+DP】
  • 原文地址:https://www.cnblogs.com/zengwei35/p/5009732.html
Copyright © 2020-2023  润新知