{
Recipedetails2 item_details = new Recipedetails2();
item_details.setName("Godhumai veg adai");
item_details.setIngredients("Samba godhumai rava - 1/2 cup. Bread slices - 4. Curd ( thick ) - 1/2 cup Carrot ( grated ) - 3 tsp Beetroot ( grated ) - 3 tsp Cabbage ( grated ) - 2 tsp Green chilli - 1 Ginger - a small piece Garlic - 2 cloves Salt - as neededOil - as needed ");
item_details.setMethods("1. Cut ginger, green chilli, garlic finely. 2. Soak samba godhumai rava in curd for half an hour. 3. Dip bread slices in water, squeeze and add to the godhumai. 4. Add carrot, beetroot ,cabbage, ginger, green chilli, garlic , salt, water and mix well to a batter. 5. Heat oil in a skillet. 6. Add ladle of batter, spread to a small thick circle and cook on both sides, dribbling oil.");
item_details.setImageNumber(12);
setUIScreen(item_details.getName(),item_details.getIngredients(),item_details.getMethods(),item_details.getImageNumber() );
}
それは段落のようになりますが、私が必要とするのは、最初にポイントが来て、次の行に次のポイントが来るということです .バター。2. フライパンに油を熱します。3. からし、ウラド ダルを加え、からしが飛び散ったら、赤唐辛子、アサフェティダ、大豆ミックスを加え、中火で絶えずかき混ぜます。4. 鍋の側面から中身が出てきたら、油を塗った皿に移し、さらにミラガイ、カレーリーフを散らし、四角く切る。 私はこのようにする必要がありますが、私のlayout.xmlファイルは段落として来ます
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
>
<TextView android:id="@+id/name"
android:textSize="14sp"
android:textStyle="bold"
android:textColor="#32cd32"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
/>
<ImageView
android:id="@+id/photo"
android:layout_height="wrap_content"
android:layout_width="fill_parent"
android:layout_gravity="top"
android:padding="20dp"
android:scaleType="center"
></ImageView>
<TextView
android:text="Ingredients:"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="left" />
<TextView android:id="@+id/itemIngredients"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="center" />
<TextView
android:text="Method:"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:gravity="left" />
<TextView android:id="@+id/methods"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:scaleType="center" />
</LinearLayout>