Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:tools="http://schemas.android.com/tools"
- android:id="@+id/scrollView1"
- android:layout_width="fill_parent"
- android:layout_height="match_parent">
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:padding="6dp"
- android:orientation="vertical"
- android:id="@+id/imagetest"
- >
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="wrap_content"
- android:padding="1dp"
- android:orientation="vertical"
- >
- <android.support.v7.widget.RecyclerView
- android:layout_height="match_parent"
- android:layout_width="match_parent"
- android:id="@+id/rv">
- </android.support.v7.widget.RecyclerView>
- </LinearLayout>
- </LinearLayout>
- v = inflater.inflate(R.layout.home_fragment,container,false);
- rv=(RecyclerView)v.findViewById(R.id.rv);
- tv=(TextView)v.findViewById(R.id.tv_recommendlist_response);
- tabLayout=(TabLayout)getActivity().findViewById(R.id.tab_layout);
- LinearLayoutManager llm = new LinearLayoutManager(getActivity(), LinearLayoutManager.VERTICAL,false);
- ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(getActivity())
- .build();
- ImageLoader.getInstance().init(config);
- rv.setLayoutManager(llm);
- rv.setHasFixedSize(true);
- getRecommendation();
- return v;
- }
- 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=".MainActivity"
- >
- <android.support.v4.widget.DrawerLayout
- xmlns:tools="http://schemas.android.com/tools"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- android:id="@+id/drawer"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:fitsSystemWindows="true"
- tools:context=".MainActivity">
- <!--<LinearLayout-->
- <!--android:layout_height="match_parent"-->
- <!--android:layout_width="match_parent"-->
- <!--android:orientation="vertical"-->
- <!-->-->
- <!--<include-->
- <!--android:id="@+id/toolbar"-->
- <!--layout="@layout/toolbar"-->
- <!--/>-->
- <LinearLayout
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:orientation="vertical"
- >
- <include layout="@layout/toolbar"
- android:id="@+id/toolbar"/>
- <!--<FrameLayout-->
- <!--android:id="@+id/frame"-->
- <!--android:layout_width="match_parent"-->
- <!--android:layout_height="wrap_content"> -->
- <!---->
- <!--</FrameLayout>-->
- <!--android:layout_width="match_parent"-->
- <!--android:layout_height="wrap_content"-->
- <!--android:background="@color/colorPrimary"-->
- <!--android:src="@drawable/matrimonialportal"/>-->
- <android.support.design.widget.TabLayout
- android:background="@color/colorPrimary"
- android:layout_alignParentTop="true"
- android:id="@+id/tab_layout"
- android:layout_width="match_parent"
- android:layout_height="56dp"
- app:tabTextColor="#ffffff"
- app:tabSelectedTextColor="@color/white"
- app:tabIndicatorColor="#ffffff"
- app:tabMode="scrollable"
- >
- </android.support.design.widget.TabLayout>
- <android.support.v4.view.ViewPager
- android:layout_below="@id/tab_layout"
- android:id="@+id/view_pager"
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- />
- </LinearLayout>
- <!--</LinearLayout>-->
- <!-- The navigation drawer -->
- <android.support.design.widget.NavigationView
- android:id="@+id/navigation_view"
- android:layout_height="match_parent"
- android:layout_width="wrap_content"
- android:layout_gravity="start"
- app:menu="@menu/drawer"
- app:itemTextColor="#666666"
- app:headerLayout="@layout/header"
- />
- <!---->
- </android.support.v4.widget.DrawerLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement