hmkcode / Android

Android related examples
3.52k stars 3.41k forks source link

How did he do that #123

Open Gasem1 opened 3 years ago

Gasem1 commented 3 years ago

How does he do it when moving How does the orange color change Look this👇 https://user-images.githubusercontent.com/88975289/134436606-218ed4b6-3cd6-41cc-b344-67a6c78dff6f.mp4

AyahHameedat commented 2 years ago

you can do it like this in your tab layout widget

<android.support.design.widget.TabLayout

app:tabBackground="@drawable/selector"

/>

and define your selector.xml in drawable folder

<?xml version="1.0" encoding="utf-8"?>