2017-02-20 7 views
1

アンドロイドで次のデザインを実装したい、Dはイメージまたは文字のいずれかです。テキストは、設計上の説明どおりに正しく配置する必要があります。助言がありますか?デザインで言及されているイメージとのテキストアライメント

enter image description here

私は、TextViewの左描画可能なを使用して、ラジオボタンやチェックボックスのカスタムアイコンを、それを試してみましたが、テキストの配置が問題です。 ありがとうございます。

+3

これを確認してください:http://stackoverflow.com/questions/19030843/how-to-make-the-first-character-much-larger-than-other-in-a-textview –

+0

同じものにスパン可能なテキストを使うことができます結果。 –

答えて

3

は、単に

<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

を追加するこの1つは、それはあなたに同じ結果が得られます

https://github.com/rpradal/Lettrine

あなたのGradleであなたXMLで

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

これを追加してみ

関連する問題