Commit 81dcc985 authored by jyx's avatar jyx

优化样式

parent a480365e
......@@ -10,8 +10,8 @@ android {
applicationId "com.duben.speedplaylet"
minSdkVersion rootProject.ext.androidMinSdkVersion
targetSdkVersion rootProject.ext.androidTargetSdkVersion
versionCode 9
versionName "1.0.8"
versionCode 10
versionName "1.0.9"
flavorDimensions "default"
// dex突破65535的限制
......
......@@ -7,6 +7,7 @@ import android.net.Uri
import android.os.Bundle
import android.view.KeyEvent
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import androidx.core.content.ContextCompat
import androidx.fragment.app.Fragment
......@@ -36,7 +37,7 @@ class MainActivity : BaseActivity(), View.OnClickListener {
var tabIvLoan: TextView? = null
var tabIvRecommend: TextView? = null
var tabIvEnjoy: TextView? = null
var tabIvEnjoy: ImageView? = null
var tabIvMy: TextView? = null
private var mShowBlack = false
......@@ -165,8 +166,12 @@ class MainActivity : BaseActivity(), View.OnClickListener {
addOrShowFragment(supportFragmentManager.beginTransaction(), mainFragment!!)
tabIvLoan!!.isSelected = true
tabIvRecommend!!.isSelected = false
tabIvEnjoy!!.isSelected = false
// tabIvEnjoy!!.isSelected = false
tabIvMy!!.isSelected = false
tabIvEnjoy!!.scaleX = 0.9f
tabIvEnjoy!!.scaleY = 0.9f
changeBottomTabColor(false)
}
......@@ -181,8 +186,11 @@ class MainActivity : BaseActivity(), View.OnClickListener {
addOrShowFragment(supportFragmentManager.beginTransaction(), recommendFragment!!)
tabIvLoan!!.isSelected = false
tabIvRecommend!!.isSelected = true
tabIvEnjoy!!.isSelected = false
// tabIvEnjoy!!.isSelected = false
tabIvMy!!.isSelected = false
tabIvEnjoy!!.scaleX = 0.9f
tabIvEnjoy!!.scaleY = 0.9f
changeBottomTabColor(mShowBlack)
}
......@@ -197,8 +205,11 @@ class MainActivity : BaseActivity(), View.OnClickListener {
addOrShowFragment(supportFragmentManager.beginTransaction(), vipEnjoyFragment!!)
tabIvLoan!!.isSelected = false
tabIvRecommend!!.isSelected = false
tabIvEnjoy!!.isSelected = true
// tabIvEnjoy!!.isSelected = true
tabIvMy!!.isSelected = false
tabIvEnjoy!!.scaleX = 1.0f
tabIvEnjoy!!.scaleY = 1.0f
changeBottomTabColor(false)
}
......@@ -213,8 +224,11 @@ class MainActivity : BaseActivity(), View.OnClickListener {
addOrShowFragment(supportFragmentManager.beginTransaction(), myFragment!!)
tabIvLoan!!.isSelected = false
tabIvRecommend!!.isSelected = false
tabIvEnjoy!!.isSelected = false
// tabIvEnjoy!!.isSelected = false
tabIvMy!!.isSelected = true
tabIvEnjoy!!.scaleX = 0.9f
tabIvEnjoy!!.scaleY = 0.9f
changeBottomTabColor(false)
}
......
<?xml version="1.0" encoding="utf-8"?>
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:color="#EEAD0E" android:state_selected="true" />
<item android:color="@color/graya" android:state_selected="false" />
<item android:color="@color/color_F61F03" android:state_selected="false" />
</selector>
\ No newline at end of file
......@@ -71,16 +71,25 @@
android:layout_weight="1.0"
android:gravity="center"
android:orientation="vertical"
android:visibility="gone">
android:paddingBottom="4dp"
android:visibility="visible">
<TextView
<ImageView
android:id="@+id/tab_iv_enjoy"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="尊享"
android:textColor="@color/item_text_sel3"
android:textSize="20sp"
android:textStyle="bold" />
android:scaleX="0.9"
android:scaleY="0.9"
android:src="@mipmap/ic_enjoy_label2" />
<!-- <TextView-->
<!-- android:id="@+id/tab_iv_enjoy"-->
<!-- android:layout_width="wrap_content"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:text="尊享"-->
<!-- android:textColor="@color/item_text_sel3"-->
<!-- android:textSize="20sp"-->
<!-- android:textStyle="bold" />-->
</LinearLayout>
<LinearLayout
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment