Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.11 KB | None | 0 0
  1. xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:tools="http://schemas.android.com/tools"
  3. android:id="@+id/scrollView1"
  4. android:layout_width="fill_parent"
  5. android:layout_height="match_parent">
  6.  
  7.  
  8.  
  9. <LinearLayout
  10.  
  11. android:layout_width="match_parent"
  12. android:layout_height="match_parent"
  13. android:padding="6dp"
  14. android:orientation="vertical"
  15. android:id="@+id/imagetest"
  16. >
  17.  
  18. <LinearLayout
  19.  
  20. android:layout_width="match_parent"
  21. android:layout_height="wrap_content"
  22. android:padding="1dp"
  23. android:orientation="vertical"
  24. >
  25. <android.support.v7.widget.RecyclerView
  26.  
  27. android:layout_height="match_parent"
  28. android:layout_width="match_parent"
  29. android:id="@+id/rv">
  30. </android.support.v7.widget.RecyclerView>
  31.  
  32. </LinearLayout>
  33.  
  34. </LinearLayout>
  35.  
  36. v = inflater.inflate(R.layout.home_fragment,container,false);
  37. rv=(RecyclerView)v.findViewById(R.id.rv);
  38. tv=(TextView)v.findViewById(R.id.tv_recommendlist_response);
  39. tabLayout=(TabLayout)getActivity().findViewById(R.id.tab_layout);
  40.  
  41. LinearLayoutManager llm = new LinearLayoutManager(getActivity(), LinearLayoutManager.VERTICAL,false);
  42.  
  43.  
  44. ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(getActivity())
  45. .build();
  46. ImageLoader.getInstance().init(config);
  47.  
  48. rv.setLayoutManager(llm);
  49. rv.setHasFixedSize(true);
  50.  
  51.  
  52. getRecommendation();
  53.  
  54. return v;
  55. }
  56.  
  57. xmlns:tools="http://schemas.android.com/tools"
  58. android:layout_width="match_parent"
  59. android:layout_height="match_parent"
  60. xmlns:app="http://schemas.android.com/apk/res-auto"
  61. tools:context=".MainActivity"
  62. >
  63.  
  64. <android.support.v4.widget.DrawerLayout
  65.  
  66. xmlns:tools="http://schemas.android.com/tools"
  67. xmlns:app="http://schemas.android.com/apk/res-auto"
  68. android:id="@+id/drawer"
  69. android:layout_width="match_parent"
  70. android:layout_height="match_parent"
  71. android:fitsSystemWindows="true"
  72. tools:context=".MainActivity">
  73.  
  74. <!--<LinearLayout-->
  75. <!--android:layout_height="match_parent"-->
  76. <!--android:layout_width="match_parent"-->
  77. <!--android:orientation="vertical"-->
  78. <!-->-->
  79. <!--<include-->
  80. <!--android:id="@+id/toolbar"-->
  81. <!--layout="@layout/toolbar"-->
  82. <!--/>-->
  83.  
  84. <LinearLayout
  85.  
  86. android:layout_width="wrap_content"
  87. android:layout_height="wrap_content"
  88. android:orientation="vertical"
  89. >
  90. <include layout="@layout/toolbar"
  91. android:id="@+id/toolbar"/>
  92.  
  93. <!--<FrameLayout-->
  94. <!--android:id="@+id/frame"-->
  95. <!--android:layout_width="match_parent"-->
  96. <!--android:layout_height="wrap_content"> -->
  97. <!---->
  98. <!--</FrameLayout>-->
  99.  
  100. <!--android:layout_width="match_parent"-->
  101. <!--android:layout_height="wrap_content"-->
  102. <!--android:background="@color/colorPrimary"-->
  103. <!--android:src="@drawable/matrimonialportal"/>-->
  104.  
  105. <android.support.design.widget.TabLayout
  106.  
  107. android:background="@color/colorPrimary"
  108. android:layout_alignParentTop="true"
  109. android:id="@+id/tab_layout"
  110. android:layout_width="match_parent"
  111. android:layout_height="56dp"
  112. app:tabTextColor="#ffffff"
  113. app:tabSelectedTextColor="@color/white"
  114. app:tabIndicatorColor="#ffffff"
  115. app:tabMode="scrollable"
  116.  
  117. >
  118. </android.support.design.widget.TabLayout>
  119.  
  120. <android.support.v4.view.ViewPager
  121.  
  122. android:layout_below="@id/tab_layout"
  123. android:id="@+id/view_pager"
  124. android:layout_width="match_parent"
  125. android:layout_height="match_parent"
  126. />
  127. </LinearLayout>
  128.  
  129. <!--</LinearLayout>-->
  130.  
  131. <!-- The navigation drawer -->
  132.  
  133. <android.support.design.widget.NavigationView
  134.  
  135. android:id="@+id/navigation_view"
  136. android:layout_height="match_parent"
  137. android:layout_width="wrap_content"
  138. android:layout_gravity="start"
  139. app:menu="@menu/drawer"
  140. app:itemTextColor="#666666"
  141. app:headerLayout="@layout/header"
  142.  
  143. />
  144. <!---->
  145.  
  146. </android.support.v4.widget.DrawerLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement