簡體   English   中英

在滾動視圖中創建布局

[英]Create a Layout in A Scroll View

我是Android的新手,我想創建此版式。 我想如何創建圖像

我已經嘗試過了,但是我不知道該怎么做。

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent" >

    <RelativeLayout
        android:id="@+id/main_relative_layout"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" >



    </RelativeLayout>
</ScrollView>

看到我使用了ScrollView,但是我無法創建設計。請幫助我

您應該為此功能使用自定義ListView ,請參見示例ListView : //www.androidhive.info/2012/02/android-custom-listview-with-image-and-text/

你需要這個

<RelativeLayout (root)>

  <LinearHayout (head)>
    ..some other UI tag for page head
  </LinearLayout>

  <ListView />
</RelativeLayout>

另外,請嘗試使用Google“ Android自定義列表視圖”了解更多詳細信息...

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM