120 lines
4.9 KiB
XML
120 lines
4.9 KiB
XML
|
<?xml version="1.0" encoding="utf-8"?>
|
||
|
<!--
|
||
|
Copyright 2017 Thomas Schneider
|
||
|
|
||
|
This file is a part of Mastodon Etalab for mastodon.etalab.gouv.fr
|
||
|
|
||
|
This program is free software; you can redistribute it and/or modify it under the terms of the
|
||
|
GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
||
|
License, or (at your option) any later version.
|
||
|
|
||
|
Mastodon Etalab is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
||
|
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
||
|
Public License for more details.
|
||
|
|
||
|
You should have received a copy of the GNU General Public License along with Thomas Schneider; if not,
|
||
|
see <http://www.gnu.org/licenses>
|
||
|
-->
|
||
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||
|
xmlns:tools="http://schemas.android.com/tools"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="@dimen/nav_header_height"
|
||
|
android:background="@drawable/side_nav_bar"
|
||
|
android:gravity="bottom"
|
||
|
android:orientation="vertical"
|
||
|
android:paddingBottom="@dimen/activity_vertical_margin"
|
||
|
android:paddingLeft="@dimen/activity_horizontal_margin"
|
||
|
android:paddingRight="@dimen/activity_horizontal_margin"
|
||
|
android:paddingTop="@dimen/activity_vertical_margin"
|
||
|
android:theme="@style/ThemeOverlay.AppCompat.Dark">
|
||
|
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:layout_gravity="center_vertical"
|
||
|
android:gravity="center_vertical"
|
||
|
android:orientation="horizontal">
|
||
|
<ImageView
|
||
|
android:id="@+id/profilePicture"
|
||
|
android:layout_width="60dp"
|
||
|
android:layout_height="60dp"
|
||
|
tools:ignore="ContentDescription" />
|
||
|
<LinearLayout
|
||
|
android:layout_marginLeft="20dp"
|
||
|
android:layout_marginStart="20dp"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="vertical">
|
||
|
<TextView
|
||
|
android:id="@+id/displayedName"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:textSize="18sp"
|
||
|
android:textAppearance="@style/TextAppearance.AppCompat.Body1" />
|
||
|
<TextView
|
||
|
android:id="@+id/username"
|
||
|
android:layout_width="wrap_content"
|
||
|
android:textSize="14sp"
|
||
|
android:layout_height="wrap_content"
|
||
|
/>
|
||
|
</LinearLayout>
|
||
|
</LinearLayout>
|
||
|
<LinearLayout
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content"
|
||
|
android:orientation="horizontal"
|
||
|
android:baselineAligned="false">
|
||
|
<LinearLayout
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_weight="1"
|
||
|
android:orientation="vertical"
|
||
|
android:layout_height="wrap_content">
|
||
|
<TextView
|
||
|
android:text="@string/status"
|
||
|
android:textSize="12sp"
|
||
|
android:maxLines="1"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content" />
|
||
|
<TextView
|
||
|
android:textSize="12sp"
|
||
|
android:id="@+id/owner_status"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content" />
|
||
|
</LinearLayout>
|
||
|
<LinearLayout
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_weight="1"
|
||
|
android:orientation="vertical"
|
||
|
android:layout_height="wrap_content">
|
||
|
<TextView
|
||
|
android:textSize="12sp"
|
||
|
android:maxLines="1"
|
||
|
android:text="@string/following"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content" />
|
||
|
<TextView
|
||
|
android:textSize="12sp"
|
||
|
android:id="@+id/owner_following"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content" />
|
||
|
</LinearLayout>
|
||
|
<LinearLayout
|
||
|
android:layout_width="0dp"
|
||
|
android:layout_weight="1"
|
||
|
android:orientation="vertical"
|
||
|
android:layout_height="wrap_content">
|
||
|
<TextView
|
||
|
android:maxLines="1"
|
||
|
android:textSize="12sp"
|
||
|
android:text="@string/followers"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content" />
|
||
|
<TextView
|
||
|
android:textSize="12sp"
|
||
|
android:id="@+id/owner_followers"
|
||
|
android:layout_width="match_parent"
|
||
|
android:layout_height="wrap_content" />
|
||
|
</LinearLayout>
|
||
|
</LinearLayout>
|
||
|
</LinearLayout>
|