|
|
@@ -1,5 +1,5 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
+<android.support.constraint.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:layout_width="match_parent"
|
|
|
@@ -10,21 +10,30 @@
|
|
|
<TextView
|
|
|
android:id="@+id/gc_game_app_detail_bt2"
|
|
|
style="@style/style_button"
|
|
|
- android:layout_alignParentBottom="true"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintBottom_toBottomOf="parent"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/gc_game_app_detail_line"
|
|
|
android:text="下载" />
|
|
|
|
|
|
<View
|
|
|
android:id="@+id/gc_game_app_detail_line"
|
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="1dp"
|
|
|
- android:layout_above="@id/gc_game_app_detail_bt2"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintBottom_toTopOf="@id/gc_game_app_detail_bt2"
|
|
|
+ app:layout_constraintTop_toBottomOf="@id/refresh"
|
|
|
android:background="#F2F2F2" />
|
|
|
|
|
|
<com.scwang.smartrefresh.layout.SmartRefreshLayout
|
|
|
android:id="@+id/refresh"
|
|
|
android:layout_width="match_parent"
|
|
|
- android:layout_height="match_parent"
|
|
|
- android:layout_above="@id/gc_game_app_detail_line">
|
|
|
+ android:layout_height="0dp"
|
|
|
+ app:layout_constraintStart_toStartOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintBottom_toTopOf="@id/gc_game_app_detail_line">
|
|
|
|
|
|
<android.support.v4.widget.NestedScrollView
|
|
|
android:layout_width="match_parent"
|
|
|
@@ -144,15 +153,14 @@
|
|
|
app:layout_constraintBottom_toTopOf="@id/gc_game_app_detail_tag_list"
|
|
|
app:layout_constraintEnd_toEndOf="parent"
|
|
|
app:layout_constraintStart_toEndOf="@id/gc_game_app_detail_icon"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/gc_game_app_detail_icon" />
|
|
|
+ app:layout_constraintTop_toTopOf="@id/gc_game_app_detail_icon" />
|
|
|
|
|
|
<android.support.v7.widget.RecyclerView
|
|
|
android:id="@+id/gc_game_app_detail_tag_list"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginEnd="16dp"
|
|
|
app:layout_constraintBottom_toTopOf="@id/gc_game_app_detail_info_tv"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="@id/gc_game_app_detail_name"
|
|
|
app:layout_constraintStart_toStartOf="@id/gc_game_app_detail_name"
|
|
|
app:layout_constraintTop_toBottomOf="@id/gc_game_app_detail_name" />
|
|
|
|
|
|
@@ -160,12 +168,12 @@
|
|
|
android:id="@+id/gc_game_app_detail_info_tv"
|
|
|
android:layout_width="0dp"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_marginEnd="16dp"
|
|
|
+ android:lineSpacingExtra="5dp"
|
|
|
android:text="418M 230万人在玩"
|
|
|
android:textColor="#ff999999"
|
|
|
android:textSize="12sp"
|
|
|
app:layout_constraintBottom_toTopOf="@id/gc_game_app_detail_bt1"
|
|
|
- app:layout_constraintEnd_toEndOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="@id/gc_game_app_detail_name"
|
|
|
app:layout_constraintStart_toStartOf="@id/gc_game_app_detail_name"
|
|
|
app:layout_constraintTop_toBottomOf="@id/gc_game_app_detail_tag_list" />
|
|
|
|
|
|
@@ -228,9 +236,9 @@
|
|
|
<com.kfzs.duanduan.view.DragRelativeLayout
|
|
|
android:layout_width="wrap_content"
|
|
|
android:layout_height="wrap_content"
|
|
|
- android:layout_alignParentTop="true"
|
|
|
- android:layout_alignParentEnd="true"
|
|
|
android:layout_marginTop="300dp"
|
|
|
+ app:layout_constraintTop_toTopOf="parent"
|
|
|
+ app:layout_constraintEnd_toEndOf="parent"
|
|
|
android:onClick="onClickPlusDrag"
|
|
|
android:paddingTop="@dimen/content_padding_10"
|
|
|
android:paddingBottom="@dimen/content_padding_10">
|
|
|
@@ -243,4 +251,4 @@
|
|
|
android:scaleType="fitXY" />
|
|
|
</com.kfzs.duanduan.view.DragRelativeLayout>
|
|
|
|
|
|
-</RelativeLayout>
|
|
|
+</android.support.constraint.ConstraintLayout>
|