<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>takeR</author_name>
  <author_url>https://blog.hatena.ne.jp/takeR/</author_url>
  <blog_title>前人未踏の領域へ Androidアプリ開発編</blog_title>
  <blog_url>https://takerpg.hatenablog.jp/</blog_url>
  <categories>
    <anon>Jetpack Compose</anon>
    <anon>Android</anon>
    <anon>Tips</anon>
  </categories>
  <description>内容 コンテンツをリスト表示する際に、記事などの長文を部分表示したい場合に maxLinesパラメータを使って表示を制限するが、現在どこまで文字列が表示されているかを知りたい。どうすればよいか。 対応 TextViewの場合にはTextUtils.ellipsize() という関数に文字列と画面幅を渡してゴニョゴニョとやっていたが、Jetpack Composeの場合にはTextLayoutResultが利用できる。 Text(text = longText, overflow = TextOverflow.Ellipsis, maxLines = 3, onTextLayout = { te…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakerpg.hatenablog.jp%2Fentry%2F2023%2F02%2F01%2F123753&quot; title=&quot;Jetpack Compose：TextのmaxLines指定時に表示した文字列と隠れた文字列を知るには - 前人未踏の領域へ Androidアプリ開発編&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/t/takeR/20230201/20230201122914.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2023-02-01 12:37:53</published>
  <title>Jetpack Compose：TextのmaxLines指定時に表示した文字列と隠れた文字列を知るには</title>
  <type>rich</type>
  <url>https://takerpg.hatenablog.jp/entry/2023/02/01/123753</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
