Here I developed one application. Here I want to use the o / p format as shown below:
Artist: artist
Duration: duration
Title: title.
But I got o / p :
Artist:
artist
Durstion:
duration
Title:
title
Here I want to use the above format.
How can i do this?
Here I used below code for my layout file. But I can’t get a way out of my demand. So please help me and give me some ideas. Please help me
this is my layout file:
<?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="wrap_content"
android:orientation="vertical" >
<LinearLayout
android:id="@+id/orderinformation"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<TextView
android:id="@+id/payment_method1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="5px"
android:text="Artist"
android:textSize="15dip"
android:textStyle="bold" />
<TextView
android:id="@+id/artist"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_toRightOf="@+id/payment_method1"
android:paddingLeft="75px"
android:text="artist"
android:textColor="#10bcc9"
android:textSize="15dip"
android:textStyle="bold" />
<TextView
android:id="@+id/total1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="5px"
android:text="Duration"
android:layout_below="@id/payment_method1"
android:textSize="15dip"
android:textStyle="bold" />
<TextView
android:id="@+id/duration"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:paddingLeft="65px"
android:layout_toRightOf="@+id/total1"
android:text="duration"
android:textColor="#10bcc9"
android:textSize="15dip"
android:textStyle="bold" />
</LinearLayout>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_below="@id/orderinformation" >
<TextView
android:id="@+id/firstname1"
android:paddingLeft="5px"
android:textSize="15dip"
android:layout_below="@id/total1"
android:text="Title"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/title"
android:text="title"
android:paddingLeft="65px"
android:layout_toRightOf="@+id/firstname1"
android:textSize="15dip"
android:textColor="#10bcc9"
android:textStyle="bold"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</LinearLayout>
</LinearLayout>
source
share