activity_home.xml 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent">
  6. <com.duolingo.open.rtlviewpager.RtlViewPager
  7. android:id="@+id/viewPager"
  8. android:layout_width="match_parent"
  9. android:layout_height="0dp"
  10. app:layout_constraintBottom_toTopOf="@+id/rg"
  11. app:layout_constraintTop_toTopOf="parent" />
  12. <RadioGroup
  13. android:id="@+id/rg"
  14. android:layout_width="match_parent"
  15. android:layout_height="50dp"
  16. android:gravity="center_vertical"
  17. android:orientation="horizontal"
  18. app:layout_constraintBottom_toBottomOf="parent">
  19. <RadioButton
  20. android:id="@+id/rbHome"
  21. android:layout_width="0dp"
  22. android:layout_height="wrap_content"
  23. android:checked="true"
  24. android:layout_weight="1"
  25. android:button="@null"
  26. android:drawableTop="@drawable/selector_home"
  27. android:paddingTop="15dp" />
  28. <RadioButton
  29. android:id="@+id/rbMessage"
  30. android:layout_width="0dp"
  31. android:layout_height="wrap_content"
  32. android:layout_weight="1"
  33. android:button="@null"
  34. android:drawableTop="@drawable/selector_message"
  35. android:paddingTop="15dp" />
  36. <RadioButton
  37. android:id="@+id/rbMine"
  38. android:layout_width="0dp"
  39. android:layout_height="wrap_content"
  40. android:layout_weight="1"
  41. android:button="@null"
  42. android:drawableTop="@drawable/selector_mine"
  43. android:paddingTop="15dp" />
  44. </RadioGroup>
  45. </androidx.constraintlayout.widget.ConstraintLayout>