Bearded-Hen / Android-Bootstrap

Bootstrap style widgets for Android, with Glyph Icons
MIT License
7.29k stars 1.43k forks source link

[Question] How to text align left in BootstrapLabel #182

Closed khalid-mahmood closed 7 years ago

khalid-mahmood commented 7 years ago

how can i set Text align left in BootstrapLabel ? android:gravity="left" not working.

hyorkim11 commented 7 years ago

check parent container's alignments first

khalid-mahmood commented 7 years ago

@hyorkim11 its not dependent on parent.

jamie-beardedhen commented 7 years ago

@khalid-mahmood please post a minimal code example which can be used to reproduce the issue.

khalid-mahmood commented 7 years ago
    <RelativeLayout
        android:layout_width="match_parent"
        android:layout_height="match_parent">

        <com.beardedhen.androidbootstrap.BootstrapLabel
            android:id="@+id/product_price"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            app:bootstrapBrand="custom"
            app:bootstrapHeading="h6"
            app:roundedCorners="true"
            tools:text="Price" />

it show label with center text even if i use android:gravity="left"

jamie-beardedhen commented 7 years ago

android:gravity wasn't being respected for AwesomeTextView, BootstrapLabel, BootstrapButton, and BootstrapDropdown - a fix should be available shortly

jamie-beardedhen commented 7 years ago

Fixed in 2.3.1