Search code examples
androidxmlandroid-layoutandroid-studioandroid-tablayout

Indented TabLayout


In TabLayout, how can I set left indent? Like for example AdSense google app.

enter image description here


Solution

  • you can use app:tabContentStart="100dp" for to give indent

    This attribute allows you move the active tab to the left according to the value specified, which is set in "dp" (like a margin-left thing)