desc:封装Topbar
@ -0,0 +1,68 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="@dimen/_87dp"
|
||||
android:background="@color/_242f4d"
|
||||
android:gravity="center_vertical"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/back_area"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingStart="16dp">
|
||||
|
||||
<ImageView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/_31dp"
|
||||
android:src="@mipmap/ic_back" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/_23dp"
|
||||
android:text="Title"
|
||||
android:textColor="@color/white"
|
||||
android:textSize="@dimen/_36dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<Space
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="1px"
|
||||
android:layout_weight="1" />
|
||||
|
||||
<TextClock
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="@dimen/_30dp"
|
||||
android:textColor="@color/white"
|
||||
android:format24Hour ="HH.mm a"
|
||||
android:format12Hour ="hh.mm a"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/battery"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/_40dp"
|
||||
android:src="@mipmap/ic_setting"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/wifi"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/_40dp"
|
||||
android:src="@mipmap/ic_setting"/>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/four_g"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginStart="@dimen/_40dp"
|
||||
android:layout_marginEnd="@dimen/_36dp"
|
||||
android:src="@mipmap/ic_setting"/>
|
||||
|
||||
</LinearLayout>
|
After Width: | Height: | Size: 601 B |
After Width: | Height: | Size: 859 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 694 B |
After Width: | Height: | Size: 670 B |
After Width: | Height: | Size: 343 B |
After Width: | Height: | Size: 490 B |
After Width: | Height: | Size: 606 B |
After Width: | Height: | Size: 563 B |
After Width: | Height: | Size: 409 B |
After Width: | Height: | Size: 399 B |
After Width: | Height: | Size: 727 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 994 B |
After Width: | Height: | Size: 833 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 2.5 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 1.4 KiB |
Before Width: | Height: | Size: 9.2 KiB |
Before Width: | Height: | Size: 21 KiB |
Before Width: | Height: | Size: 16 KiB |