account_action.xml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. Copyright (C) 2016 ownCloud
  7. This program is free software; you can redistribute it and/or
  8. modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE
  9. License as published by the Free Software Foundation; either
  10. version 3 of the License, or any later version.
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. GNU AFFERO GENERAL PUBLIC LICENSE for more details.
  15. You should have received a copy of the GNU Affero General Public
  16. License along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. -->
  18. <LinearLayout
  19. xmlns:android="http://schemas.android.com/apk/res/android"
  20. android:layout_width="fill_parent"
  21. android:layout_height="@dimen/account_action_layout_height"
  22. android:orientation="horizontal"
  23. android:weightSum="1">
  24. <ImageView
  25. android:id="@+id/user_icon"
  26. android:layout_width="wrap_content"
  27. android:layout_height="wrap_content"
  28. android:layout_gravity="center_vertical"
  29. android:layout_marginLeft="@dimen/list_item_avatar_icon_margin"
  30. android:src="@drawable/ic_account_plus"/>
  31. <TextView
  32. android:id="@+id/user_name"
  33. android:layout_width="@dimen/zero"
  34. android:layout_height="fill_parent"
  35. android:layout_marginLeft="@dimen/list_item_avatar_text_margin"
  36. android:layout_weight="1"
  37. android:gravity="center_vertical"
  38. android:paddingRight="@dimen/standard_padding"
  39. android:text="@string/placeholder_sentence"
  40. android:textColor="@color/primary"
  41. android:textSize="@dimen/two_line_primary_text_size"/>
  42. </LinearLayout>