Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Commit

Permalink
修改主色调为棕色 修改splash图
Browse files Browse the repository at this point in the history
  • Loading branch information
troyliueyunkai committed Dec 31, 2016
1 parent bc747cc commit 71ec13d
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 60 deletions.
Binary file added app/src/main/res/drawable-xxhdpi/background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed app/src/main/res/drawable-xxhdpi/mybg.png
Binary file not shown.
100 changes: 45 additions & 55 deletions app/src/main/res/layout/activity_splash.xml
Original file line number Diff line number Diff line change
@@ -1,65 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:background="#5acace"
android:layout_width="match_parent"
android:layout_height="match_parent">

android:layout_height="match_parent"
android:orientation="vertical">


<RelativeLayout android:layout_width="fill_parent"
<ImageView
android:id="@+id/imageView2"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:scaleType="center"
android:src="@drawable/background"

android:layout_alignParentTop="true"
android:layout_alignParentStart="true">

<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical"
android:id="@+id/linearLayout"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:layout_marginBottom="150dp">

<LinearLayout android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal">

</LinearLayout>


</LinearLayout>

<ImageView
android:paddingTop="100dp"
android:layout_width="wrap_content"
android:src="@drawable/mybg"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"

android:layout_marginEnd="17dp" />

<android.support.v7.widget.AppCompatTextView
android:layout_width="wrap_content"
android:text="小米净化 1.5"
android:gravity="center"
android:layout_height="wrap_content"
android:layout_alignParentTop="true"
android:layout_centerHorizontal="true"
android:textSize="25sp"
android:layout_marginTop="50dp" />

<!--<ImageView-->
<!--android:layout_width="125dp"-->
<!--android:layout_height="wrap_content"-->
<!--android:src="@drawable/shooter"-->
<!--android:adjustViewBounds="true"-->
<!--android:id="@+id/imageView3"-->
<!---->
<!--android:layout_above="@+id/linearLayout"-->
<!--android:layout_centerHorizontal="true" />-->

android:layout_alignParentStart="true" />

<TextView
android:id="@+id/ccd"
android:text="1.6.0"
android:textColor="#fff"
android:fontFamily="sans-serif-condensed"
android:textSize="25sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dp"
android:layout_below="@+id/cc"
android:layout_alignStart="@+id/ccdd" />

<TextView
android:id="@+id/ccdd"
android:text="还你一个干净的世界"
android:textColor="#fff"
android:fontFamily="sans-serif-condensed"
android:textSize="30sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="13dp"
android:layout_below="@+id/ccd"
android:layout_alignParentStart="true"
android:layout_marginStart="30dp" />

<TextView
android:id="@+id/cc"
android:text="小米净化"
android:textColor="#fff"
android:fontFamily="sans-serif-condensed"
android:textSize="35sp"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="38dp"
android:layout_alignParentTop="true"
android:layout_alignStart="@+id/ccd" />

</RelativeLayout>
</RelativeLayout>
10 changes: 5 additions & 5 deletions app/src/main/res/values/colors.xml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--ToolBar-->
<color name="colorPrimary">#5acace</color>
<color name="colorPrimary">#4c4646</color>
<!--状态栏-->
<color name="colorPrimaryDark">#5acace</color>
<color name="colorAccent">#5acace</color>
<color name="colorItem">#5acace</color>
<color name="enableApp">#5acace</color>
<color name="colorPrimaryDark">#4c4646</color>
<color name="colorAccent">#4c4646</color>
<color name="colorItem">#4c4646</color>
<color name="enableApp">#4c4646</color>

<color name="disablefunction">#cacaca</color>
<color name="splash">#5acace</color>
Expand Down

0 comments on commit 71ec13d

Please sign in to comment.