folder_sync_item_header.xml 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Nextcloud Android client application
  4. Copyright (C) 2016 Andy Scherzinger
  5. Copyright (C) 2016 Nextcloud.
  6. This program is free software; you can redistribute it and/or
  7. modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
  8. License as published by the Free Software Foundation; either
  9. version 3 of the License, or any later version.
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. GNU AFFERO GENERAL PUBLIC LICENSE for more details.
  14. You should have received a copy of the GNU Affero General Public
  15. License along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. -->
  17. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  18. android:layout_width="match_parent"
  19. android:layout_height="wrap_content"
  20. android:paddingTop="@dimen/alternate_half_padding"
  21. android:paddingBottom="@dimen/alternate_half_padding"
  22. android:paddingLeft="@dimen/standard_padding">
  23. <TextView
  24. android:id="@+id/title"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:layout_alignBottom="@+id/buttonBar"
  28. android:layout_alignParentLeft="true"
  29. android:layout_alignTop="@+id/buttonBar"
  30. android:layout_toLeftOf="@+id/buttonBar"
  31. android:ellipsize="middle"
  32. android:gravity="start|center_vertical"
  33. android:text="Header Text"
  34. android:textColor="?android:textColorPrimary"
  35. android:textStyle="bold"/>
  36. <LinearLayout
  37. android:id="@+id/buttonBar"
  38. android:layout_width="wrap_content"
  39. android:layout_height="wrap_content"
  40. android:layout_alignParentRight="true">
  41. <ImageButton
  42. android:id="@+id/syncStatusButton"
  43. android:layout_width="wrap_content"
  44. android:layout_height="wrap_content"
  45. android:background="@color/transparent"
  46. android:clickable="true"
  47. android:padding="@dimen/standard_half_padding"
  48. android:src="@drawable/ic_cloud_sync_off"/>
  49. <ImageButton
  50. android:id="@+id/settingsButton"
  51. android:layout_width="wrap_content"
  52. android:layout_height="wrap_content"
  53. android:background="@color/transparent"
  54. android:clickable="true"
  55. android:paddingBottom="@dimen/standard_half_padding"
  56. android:paddingLeft="@dimen/standard_half_padding"
  57. android:paddingRight="@dimen/standard_padding"
  58. android:paddingTop="@dimen/standard_half_padding"
  59. android:src="@drawable/ic_dots_vertical"/>
  60. </LinearLayout>
  61. </RelativeLayout>