2016-11-22 120 views
-5

enter image description here如何移動列表視圖位置

我不知道如何繼續在智能手機屏幕.. 我想訂購紅色zariya欄下這些物品的頂部神韻:列表項。

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:orientation="vertical" android:layout_width="match_parent" 
android:layout_height="match_parent"> 

<ListView 
    android:id = "@id/android:list" 
    android:layout_width="match_parent" 
    android:layout_height="wrap_content" 
    android:layout_weight="1" ></ListView> 
    </LinearLayout> 
+1

發佈您的xml文件代碼 – sasikumar

+0

您是否使用工具欄? –

+0

@sasikumar我加了 – gunmuk

回答

-1
Please do this way. 

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

<android.support.v7.widget.RecyclerView 
    android:id="@+id/recyclerView" 
    android:layout_width="match_parent" 
    android:layout_height="match_parent" 
    android:paddingTop="?attr/actionBarSize" 
    android:clipToPadding="false"/> 

<android.support.v7.widget.Toolbar 
    android:id="@+id/toolbar" 
    android:layout_width="match_parent" 
    android:layout_height="?attr/actionBarSize" 
    android:background="?attr/colorPrimary"/> 

+0

謝謝,但我不知道RecyclerView和我沒有使用RecyclerView。我只是使用ListView – gunmuk

+0

,然後請使用列表視圖而不是RecyclerView並接受我的答案。它正確的答案你期望在LinearLayout中的'android:align_bottom' –

-1

或者你可以拖動工具欄下的回收站視圖。

+0

?請不要猜測......這個問題顯然不足以給出答案。 – Selvin

相關問題