parent
f1340d38bd
commit
d05ec5d649
9 changed files with 70 additions and 77 deletions
@ -1,6 +1,23 @@ |
||||
package com.project.survey.activity |
||||
|
||||
import android.content.Intent |
||||
import com.project.survey.activity.base.BaseBindingActivity |
||||
import com.project.survey.databinding.ActivitySplashBinding |
||||
|
||||
class SplashActivity :BaseBindingActivity<> { |
||||
/** |
||||
* 启动页 |
||||
*/ |
||||
class SplashActivity : BaseBindingActivity<ActivitySplashBinding>() { |
||||
|
||||
override fun getBinding(): ActivitySplashBinding { |
||||
return ActivitySplashBinding.inflate(layoutInflater) |
||||
} |
||||
|
||||
override fun initView() { |
||||
startActivity(Intent(this, MainActivity::class.java)) |
||||
finish() |
||||
} |
||||
|
||||
override fun initData() { |
||||
} |
||||
} |
@ -0,0 +1,8 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> |
||||
<item> |
||||
<bitmap |
||||
android:scaleType="centerCrop" |
||||
android:src="@drawable/splash_img" /> |
||||
</item> |
||||
</layer-list> |
After Width: | Height: | Size: 1.7 MiB |
@ -1,31 +1,8 @@ |
||||
<?xml version="1.0" encoding="utf-8"?> |
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
||||
xmlns:custom="http://schemas.android.com/apk/res-auto" |
||||
xmlns:tl="http://schemas.android.com/apk/res-auto" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="match_parent" |
||||
android:orientation="vertical"> |
||||
|
||||
<androidx.viewpager.widget.ViewPager |
||||
android:id="@+id/activity_main_viewpager" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="0dp" |
||||
android:layout_weight="1" /> |
||||
|
||||
<com.flyco.tablayout.CommonTabLayout |
||||
android:id="@+id/activity_main_tab_layout" |
||||
android:layout_width="match_parent" |
||||
android:layout_height="54dp" |
||||
android:background="#ffffff" |
||||
tl:tl_iconHeight="23dp" |
||||
tl:tl_iconWidth="23dp" |
||||
tl:tl_indicator_color="#3498db" |
||||
tl:tl_indicator_height="0dp" |
||||
tl:tl_textSelectColor="#3498db" |
||||
tl:tl_textUnselectColor="#666666" |
||||
tl:tl_textsize="12sp" |
||||
tl:tl_underline_color="#cfcfcf" |
||||
tl:tl_underline_gravity="TOP" |
||||
tl:tl_underline_height="1dp" /> |
||||
|
||||
</LinearLayout> |
||||
|
Loading…
Reference in new issue