session-android/res/layout/activity_home.xml

96 lines
3.7 KiB
XML
Raw Normal View History

2019-12-17 14:27:59 +01:00
<?xml version="1.0" encoding="utf-8"?>
2020-01-06 02:07:55 +01:00
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
2019-12-17 14:27:59 +01:00
android:layout_width="match_parent"
android:layout_height="match_parent"
2020-01-06 02:07:55 +01:00
android:orientation="vertical"
android:background="@drawable/default_session_background"
xmlns:app="http://schemas.android.com/apk/res-auto">
2019-12-17 14:27:59 +01:00
2020-01-06 02:07:55 +01:00
<android.support.v7.widget.Toolbar
android:id="@+id/toolbar"
2019-12-17 14:27:59 +01:00
android:layout_width="match_parent"
2020-01-06 02:07:55 +01:00
android:layout_height="?attr/actionBarSize"
android:minHeight="?attr/actionBarSize"
app:contentInsetLeft="20dp"
app:contentInsetRight="20dp"
android:theme="?attr/actionBarStyle">
2019-12-17 14:27:59 +01:00
2020-01-06 02:07:55 +01:00
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent">
<org.thoughtcrime.securesms.loki.redesign.views.ProfilePictureView
android:id="@+id/profileButton"
android:layout_width="@dimen/small_profile_picture_size"
android:layout_height="@dimen/small_profile_picture_size"
2020-01-07 04:51:11 +01:00
android:layout_marginLeft="10dp"
2020-01-06 04:26:52 +01:00
android:layout_alignParentLeft="true"
2020-01-07 02:00:30 +01:00
android:layout_centerVertical="true" />
2020-01-06 02:07:55 +01:00
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Messages"
android:textColor="@color/text"
android:textSize="@dimen/very_large_font_size"
android:fontFamily="sans-serif-medium"
2020-01-06 04:26:52 +01:00
android:layout_alignParentLeft="true"
2020-01-06 02:07:55 +01:00
android:layout_centerVertical="true"
2020-01-06 04:26:52 +01:00
android:layout_marginLeft="64dp" />
2020-01-06 02:07:55 +01:00
<ImageView
android:id="@+id/joinPublicChatButton"
android:layout_width="24dp"
android:layout_height="24dp"
android:src="@drawable/ic_globe"
2020-01-06 04:26:52 +01:00
android:layout_alignParentRight="true"
2020-01-06 02:07:55 +01:00
android:layout_centerVertical="true" />
</RelativeLayout>
</android.support.v7.widget.Toolbar>
2019-12-17 14:27:59 +01:00
<RelativeLayout
2020-01-06 02:07:55 +01:00
android:layout_width="match_parent"
android:layout_height="match_parent">
<android.support.v7.widget.RecyclerView
android:id="@+id/recyclerView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<!-- The button below intentionally uses dp for the text size and not sp -->
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerHorizontal="true"
android:layout_alignParentBottom="true"
android:layout_marginBottom="@dimen/new_conversation_button_bottom_offset">
<View
android:layout_width="72dp"
android:layout_height="72dp"
android:background="@drawable/new_conversation_button_background" />
<Button
android:id="@+id/newConversationButton"
android:layout_width="@dimen/new_conversation_button_size"
android:layout_height="@dimen/new_conversation_button_size"
android:layout_centerInParent="true"
android:paddingLeft="1dp"
android:paddingBottom="2dp"
android:background="@drawable/new_conversation_button_foreground"
android:fontFamily="@font/roboto_light"
android:textSize="40dp"
android:textColor="#121212"
android:text="+"
android:elevation="0dp"
android:stateListAnimator="@null" />
</RelativeLayout>
2019-12-17 14:27:59 +01:00
</RelativeLayout>
2020-01-06 02:07:55 +01:00
</LinearLayout>