Advertisement
Guest User

Untitled

a guest
Jun 11th, 2016
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. <android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
  2. xmlns:app="http://schemas.android.com/apk/res-auto"
  3. android:id="@+id/card"
  4. android:layout_width="match_parent"
  5. android:layout_height="wrap_content"
  6. android:clickable="true"
  7. android:foreground="?android:attr/selectableItemBackground"
  8. app:cardCornerRadius="2dp"
  9. app:cardElevation="2dp">
  10.  
  11. <android.support.percent.PercentFrameLayout
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content">
  14.  
  15. <android.support.v4.view.ViewPager
  16. android:id="@+id/view_pager"
  17. app:layout_aspectRatio="150%"
  18. app:layout_widthPercent="100%" />
  19.  
  20. </android.support.percent.PercentFrameLayout>
  21.  
  22. </android.support.v7.widget.CardView>
  23.  
  24. Итем вьюпейджера:
  25. <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
  26. android:layout_width="match_parent"
  27. android:layout_height="match_parent">
  28.  
  29. <ImageView
  30. android:id="@+id/photo"
  31. android:scaleType="centerCrop"
  32. android:layout_width="match_parent"
  33. android:layout_height="match_parent" />
  34.  
  35. <ProgressBar
  36. android:id="@+id/progress_bar"
  37. android:layout_width="wrap_content"
  38. android:layout_height="wrap_content"
  39. android:layout_gravity="center" />
  40.  
  41. </FrameLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement