0
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"
tools:context="com.example.nimeshbhalani.webservice.MainActivity"
tools:showIn="@layout/app_bar_main"
android:orientation="vertical">
<GridView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/gridview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:columnWidth="200dp"
android:gravity="center"
android:verticalSpacing="0dp"
android:horizontalSpacing="0dp"
android:numColumns="2"
android:stretchMode="columnWidth" />
<FrameLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/fragmnt"/>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
主要業務現在有網格項目我要取代這一片段 怎麼能我得到了?網格項目是在片段UI組件下。在這裏,每一次我更換片段,但GridView的包含總是揹着我片段項目UI.If有任何邏輯,所以我可以刪除以前的觀點
你需要描述你真正想達到的目標。目前還不清楚。請嘗試用可理解的意圖發佈編輯帖子。也許圖片可以幫助人們更好地理解。 –