2017-11-09 16:25:14 +00:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2017-11-17 19:09:36 +00:00
|
|
|
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-11-19 17:13:35 +00:00
|
|
|
xmlns:tools="http://schemas.android.com/tools"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="match_parent"
|
2019-05-17 11:57:29 +00:00
|
|
|
android:background="?colorPrimaryOffset"
|
2018-11-19 17:13:35 +00:00
|
|
|
android:orientation="vertical"
|
|
|
|
|
tools:context="com.habitrpg.android.habitica.ui.fragments.NavigationDrawerFragment">
|
2017-11-17 19:09:36 +00:00
|
|
|
|
2018-11-19 17:13:35 +00:00
|
|
|
<LinearLayout
|
|
|
|
|
android:id="@+id/menuHeaderView"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="64dp"
|
|
|
|
|
android:paddingLeft="16dp"
|
2019-03-08 18:51:20 +00:00
|
|
|
android:paddingRight="1dp"
|
2018-11-19 17:13:35 +00:00
|
|
|
android:layout_marginTop="16dp"
|
|
|
|
|
android:gravity="center_vertical"
|
|
|
|
|
android:orientation="horizontal">
|
2017-11-17 19:09:36 +00:00
|
|
|
|
2018-11-19 17:13:35 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.views.RoundedCornerLayout
|
|
|
|
|
android:layout_width="40dp"
|
|
|
|
|
android:layout_height="40dp"
|
2019-04-29 13:53:05 +00:00
|
|
|
android:layout_marginRight="@dimen/spacing_large"
|
|
|
|
|
android:background="@drawable/rounded_avatar_bg">
|
2018-11-19 17:13:35 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.AvatarView
|
|
|
|
|
android:id="@+id/avatarView"
|
|
|
|
|
android:layout_width="70dp"
|
|
|
|
|
android:layout_height="70dp"
|
|
|
|
|
android:layout_gravity="center"/>
|
|
|
|
|
</com.habitrpg.android.habitica.ui.views.RoundedCornerLayout>
|
|
|
|
|
<LinearLayout
|
|
|
|
|
android:layout_width="0dp"
|
|
|
|
|
android:layout_weight="1"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:layout_gravity="center_vertical"
|
|
|
|
|
android:orientation="vertical">
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/toolbarTitle"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:ellipsize="end"
|
|
|
|
|
android:maxLines="1"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
tools:text="Habitica"
|
|
|
|
|
style="@style/Body1"
|
|
|
|
|
android:textColor="@color/white"/>
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/usernameTextView"
|
|
|
|
|
android:layout_width="wrap_content"
|
2017-11-17 19:09:36 +00:00
|
|
|
android:layout_height="wrap_content"
|
2018-11-19 17:13:35 +00:00
|
|
|
android:ellipsize="end"
|
|
|
|
|
android:maxLines="1"
|
|
|
|
|
android:singleLine="true"
|
|
|
|
|
tools:text="\@username"
|
|
|
|
|
android:textSize="12sp"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
android:textColor="@color/white_80_alpha"/>
|
|
|
|
|
</LinearLayout>
|
2018-10-17 14:28:23 +00:00
|
|
|
|
2018-11-19 17:13:35 +00:00
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2019-03-08 18:51:20 +00:00
|
|
|
android:id="@+id/notificationsButtonWrapper"
|
|
|
|
|
android:layout_width="33dp"
|
2018-11-19 17:13:35 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_marginLeft="16dp">
|
2019-03-08 18:51:20 +00:00
|
|
|
<ImageView
|
|
|
|
|
android:id="@+id/notificationsButton"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="@color/transparent"
|
|
|
|
|
android:src="@drawable/menu_notifications"
|
|
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:clickable="false" />
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/notificationsBadge"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="20dp"
|
|
|
|
|
android:paddingTop="0dp"
|
|
|
|
|
android:layout_alignTop="@id/notificationsButton"
|
|
|
|
|
android:layout_alignLeft="@id/notificationsButton"
|
|
|
|
|
tools:text="1"
|
|
|
|
|
android:textColor="#FFF"
|
|
|
|
|
android:textSize="12sp"
|
|
|
|
|
android:background="@drawable/badge_circle"
|
|
|
|
|
android:layout_marginTop="-12dp"
|
|
|
|
|
android:layout_marginLeft="13dp"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
tools:visibility="visible"/>
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
android:id="@+id/messagesButtonWrapper"
|
|
|
|
|
android:layout_width="33dp"
|
|
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:layout_marginLeft="8dp">
|
2018-12-18 21:04:39 +00:00
|
|
|
<ImageView
|
2018-11-19 17:13:35 +00:00
|
|
|
android:id="@+id/messagesButton"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="@color/transparent"
|
|
|
|
|
android:src="@drawable/menu_messages"
|
2018-12-18 21:04:39 +00:00
|
|
|
android:layout_centerVertical="true"
|
|
|
|
|
android:clickable="false" />
|
2018-11-19 17:13:35 +00:00
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/messagesBadge"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="20dp"
|
|
|
|
|
android:paddingTop="0dp"
|
|
|
|
|
android:layout_alignTop="@id/messagesButton"
|
|
|
|
|
android:layout_alignLeft="@id/messagesButton"
|
|
|
|
|
tools:text="1"
|
|
|
|
|
android:textColor="#FFF"
|
|
|
|
|
android:textSize="12sp"
|
|
|
|
|
android:background="@drawable/badge_circle"
|
|
|
|
|
android:layout_marginTop="-12dp"
|
|
|
|
|
android:layout_marginLeft="13dp"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
tools:visibility="visible"/>
|
|
|
|
|
</RelativeLayout>
|
|
|
|
|
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
2018-12-14 15:33:22 +00:00
|
|
|
android:id="@+id/settingsButtonWrapper"
|
|
|
|
|
android:layout_width="43dp"
|
2018-11-19 17:13:35 +00:00
|
|
|
android:layout_height="match_parent"
|
2018-12-14 15:33:22 +00:00
|
|
|
android:paddingLeft="8dp">
|
2018-12-18 21:04:39 +00:00
|
|
|
<ImageView
|
2018-11-19 17:13:35 +00:00
|
|
|
android:id="@+id/settingsButton"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:background="@color/transparent"
|
|
|
|
|
android:src="@drawable/menu_settings"
|
|
|
|
|
android:layout_centerVertical="true"/>
|
|
|
|
|
<TextView
|
|
|
|
|
android:id="@+id/settingsBadge"
|
|
|
|
|
android:layout_width="wrap_content"
|
|
|
|
|
android:layout_height="20dp"
|
|
|
|
|
android:paddingTop="0dp"
|
|
|
|
|
android:layout_alignTop="@id/settingsButton"
|
|
|
|
|
android:layout_alignLeft="@id/settingsButton"
|
|
|
|
|
tools:text="1"
|
|
|
|
|
android:textColor="#FFF"
|
|
|
|
|
android:textSize="12sp"
|
|
|
|
|
android:background="@drawable/badge_circle"
|
|
|
|
|
android:layout_marginTop="-12dp"
|
|
|
|
|
android:layout_marginLeft="13dp"
|
|
|
|
|
android:visibility="gone"
|
|
|
|
|
tools:visibility="visible"/>
|
|
|
|
|
</RelativeLayout>
|
2017-11-17 19:09:36 +00:00
|
|
|
|
2018-11-19 17:13:35 +00:00
|
|
|
</LinearLayout>
|
2018-02-08 19:27:05 +00:00
|
|
|
<com.habitrpg.android.habitica.ui.views.social.QuestMenuView
|
|
|
|
|
android:id="@+id/questMenuView"
|
|
|
|
|
android:layout_width="match_parent"
|
|
|
|
|
android:layout_height="wrap_content"
|
|
|
|
|
android:visibility="gone"/>
|
2018-11-06 15:11:02 +00:00
|
|
|
<androidx.recyclerview.widget.RecyclerView
|
2017-11-17 19:09:36 +00:00
|
|
|
android:id="@+id/recyclerView"
|
|
|
|
|
android:layout_width="match_parent"
|
2018-11-19 17:13:35 +00:00
|
|
|
android:layout_height="match_parent"
|
|
|
|
|
android:background="@color/white"/>
|
2017-11-17 19:09:36 +00:00
|
|
|
</LinearLayout>
|