Rupesh Salgaonkar
Rupesh Salgaonkar

Reputation: 43

How to align Spinner in Actionbar to left

enter image description here

I want to align the spinner to left. spinner is not used for navigation here

<?xml version="1.0" encoding="utf-8"?>
<TextView xmlns:android="http://schemas.android.com/apk/res/android"
      android:id="@android:id/text1"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:ellipsize="marquee"
      android:singleLine="true"
      android:textColor="@color/white"
      android:textStyle="bold"/>

how to do it.

Upvotes: 1

Views: 675

Answers (1)

donkey
donkey

Reputation: 204

Grab the actionbar, then:

actionbar.setDisplayShowTitleEnabled(false);

Upvotes: 3

Related Questions