رفتن به مطلب
  • 0

ست کردن اسکرول ویو


Ali BBH

سوال

سلام دوستان شبتون بخیر

من یه لایوت طراحی کردم داخل برنامم که تولبار داره اپ بار داره زیر اپ بار یه تب لایوت و ویوپیجر گذاشتم داخل یکی از ویو پیج ها یه فرگمنت لود کردم و داخل فرگمنت گرید ویو گذاشتم و یسری عکسو از سرور گرفتم داخلش نمایش دادم الان اسکرول رو گرید ویو هستش که من اومدم اسکرول ویوی خوده گرید ویو رو غیر فعال کردم بعد هرکاری کردم به کل لایوت main که طراحی کردم اسکرول ویو بدم ست نمیشه یا صفحه قفله اسکرول اعمال نمیشه رو لایوت یا محتویات ویو پیجر ها لود نمیشن

<?xml version="1.0" encoding="utf-8"?>

<LinearLayout
    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"
    tools:context="com.nerve.ir.Main"
    android:orientation="vertical"

   >



    <android.support.v7.widget.Toolbar
        android:layout_width="match_parent"
        android:layout_height="?attr/actionBarSize"
        android:background="@color/colorPrimaryDark">

        <LinearLayout
            android:layout_width="match_parent"
            android:layout_height="match_parent"
            android:layout_marginRight="15dp"
            android:gravity="center"
            android:orientation="horizontal"
            android:weightSum="5">

            <TextView
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight="4.5"
                android:text="Siavash.Ngh1"
                android:textColor="#fff"
                android:textSize="20dp" />

            <ImageView
                android:layout_width="0dp"
                android:layout_height="wrap_content"
                android:layout_weight=".5"
                android:src="@drawable/ic_settings" />


        </LinearLayout>

    </android.support.v7.widget.Toolbar>


    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical">

        <android.support.design.widget.AppBarLayout
            android:id="@+id/appbar"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar">



            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="200dp"
                android:background="#fff"
                android:gravity="center"
                android:orientation="vertical"
                android:weightSum="3">

                <de.hdodenhof.circleimageview.CircleImageView
                    android:layout_width="wrap_content"
                    android:layout_height="0dp"
                    android:layout_weight="1.5"
                    android:src="@drawable/photo_s" />

                <TextView
                    android:layout_width="match_parent"
                    android:layout_height="0dp"
                    android:layout_margin="5dp"
                    android:layout_weight=".5"
                    android:gravity="center"
                    android:text="siavash Khorram"
                    android:textColor="#7b7b7b" />

                <LinearLayout
                    android:layout_width="match_parent"
                    android:layout_height="0dp"
                    android:layout_weight=".5"
                    android:gravity="center"
                    android:orientation="horizontal"
                    android:weightSum="3">

                    <TextView
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:text="Followers 1"
                        android:textColor="#000"
                        android:textSize="17dp" />

                    <TextView
                        android:layout_width=".1dp"
                        android:layout_height="match_parent"
                        android:layout_weight=".01"
                        android:background="#737373"
                        android:gravity="center" />

                    <TextView
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:text="Following 1"
                        android:textColor="#000"
                        android:textSize="17dp" />

                    <TextView
                        android:layout_width=".1dp"
                        android:layout_height="match_parent"
                        android:layout_weight=".01"
                        android:background="#737373"
                        android:gravity="center" />

                    <TextView
                        android:layout_width="0dp"
                        android:layout_height="wrap_content"
                        android:layout_weight="1"
                        android:gravity="center"
                        android:text="Coin 300"
                        android:textColor="#000"
                        android:textSize="17dp" />

                </LinearLayout>

            </LinearLayout>

            <android.support.design.widget.TabLayout
                android:id="@+id/tablayout"
                android:layout_width="match_parent"
                android:layout_height="?attr/actionBarSize"
                android:background="#fff"
                app:tabMode="fixed"
                app:tabSelectedTextColor="#000"
                app:tabTextColor="#000"></android.support.design.widget.TabLayout>

        </android.support.design.widget.AppBarLayout>

        <android.support.v4.view.ViewPager
            android:id="@+id/viewpager_main"
            android:layout_width="match_parent"
            android:layout_height="fill_parent"
            app:layout_behavior="@string/appbar_scrolling_view_behavior">

        </android.support.v4.view.ViewPager>

    </LinearLayout>


</LinearLayout>

الان من چجوری میتونم به این لاویت اسکرول بدم اولو اخرش هرکاری کردم هرچی اسکرول ویو گذاشتم نشده که نشده ممنون میشم راهنمایی کنید :heart:

لینک ارسال
به اشتراک گذاری در سایت های دیگر

0 پاسخ به این سوال تاکنون داده شده است

ارسال‌های توصیه شده

هنوز برای این سوال پاسخی ارسال نشده است

بایگانی شده

این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.

  • کاربران آنلاین در این صفحه   0 کاربر

    • هیچ کاربر عضوی،در حال مشاهده این صفحه نیست.
×
×
  • اضافه کردن...