You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

213 lines
9.3 KiB

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout 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:id="@+id/info"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".ui.main.ui.info.InfoFragment">
<androidx.core.widget.NestedScrollView
android:layout_width="match_parent"
android:layout_height="match_parent">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="#ededed"
android:orientation="vertical">
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="wrap_content">
<!-- <ImageView-->
<!-- android:id="@+id/headimg"-->
<!-- android:layout_width="@dimen/size_200"-->
<!-- android:layout_height="@dimen/size_200"-->
<!-- android:background="@drawable/border"-->
<!-- android:contentDescription="@string/headimg"-->
<!-- app:layout_constraintStart_toStartOf="parent"-->
<!-- app:layout_constraintTop_toTopOf="parent" />-->
<de.hdodenhof.circleimageview.CircleImageView
android:id="@+id/headimg"
android:layout_width="120dp"
android:layout_height="120dp"
android:layout_marginStart="32dp"
android:layout_marginTop="32dp"
app:civ_border_color="#FF000000"
app:civ_border_width="2dp"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/nickname"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/size_50"
android:gravity="center"
android:textSize="18sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toEndOf="@id/headimg"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:id="@+id/credit_score"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/size_50"
android:gravity="center"
android:textSize="18sp"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="@id/nickname"
app:layout_constraintTop_toBottomOf="@id/nickname" />
<TextView
android:id="@+id/check_headimg"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginTop="8dp"
android:gravity="center"
android:text="@string/set_headimg"
android:textSize="14sp"
app:layout_constraintStart_toStartOf="@id/headimg"
app:layout_constraintTop_toBottomOf="@id/headimg" />
</androidx.constraintlayout.widget.ConstraintLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/size_50"
android:orientation="horizontal">
<TextView
android:id="@+id/recentPosts"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1.5"
android:background="@drawable/black_border"
android:gravity="center"
android:textSize="18sp" />
<TextView
android:id="@+id/recentVisitors"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/black_border"
android:gravity="center"
android:textSize="18sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1.5"
android:background="@drawable/black_border"
android:gravity="center"
android:text="@string/mobie"
android:textSize="18sp" />
<TextView
android:id="@+id/mobie"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/black_border"
android:gravity="center"
android:textSize="18sp" />
</LinearLayout>
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal">
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1.5"
android:background="@drawable/black_border"
android:gravity="center"
android:text="@string/email"
android:textSize="18sp" />
<TextView
android:id="@+id/email"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
android:background="@drawable/black_border"
android:gravity="center"
android:textSize="18sp" />
</LinearLayout>
<androidx.constraintlayout.widget.ConstraintLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/size_30">
<ImageView
android:id="@+id/score"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="32dp"
android:src="@drawable/ic_score"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
<TextView
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center"
android:text="@string/active_history"
android:textSize="24sp"
android:textStyle="bold"
app:layout_constraintBottom_toBottomOf="@id/score"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</androidx.constraintlayout.widget.ConstraintLayout>
<HorizontalScrollView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/size_30">
<LinearLayout
android:layout_width="@dimen/chart_height"
android:layout_height="match_parent"
android:orientation="horizontal">
<com.github.mikephil.charting.charts.LineChart
android:id="@+id/chart"
android:layout_width="1000dp"
android:layout_height="@dimen/chart_height" />
</LinearLayout>
</HorizontalScrollView>
<Button
android:id="@+id/open_modify_password"
style="@style/Button_unselect"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/size_30"
android:text="@string/modify_password" />
<Button
android:id="@+id/logout"
style="@style/Button_unselect"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:text="@string/action_logout" />
</LinearLayout>
</androidx.core.widget.NestedScrollView>
</androidx.constraintlayout.widget.ConstraintLayout>