Улучшение верстки главного экрана
This commit is contained in:
parent
2a27f2864a
commit
3660c5c1a6
app/src/main/res
5
app/src/main/res/drawable/avatar_oval.xml
Normal file
5
app/src/main/res/drawable/avatar_oval.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="oval">
|
||||
<solid android:color="@android:color/transparent" />
|
||||
</shape>
|
@ -30,7 +30,6 @@
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent"
|
||||
app:layout_constraintVertical_bias="0.238">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout"
|
||||
android:layout_width="match_parent"
|
||||
@ -39,10 +38,6 @@
|
||||
android:orientation="vertical"
|
||||
android:visibility="visible"
|
||||
tools:visibility="visible">
|
||||
|
||||
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/error"
|
||||
android:layout_width="match_parent"
|
||||
@ -53,9 +48,7 @@
|
||||
android:textColor="@color/red"
|
||||
android:textSize="20sp"
|
||||
android:visibility="gone" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<ProgressBar
|
||||
android:id="@+id/loading"
|
||||
style="?android:attr/progressBarStyle"
|
||||
@ -63,10 +56,10 @@
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
tools:visibility="gone" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/block_header"
|
||||
android:layout_width="match_parent"
|
||||
@ -119,9 +112,11 @@
|
||||
android:id="@+id/photo"
|
||||
android:layout_width="100dp"
|
||||
android:layout_height="100dp"
|
||||
android:layout_marginVertical="24dp"
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginVertical="24dp"
|
||||
android:background="@drawable/avatar_oval"
|
||||
android:contentDescription="@string/app_name"
|
||||
android:clipToOutline="true"
|
||||
app:srcCompat="@drawable/avatar"
|
||||
tools:srcCompat="@tools:sample/avatars" />
|
||||
|
||||
@ -192,7 +187,7 @@
|
||||
<LinearLayout
|
||||
android:id="@+id/block_history"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_height="0dp"
|
||||
android:orientation="vertical"
|
||||
android:layout_marginTop="20dp"
|
||||
android:background="@drawable/history_corner_radius"
|
||||
|
Loading…
x
Reference in New Issue
Block a user