Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <RelativeLayout
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- tools:context="com.vuqo.shopogram.SellerProductsActivity">
- <android.support.v7.widget.Toolbar
- android:id="@+id/sltoolbar"
- android:layout_width="match_parent"
- android:layout_height="?attr/actionBarSize"
- android:background="?attr/colorPrimary"
- app:theme="@style/ThemeOverlay.AppCompat.Dark.ActionBar"
- app:titleTextColor="@color/white"
- app:title="Satıcı"
- app:popupTheme="@style/AppTheme.PopupOverlay">
- </android.support.v7.widget.Toolbar>
- <android.support.v4.widget.NestedScrollView
- android:id="@+id/slscroll"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:layout_above="@id/add_sell_detail"
- android:layout_below="@id/sltoolbar">
- <LinearLayout
- android:orientation="vertical"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <RelativeLayout
- android:background="@color/white"
- android:layout_width="match_parent"
- android:layout_height="match_parent">
- <ImageView
- android:id="@+id/backImage2"
- android:layout_width="match_parent"
- android:layout_height="200dp"
- android:layout_alignParentLeft="true"
- android:layout_alignParentStart="true"
- android:layout_alignParentTop="true"
- android:scaleType="centerCrop"
- android:src="@drawable/backimg" />
- <com.vuqo.shopogram.CircleImage
- android:id="@+id/shop_image"
- android:layout_width="100dp"
- android:layout_height="100dp"
- android:layout_alignParentTop="true"
- android:layout_centerHorizontal="true"
- android:layout_marginTop="150dp"
- android:contentDescription="@string/todo"
- android:scaleType="fitCenter"
- android:src="@drawable/user" />
- <TextView
- android:id="@+id/nameofshop"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:layout_below="@id/shop_image"
- android:layout_centerHorizontal="true"
- android:padding="5dp"
- android:text="@string/todo"
- android:textColor="@color/black"
- android:textSize="16sp" />
- <TextView
- android:id="@+id/shop_descCard"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@id/nameofshop"
- android:background="@color/white"
- android:padding="10dp"
- android:text="@string/todo"
- android:textColor="@color/black"
- android:textSize="18sp" />
- </RelativeLayout>
- <LinearLayout
- android:id="@+id/filtersLinear"
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:layout_below="@id/shop_descCard"
- android:layout_marginTop="10dp"
- android:orientation="horizontal"
- android:paddingEnd="10dp"
- android:paddingLeft="10dp"
- android:paddingRight="10dp"
- android:paddingStart="10dp">
- <android.support.v7.widget.AppCompatSpinner
- android:id="@+id/pricefilterspin"
- android:layout_width="0dp"
- android:layout_height="40dp"
- android:layout_gravity="center_vertical"
- android:layout_weight="3">
- </android.support.v7.widget.AppCompatSpinner>
- <Button
- android:id="@+id/viewchange"
- android:layout_width="40dp"
- android:layout_height="40dp"
- android:background="@drawable/list" />
- <Button
- android:id="@+id/filterbutton"
- android:layout_width="40dp"
- android:layout_height="40dp"
- android:layout_marginLeft="5dp"
- android:layout_marginStart="5dp"
- android:background="@drawable/filter" />
- </LinearLayout>
- <RelativeLayout
- android:layout_width="match_parent"
- android:layout_height="1000dp">
- <android.support.v7.widget.RecyclerView
- android:id="@+id/shop_recycler"
- android:layout_width="match_parent"
- android:layout_height="wrap_content">
- </android.support.v7.widget.RecyclerView>
- </RelativeLayout>
- <ProgressBar
- android:id="@+id/sellerprprogress"
- android:layout_width="wrap_content"
- android:layout_gravity="center"
- android:layout_height="wrap_content" />
- <TextView
- android:id="@+id/empty_seller_products"
- android:layout_width="wrap_content"
- android:layout_gravity="center"
- android:layout_height="wrap_content"
- android:text="@string/m_hsul_tap_lmad"
- android:textColor="@color/black"
- android:textSize="20sp"
- android:visibility="gone" />
- </LinearLayout>
- </android.support.v4.widget.NestedScrollView>
- </RelativeLayout>
- list = new ArrayList<>();
- recyclerView = findViewById(R.id.shop_recycler);
- recyclerView.setHasFixedSize(true);
- recyclerView.setLayoutManager(grid);
- recyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {
- @Override
- public void onScrollStateChanged(RecyclerView recyclerView, int newState) {
- super.onScrollStateChanged(recyclerView, newState);
- if(adapter.isEnd()){
- if(page<pages)
- page++;
- query.setPage(page);
- UpdateList();
- adapter.setEnd(false);
- }
- }
- });
Add Comment
Please, Sign In to add comment