zoukankan      html  css  js  c++  java
  • 最新一课 老师指点用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适配器便可达到我想要的

  • 相关阅读:
    解决span中的内容不换行
    javascript中apply、call和bind的区别
    vuex及其属性应用
    55.动态加载Html
    58.圆角图片
    57.动态添加子View(Java/XML两种方式)
    56.Java与js交互
    59.仿微信的图片浏览器
    64.判断当前线程是否是主线程
    61.自定义Indicator
  • 原文地址:https://www.cnblogs.com/vip-fan1234xiang/p/5008461.html
Copyright © 2011-2022 走看看