में सापेक्ष लेआउट मेरे पास एकाधिक "छविदृश्य" के साथ एक सापेक्ष लेआउट है और जब मैं स्क्रीन के चारों ओर घूमता हूं, तो छविदृश्य विकृत हो जाते हैं ... इसलिए मैंने इसे स्क्रॉल व्यू में लपेटने का निर्णय लिया ... लेकिन स्क्रॉल दृश्य नहीं है ' टी काम !!! क्या कोई मेरी मदद कर सकता है? मुझे पता है कि ग्रिडव्यू या लिस्टव्यू डिज़ाइन करने का सही तरीका है ... लेकिन चूंकि मेरे पास कुछ प्रश्न थे और किसी ने मुझे स्टैक ओवरफ्लो में जवाब नहीं दिया, मैंने इस तरह से जाने का फैसला किया।स्क्रॉलव्यू
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/ScrollView01"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fillViewport="true"
android:scrollbars="none" >
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<Button
android:id="@+id/continuePizza"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:text="continue" />
<Button
android:id="@+id/finishP"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/continuePizza"
android:layout_alignParentLeft="true"
android:text="finish" />
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:layout_marginTop="16dp"
android:src="@drawable/download" />
<ImageView
android:id="@+id/imageView2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/imageView1"
android:layout_marginLeft="18dp"
android:layout_toRightOf="@+id/imageView1"
android:src="@drawable/download" />
<ImageView
android:id="@+id/imageView3"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/imageView1"
android:layout_marginTop="18dp"
android:src="@drawable/download" />
<ImageView
android:id="@+id/imageView5"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/imageView3"
android:layout_centerVertical="true"
android:src="@drawable/download" />
<ImageView
android:id="@+id/imageView6"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignTop="@+id/imageView3"
android:src="@drawable/download" />
<ImageView
android:id="@+id/imageView4"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@+id/imageView5"
android:layout_marginTop="17dp"
android:src="@drawable/download" />
<ImageView
android:id="@+id/imageView7"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/imageView2"
android:layout_alignTop="@+id/imageView5"
android:layout_marginLeft="10dp"
android:src="@drawable/download" />
<ImageView
android:id="@+id/imageView8"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignLeft="@+id/imageView7"
android:layout_alignTop="@+id/imageView3"
android:src="@drawable/download" />
</RelativeLayout>
</ScrollView>
मैं अपने समाधान किया है और इतने सारे त्रुटियों का सामना करना पड़ा! यहां तक कि गतिविधि इस तरह से दिखाई नहीं देती है! :( –
त्रुटि क्या है – Ravi
मैं त्रुटियों की प्रतिलिपि बनाना चाहता था और इसलिए एप्लिकेशन को फिर से चलाने के लिए ... यह मजाकिया है कि अब कोई त्रुटि नहीं है लेकिन समस्या के लिए कोई फर्क नहीं पड़ता! मुझे अभी भी समस्या है ... –