|
@@ -1,22 +1,21 @@
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
-<FrameLayout
|
|
|
|
|
- xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
|
|
|
+<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="match_parent">
|
|
android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<android.support.v4.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
<android.support.v4.widget.SwipeRefreshLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
- xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
- android:id="@+id/swipe_main_activity"
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="match_parent"
|
|
|
|
|
- android:addStatesFromChildren="true"
|
|
|
|
|
- app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
+ android:id="@+id/swipe_main_activity"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="match_parent"
|
|
|
|
|
+ android:addStatesFromChildren="true"
|
|
|
|
|
+ app:layout_behavior="@string/appbar_scrolling_view_behavior">
|
|
|
|
|
|
|
|
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
<android.support.design.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
- xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
- android:layout_width="match_parent"
|
|
|
|
|
- android:layout_height="match_parent">
|
|
|
|
|
|
|
+ xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
|
|
|
+ android:layout_width="match_parent"
|
|
|
|
|
+ android:layout_height="match_parent">
|
|
|
|
|
|
|
|
<android.support.design.widget.AppBarLayout
|
|
<android.support.design.widget.AppBarLayout
|
|
|
android:id="@+id/app_layout_main_activity"
|
|
android:id="@+id/app_layout_main_activity"
|
|
@@ -47,7 +46,7 @@
|
|
|
android:textSize="@dimen/text_size_4"
|
|
android:textSize="@dimen/text_size_4"
|
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
app:layout_constraintLeft_toLeftOf="parent"
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="parent"/>
|
|
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="parent" />
|
|
|
|
|
|
|
|
<LinearLayout
|
|
<LinearLayout
|
|
|
android:id="@+id/linearLayout"
|
|
android:id="@+id/linearLayout"
|
|
@@ -68,7 +67,7 @@
|
|
|
android:layout_width="20dp"
|
|
android:layout_width="20dp"
|
|
|
android:layout_height="20dp"
|
|
android:layout_height="20dp"
|
|
|
android:layout_centerVertical="true"
|
|
android:layout_centerVertical="true"
|
|
|
- android:src="@drawable/icon"/>
|
|
|
|
|
|
|
+ android:src="@drawable/icon" />
|
|
|
|
|
|
|
|
<TextView
|
|
<TextView
|
|
|
android:id="@+id/txt_main_activity_nick"
|
|
android:id="@+id/txt_main_activity_nick"
|
|
@@ -76,7 +75,7 @@
|
|
|
android:layout_height="wrap_content"
|
|
android:layout_height="wrap_content"
|
|
|
android:layout_marginLeft="@dimen/content_padding_small"
|
|
android:layout_marginLeft="@dimen/content_padding_small"
|
|
|
android:textColor="@color/orange_text_light"
|
|
android:textColor="@color/orange_text_light"
|
|
|
- android:textSize="@dimen/text_size_3"/>
|
|
|
|
|
|
|
+ android:textSize="@dimen/text_size_3" />
|
|
|
</LinearLayout>
|
|
</LinearLayout>
|
|
|
|
|
|
|
|
|
|
|
|
@@ -95,7 +94,7 @@
|
|
|
android:textColor="@color/orange_text_light"
|
|
android:textColor="@color/orange_text_light"
|
|
|
android:textSize="@dimen/text_size_3"
|
|
android:textSize="@dimen/text_size_3"
|
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
app:layout_constraintRight_toRightOf="parent"
|
|
|
- app:layout_constraintTop_toTopOf="@+id/linearLayout"/>
|
|
|
|
|
|
|
+ app:layout_constraintTop_toTopOf="@+id/linearLayout" />
|
|
|
|
|
|
|
|
</android.support.constraint.ConstraintLayout>
|
|
</android.support.constraint.ConstraintLayout>
|
|
|
|
|
|
|
@@ -108,7 +107,7 @@
|
|
|
app:contentInsetStart="0dp"
|
|
app:contentInsetStart="0dp"
|
|
|
app:layout_collapseMode="pin">
|
|
app:layout_collapseMode="pin">
|
|
|
|
|
|
|
|
- <include layout="@layout/title"/>
|
|
|
|
|
|
|
+ <include layout="@layout/title" />
|
|
|
</android.support.v7.widget.Toolbar>
|
|
</android.support.v7.widget.Toolbar>
|
|
|
|
|
|
|
|
</android.support.design.widget.CollapsingToolbarLayout>
|
|
</android.support.design.widget.CollapsingToolbarLayout>
|
|
@@ -117,7 +116,7 @@
|
|
|
android:id="@+id/tab_main_activity"
|
|
android:id="@+id/tab_main_activity"
|
|
|
android:layout_width="match_parent"
|
|
android:layout_width="match_parent"
|
|
|
android:layout_height="40dp"
|
|
android:layout_height="40dp"
|
|
|
- android:background="@color/colorPrimary"/>
|
|
|
|
|
|
|
+ android:background="@color/colorPrimary" />
|
|
|
</android.support.design.widget.AppBarLayout>
|
|
</android.support.design.widget.AppBarLayout>
|
|
|
|
|
|
|
|
<android.support.v4.widget.NestedScrollView
|
|
<android.support.v4.widget.NestedScrollView
|
|
@@ -147,7 +146,7 @@
|
|
|
android:layout_gravity="right|bottom"
|
|
android:layout_gravity="right|bottom"
|
|
|
android:layout_marginBottom="50dp"
|
|
android:layout_marginBottom="50dp"
|
|
|
android:layout_marginRight="20dp"
|
|
android:layout_marginRight="20dp"
|
|
|
- android:src="@drawable/icon_ask"/>
|
|
|
|
|
|
|
+ android:src="@drawable/icon_ask" />
|
|
|
|
|
|
|
|
<ImageView
|
|
<ImageView
|
|
|
android:id="@+id/img_red"
|
|
android:id="@+id/img_red"
|
|
@@ -156,6 +155,6 @@
|
|
|
android:layout_marginLeft="10dp"
|
|
android:layout_marginLeft="10dp"
|
|
|
android:layout_marginTop="10dp"
|
|
android:layout_marginTop="10dp"
|
|
|
android:src="@drawable/hongbao"
|
|
android:src="@drawable/hongbao"
|
|
|
- android:visibility="gone"/>
|
|
|
|
|
|
|
+ android:visibility="gone" />
|
|
|
|
|
|
|
|
</FrameLayout>
|
|
</FrameLayout>
|