1

I want to implement following design on android, D is either an image or a character. Text should be properly aligned as mentioned in design. Any suggestions?

enter image description here

I tried it using left drawable of textview, custom icon of radio button and checkbox but text alignment is an issue. Thanks in advance.

Aditya Vyas-Lakhan
  • 13,007
  • 15
  • 58
  • 92
PEHLAJ
  • 9,590
  • 9
  • 39
  • 51

1 Answers1

3

Try this one it will give you same result

https://github.com/rpradal/Lettrine

Add this in your gradle

compile 'com.github.rpradal.lettrine:lettrine:release_number'

In you XML just add

<com.github.rpradal.lettrine.LettrineTextView
              android:layout_width="fill_parent"
              android:layout_height="wrap_content"
              app:lettrine_textColor="@android:color/holo_red_dark"
              app:lettrine_text="Lorem ipsum"
              app:lettrine_lettrineSize="3"
              app:lettrine_textSize="14sp" />

enter image description here

Aditya Vyas-Lakhan
  • 13,007
  • 15
  • 58
  • 92