私の都市で利用可能なすべてのサービスの連絡先の詳細を表示するためのAndroidアプリケーションを作成しています。私は都市のナビゲーションのために私のアプリケーションで引出しを使用しています。しかし、長いテキスト(例えば、Adress)を有するTextViewは画面外に出る。ですから、TextViewが画面に収まるように手伝ってください。GridlayoutのTextViewが画面外に表示される
<?xml version="1.0" encoding="utf-8"?>
<GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content" android:layout_height="match_parent">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="Name: "
android:id="@+id/textView27"
android:layout_row="0"
android:layout_column="0"
style="@style/Base.TextAppearance.AppCompat.Title"
android:textSize="22dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="Idea Gallery"
android:id="@+id/textView28"
android:layout_row="0"
android:layout_column="1"
android:textSize="22dp" />
<TextView
style="@style/Base.TextAppearance.AppCompat.Title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="Address: "
android:id="@+id/textView29"
android:layout_row="1"
android:layout_column="0"
android:textSize="22dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="Shop No 5, Akshay Apartment, Kalwa, Thane - 400605, Opposite Pramila Hospital "
android:id="@+id/textView30"
android:layout_row="1"
android:layout_column="1"
android:textSize="22dp" />
<TextView
style="@style/Base.TextAppearance.AppCompat.Title"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="Contact:"
android:id="@+id/textView31"
android:layout_row="2"
android:layout_column="0"
android:textSize="22dp" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="022 - 385[enter image description here][1]39146"
android:id="@+id/textView32"
android:layout_row="2"
android:layout_column="1"
android:textSize="22dp" />
</GridLayout>
を、私は、あなたは間違いなくGridLayoutの – sharan
でこれをやりたい..doこのため、相対レイアウト/リニアレイアウトを使用することができません、私はその中のすべての任意のレイアウトを使用します。コンポーネントが正しく表示されました。 – Nadimuddin
あなたは表示用のアプリケーションを書いて以来、私はランタイムで生成されたhtmlでWebviewを使用すると表示するための最良の選択肢の1つだと思います...このケースでは、表示するための簡単な方法でより見栄えの良いデザインを作ることができます... – sharan