Browse Source

资源图片加入 ,布局修改

developer
lh 8 years ago
parent
commit
50f42c3a0c
21 changed files with 70 additions and 17 deletions
  1. +6
    -0
      app/build.gradle
  2. +1
    -1
      app/src/main/java/com/qhclh/ytzh/base/BaseActivity.java
  3. BIN
      app/src/main/res/drawable-xhdpi/back.png
  4. BIN
      app/src/main/res/drawable-xhdpi/beijin_3x.png
  5. BIN
      app/src/main/res/drawable-xhdpi/chakan_3x.png
  6. BIN
      app/src/main/res/drawable-xhdpi/denglu_3x.png
  7. BIN
      app/src/main/res/drawable-xhdpi/fanhui1_3x.png
  8. BIN
      app/src/main/res/drawable-xhdpi/fanhui_3x.png
  9. BIN
      app/src/main/res/drawable-xhdpi/mima_3x.png
  10. BIN
      app/src/main/res/drawable-xhdpi/paiche_3x.png
  11. BIN
      app/src/main/res/drawable-xhdpi/qued_3x.png
  12. BIN
      app/src/main/res/drawable-xhdpi/queding_3x.png
  13. BIN
      app/src/main/res/drawable-xhdpi/riqi_3x.png
  14. BIN
      app/src/main/res/drawable-xhdpi/shaixuan_3x.png
  15. BIN
      app/src/main/res/drawable-xhdpi/shuju_3x.png
  16. BIN
      app/src/main/res/drawable-xhdpi/sousu_3x.png
  17. BIN
      app/src/main/res/drawable-xhdpi/yonghu_3x.png
  18. BIN
      app/src/main/res/drawable-xhdpi/zhankai_3x.png
  19. +12
    -12
      app/src/main/res/layout/act_login.xml
  20. +7
    -4
      app/src/main/res/layout/fragment_index.xml
  21. +44
    -0
      app/src/main/res/layout/item_index.xml

+ 6
- 0
app/build.gradle View File

@ -12,6 +12,8 @@ android {
versionName "1.0" versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
} }
aaptOptions.cruncherEnabled = false //
aaptOptions.useNewCruncher = false
buildTypes { buildTypes {
release { release {
minifyEnabled false minifyEnabled false
@ -50,4 +52,8 @@ dependencies {
compile 'com.youth.banner:banner:1.4.10' compile 'com.youth.banner:banner:1.4.10'
compile project(':jsonrpc') compile project(':jsonrpc')
compile 'com.android.support:cardview-v7:26.0.0-alpha1' compile 'com.android.support:cardview-v7:26.0.0-alpha1'
///<
compile 'com.github.lecho:hellocharts-library:1.5.8@aar'
///<
compile 'com.prolificinteractive:material-calendarview:1.4.0'
} }

+ 1
- 1
app/src/main/java/com/qhclh/ytzh/base/BaseActivity.java View File

@ -55,7 +55,7 @@ public abstract class BaseActivity extends AppCompatActivity {
actionBar.setDisplayShowTitleEnabled(false); actionBar.setDisplayShowTitleEnabled(false);
} }
if (listener != null) { if (listener != null) {
toolbar.setNavigationIcon(R.drawable.back);
toolbar.setNavigationIcon(R.drawable.fanhui_3x);
toolbar.setNavigationOnClickListener(listener); toolbar.setNavigationOnClickListener(listener);
} }
} }


BIN
app/src/main/res/drawable-xhdpi/back.png View File

Before After
Width: 58  |  Height: 58  |  Size: 220 KiB

BIN
app/src/main/res/drawable-xhdpi/beijin_3x.png View File

Before After
Width: 1242  |  Height: 751  |  Size: 115 KiB

BIN
app/src/main/res/drawable-xhdpi/chakan_3x.png View File

Before After
Width: 53  |  Height: 46  |  Size: 1.7 KiB

BIN
app/src/main/res/drawable-xhdpi/denglu_3x.png View File

Before After
Width: 1211  |  Height: 252  |  Size: 14 KiB

BIN
app/src/main/res/drawable-xhdpi/fanhui1_3x.png View File

Before After
Width: 30  |  Height: 56  |  Size: 1.7 KiB

BIN
app/src/main/res/drawable-xhdpi/fanhui_3x.png View File

Before After
Width: 30  |  Height: 56  |  Size: 1.3 KiB

BIN
app/src/main/res/drawable-xhdpi/mima_3x.png View File

Before After
Width: 52  |  Height: 72  |  Size: 1.6 KiB

