0

Is there anyway to margin ActionBar title programatically? My context is:

I use my main Activity with NoActionBar theme. So i use a toolbar as Actionbar. I have many fragments using as different screen in Main Activity. I want to margin some of fragment title.

enter image description here

Thank in advance.

Pham Hung
  • 308
  • 1
  • 4
  • 14

1 Answers1

2

There are some rules for accuracy of designing ... they are define as belove with image..

1. your image view

margin of image view from left edge is always 16

2.your textview

margin of your textview from left edge is always 72

Thats why all our android application should work properly...and at least same lookup...

please follow this link for material designing....Link hope it help a lots...

enter image description here

Vishal Patel
  • 2,931
  • 3
  • 24
  • 60
  • I got it. But i design for tablet. In some context, i have to margin left 104dp instead of 72 dp. I want the action bar name go by this way too. – Pham Hung Apr 20 '15 at 01:40