mathew-kurian / TextJustify-Android

:page_facing_up: Android Text Full Jusiftication / Wrapping / Justify / Hyphenate - V2.0
https://github.com/bluejamesbond/TextJustify-Android/wiki
Apache License 2.0
1.86k stars 370 forks source link

How to change the opacity or alpha value....? #75

Closed hkk007 closed 9 years ago

hkk007 commented 9 years ago

In Android Textview i give android:alpha="0.87" but how can i give inside....com.bluejamesbond.text.DocumentView

please tell me as soon as possible...........

sigrlami commented 9 years ago

@hkk007 Same way, here is working example

  <com.bluejamesbond.text.DocumentView
      android:id="@+id/textDescription"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:layout_marginLeft="18dp"
      android:layout_marginRight="10dp"
      android:alpha="0.5"
      ext:documentView_textAlignment="justified"
      ext:documentView_textColor="@android:color/darker_gray"
      ext:documentView_textFormat="plain"
      ext:documentView_textSize="16sp"
      ext:documentView_insetPaddingLeft="0dp"
      ext:documentView_insetPaddingRight="0dp"/>
hkk007 commented 9 years ago

It was not working for me.......then i give ext:documentView_textColor="@color/switch_thumb_normal_material_dark" and it worked...

thanks you for the help......

sigrlami commented 9 years ago

@hkk007 you're welcome! @bluejamesbond can you close this issue?