tools_ctool_bar.xml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. tools:layout_height="?android:attr/actionBarSize">
  8. <androidx.appcompat.widget.AppCompatTextView
  9. android:id="@+id/tv_tool_bar_title"
  10. android:layout_width="wrap_content"
  11. android:layout_height="wrap_content"
  12. android:layout_marginStart="10dp"
  13. android:layout_marginEnd="24dp"
  14. android:fontFamily="sans-serif-medium"
  15. android:textColor="?android:attr/textColorPrimary"
  16. android:textSize="22sp"
  17. app:layout_constrainedWidth="true"
  18. tools:text="ComPDFKit"
  19. app:layout_constraintBottom_toBottomOf="parent"
  20. app:layout_constraintEnd_toEndOf="parent"
  21. app:layout_constraintHorizontal_bias="0"
  22. app:layout_constraintStart_toEndOf="@id/iv_tool_bar_back"
  23. app:layout_constraintTop_toTopOf="parent"
  24. />
  25. <androidx.appcompat.widget.AppCompatImageView
  26. android:id="@+id/iv_tool_bar_back"
  27. android:layout_width="40dp"
  28. android:layout_height="40dp"
  29. android:layout_marginStart="8dp"
  30. android:padding="6dp"
  31. android:background="@drawable/tools_common_oval_ripple"
  32. app:layout_constraintBottom_toBottomOf="parent"
  33. app:layout_constraintDimensionRatio="1:1"
  34. app:layout_constraintStart_toStartOf="parent"
  35. app:layout_constraintTop_toTopOf="parent"
  36. app:srcCompat="@drawable/tools_ic_back"
  37. app:tint="?attr/colorOnPrimary" />
  38. </androidx.constraintlayout.widget.ConstraintLayout>