右側にtextviewを使用して選択したタイムゾーンを表示し、ユーザーがそれを選択すると、選択に基づいて警告ダイアログが開きます。値を表示しています..今問題はタイムゾーン値です長すぎる場合は、下の画像のように表示されません..私はそれを "..."と交換する必要があります..私は最大長を設定すると、この小さなデバイスのために動作します..しかし、テキスト表示サイズはデバイスの幅に基づいて変更されます。だから私は少しこれを処理する方法が混乱しています。あなたはこの問題を解決するために私を助けてくれますか?テキストビューの最後に3つのドットを表示
<LinearLayout
android:layout_width="match_parent"
android:minHeight=“60dp”
android:layout_height="wrap_content"
android:orientation="horizontal"
android:layout_marginBottom=“10dp”
android:visibility="visible">
<EditText
android:id="@+id/etZipCode"
android:padding=“15dp”
android:layout_marginBottom=“10dp”
android:singleLine=true
android:layout_width="match_parent"
android:layout_weight="1"
android:layout_height="wrap_content"
android:maxLength=“8“
android:inputType="text"
android:imeOptions="actionNext" />
<TextView
android:padding=“15dp”
android:layout_marginBottom=“10dp”
android:singleLine=true
android:layout_width="match_parent"
android:minHeight="50dp"
android:layout_height="wrap_content"
android:layout_weight="1"
android:drawableRight="@drawable/ic_dropdown_pin"
android:layout_marginBottom=“10dp“
android:layout_marginLeft=“5dp”/>
</LinearLayout>
このコードは機能しています。他にもいくつか問題があるはずです。 –