Newer
Older
SmartTown / app / src / main / res / layout / activity_about_us.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"
    android:id="@+id/rootView"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@color/mainBackColor"
    android:orientation="vertical">

    <include layout="@layout/include_base_title" />

    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <com.qmuiteam.qmui.widget.QMUIRadiusImageView
            android:id="@+id/tempView"
            android:layout_width="@dimen/lib_dp_80"
            android:layout_height="@dimen/lib_dp_80"
            android:scaleType="centerCrop"
            android:layout_centerHorizontal="true"
            android:layout_marginTop="@dimen/dp_100"
            android:src="@mipmap/ic_launcher"
            app:qmui_border_width="0dp"
            app:qmui_corner_radius="7dp" />

        <TextView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_below="@id/tempView"
            android:fontFamily="sans-serif-black"
            android:gravity="center"
            android:paddingVertical="@dimen/dp_20"
            android:text="@string/app_name"
            android:textColor="@color/mainTextColor"
            android:textSize="@dimen/sp_18" />

        <TextView
            android:id="@+id/versionCodeView"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_above="@id/tempLayout"
            android:gravity="center"
            android:paddingVertical="@dimen/dp_3"
            android:text="版本信息:V1.0.0"
            android:textColor="@color/mainTextColor"
            android:textSize="@dimen/sp_16" />

        <LinearLayout
            android:id="@+id/tempLayout"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:layout_centerInParent="true"
            android:gravity="center"
            android:orientation="horizontal"
            android:paddingVertical="@dimen/dp_3">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="客服电话:"
                android:textColor="@color/mainTextColor"
                android:textSize="@dimen/sp_16" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:autoLink="phone"
                android:text="010-68387447"
                android:textColorLink="@color/mainThemeColor"
                android:textSize="@dimen/sp_16" />
        </LinearLayout>
    </RelativeLayout>
</LinearLayout>