BIN
app/src/main/res/drawable-xhdpi/paiche_3x.png View File

Before After
Width: 891  |  Height: 252  |  Size: 13 KiB

BIN
app/src/main/res/drawable-xhdpi/qued_3x.png View File

Before After
Width: 329  |  Height: 140  |  Size: 4.7 KiB

BIN
app/src/main/res/drawable-xhdpi/queding_3x.png View File

Before After
Width: 1151  |  Height: 192  |  Size: 8.6 KiB

BIN
app/src/main/res/drawable-xhdpi/riqi_3x.png View File

Before After
Width: 48  |  Height: 47  |  Size: 1.7 KiB

BIN
app/src/main/res/drawable-xhdpi/shaixuan_3x.png View File

Before After
Width: 52  |  Height: 57  |  Size: 1.7 KiB

BIN
app/src/main/res/drawable-xhdpi/shuju_3x.png View File

Before After
Width: 62  |  Height: 49  |  Size: 1.4 KiB

BIN
app/src/main/res/drawable-xhdpi/sousu_3x.png View File

Before After
Width: 53  |  Height: 50  |  Size: 2.0 KiB

BIN
app/src/main/res/drawable-xhdpi/yonghu_3x.png View File

Before After
Width: 64  |  Height: 70  |  Size: 1.9 KiB

BIN
app/src/main/res/drawable-xhdpi/zhankai_3x.png View File

Before After
Width: 24  |  Height: 45  |  Size: 1.5 KiB

+ 12
- 12
app/src/main/res/layout/act_login.xml View File

@ -10,15 +10,17 @@
<ImageView <ImageView
android:id="@+id/login_bg" android:id="@+id/login_bg"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
android:layout_width="wrap_content"
android:layout_height="200dp"
android:scaleType="fitXY"
android:src="@drawable/beijin_3x" />
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:src="@mipmap/ic_launcher_round"
android:layout_below="@id/login_bg"
android:layout_centerHorizontal="true" android:layout_centerHorizontal="true"
android:layout_below="@id/login_bg" />
android:src="@mipmap/ic_launcher_round" />
</RelativeLayout> </RelativeLayout>
@ -30,7 +32,8 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
android:src="@drawable/yonghu_3x" />
<EditText <EditText
android:id="@+id/login_username" android:id="@+id/login_username"
@ -54,7 +57,8 @@
<ImageView <ImageView
android:layout_width="wrap_content" android:layout_width="wrap_content"
android:layout_height="wrap_content" />
android:layout_height="wrap_content"
android:src="@drawable/mima_3x" />
<EditText <EditText
android:id="@+id/login_psw" android:id="@+id/login_psw"
@ -74,13 +78,9 @@
android:id="@+id/login_sure" android:id="@+id/login_sure"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:layout_marginLeft="@dimen/dp_16"
android:layout_marginRight="@dimen/dp_16"
android:layout_gravity="center_horizontal"
android:layout_marginTop="@dimen/dp_20" android:layout_marginTop="@dimen/dp_20"
android:padding="@dimen/dp_12"
android:text="@string/login"
android:textColor="@color/white"
android:textSize="@dimen/text_size_26" />
android:background="@drawable/denglu_3x" />
</LinearLayout> </LinearLayout>

+ 7
- 4
app/src/main/res/layout/fragment_index.xml View File

@ -4,9 +4,12 @@
android:layout_width="match_parent" android:layout_width="match_parent"
android:background="@color/greyf4f4f4" android:background="@color/greyf4f4f4"
android:layout_height="match_parent"> android:layout_height="match_parent">
<TextView
android:text="@string/index"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<ListView
android:id="@+id/lv_index"
android:layout_marginTop="@dimen/dp_10"
android:layout_width="match_parent"
android:layout_height="wrap_content">
</ListView>
</LinearLayout> </LinearLayout>

+ 44
- 0
app/src/main/res/layout/item_index.xml View File

@ -0,0 +1,44 @@
<?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="wrap_content"
android:orientation="horizontal"
android:padding="@dimen/dp_10">
<ImageView
android:id="@+id/item_index_pic"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:layout_marginLeft="@dimen/dp_5"
android:orientation="vertical">
<TextView
android:id="@+id/item_index_title"
android:layout_width="wrap_content"
android:layout_height="wrap_content" />
<TextView
android:id="@+id/item_index_content"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="@dimen/dp_5" />
</LinearLayout>
<View
android:layout_width="0dp"
android:layout_height="1dp"
android:layout_weight="1" />
<TextView
android:id="@+id/item_index_time"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical" />
</LinearLayout>

Loading…
Cancel
Save