Files
comaps/android/app/src/main/res/layout/fragment_osm_profile.xml
2025-08-16 11:04:30 +02:00

148 lines
6.4 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<com.google.android.material.appbar.MaterialToolbar
android:id="@+id/toolbar"
style="@style/MwmWidget.ToolbarStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="?colorPrimary"
android:gravity="end|center_vertical"
android:theme="@style/MwmWidget.ToolbarTheme"
tools:ignore="UnusedAttribute">
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/logout"
android:layout_width="?actionBarSize"
android:layout_height="?actionBarSize"
android:layout_gravity="end|center_vertical"
android:background="?selectableItemBackgroundBorderless"
android:scaleType="center"
app:srcCompat="@drawable/ic_logout"
android:contentDescription="@string/logout" />
</com.google.android.material.appbar.MaterialToolbar>
<FrameLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:padding="@dimen/margin_base"
android:background="?colorPrimary">
<ProgressBar
android:id="@+id/user_profile_loading"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:indeterminateTint="@color/text_light"
android:visibility="invisible"
tools:visibility="visible" />
<LinearLayout
android:id="@+id/block_user_info"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="horizontal">
<com.google.android.material.imageview.ShapeableImageView
android:id="@+id/user_profile_image"
android:layout_width="100dp"
android:layout_height="match_parent"
android:importantForAccessibility="no"
app:srcCompat="@drawable/profile_generic" />
<LinearLayout
android:id="@+id/text"
android:layout_marginStart="@dimen/margin_base"
android:layout_width="0dp"
android:layout_weight="1"
android:layout_height="wrap_content"
android:orientation="vertical">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/user_profile_name"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textColor="@color/text_light"
tools:ignore="UnusedAttribute"
android:breakStrategy="balanced"
android:autoSizeMinTextSize="@dimen/text_size_body_3"
android:autoSizeTextType="uniform"
android:textSize="25sp"
tools:text="Long Username" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/user_sent_edits"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textColor="@color/text_light"
android:textSize="35sp"
android:textStyle="bold"
tools:text="2,000,000" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/verified_changes_text"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="@dimen/text_size_body_1"
android:text="@string/editor_profile_changes"
android:textColor="@color/white_primary" />
</LinearLayout>
</LinearLayout>
</FrameLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:id="@+id/buttons_container"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1">
<com.google.android.material.textview.MaterialTextView
android:id="@+id/osm_history"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:background="?clickableBackground"
android:gravity="center"
android:layout_marginTop="@dimen/margin_base"
android:layout_marginStart="@dimen/margin_base"
android:layout_marginEnd="@dimen/margin_base"
android:paddingTop="@dimen/margin_half"
android:paddingBottom="@dimen/margin_half"
android:text="@string/editor_osm_history"
android:textAppearance="@style/MwmTextAppearance.Body2"
android:textColor="?colorSecondary"
app:layout_constraintTop_toTopOf="parent" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/osm_notes"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:background="?clickableBackground"
android:gravity="center"
android:layout_marginStart="@dimen/margin_base"
android:layout_marginEnd="@dimen/margin_base"
android:paddingTop="@dimen/margin_half"
android:paddingBottom="@dimen/margin_half"
android:text="@string/editor_osm_notes"
android:textAppearance="@style/MwmTextAppearance.Body2"
android:textColor="?colorSecondary"
app:layout_constraintTop_toBottomOf="@id/osm_history" />
<com.google.android.material.textview.MaterialTextView
android:id="@+id/about_osm"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="?clickableBackground"
android:gravity="center"
android:layout_marginStart="@dimen/margin_base"
android:layout_marginEnd="@dimen/margin_base"
android:layout_marginBottom="@dimen/margin_base"
android:paddingTop="@dimen/margin_half"
android:paddingBottom="@dimen/margin_half"
android:text="@string/editor_more_about_osm"
android:textAppearance="@style/MwmTextAppearance.Body3"
android:textColor="?colorSecondary"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintTop_toBottomOf="@+id/osm_notes"
app:layout_constraintVertical_bias="1" />
</androidx.constraintlayout.widget.ConstraintLayout>
</LinearLayout>