Adding xml to java ViewFlipper


Last Updated:

  1. Roopa

    Roopa New Member This Topic's Starter

    Joined:
    Oct 5, 2009
    Messages:
    3
    Likes Received:
    0
    Can please anyone suggest how to generate/write java code out of the below xml


    <?xml version="1.0" encoding="utf-8"?>
    <ViewFlipper xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/flipper"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#00FF00">
    <TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textColor="#000000"
    android:text="@string/hello_view_1"
    />

    </LinearLayout>

    <LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#FF0000">
    <TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textColor="#000000"
    android:text="@string/hello_view_2"
    />
    </LinearLayout>


    <LinearLayout
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:background="#00FF00">
    <TextView
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
    android:textColor="#000000"
    android:text="@string/hello_view_3"
    />
    </LinearLayout>

    </ViewFlipper>
     

    Advertisement
  2. neerajj50

    neerajj50 New Member

    Joined:
    Apr 5, 2011
    Messages:
    1
    Likes Received:
    0
    Hello Every body,
    I need to build App like BBC new Where once a news selected Add all the Classified news of gallery into viewflpper..................
    :confused:
     

Share This Page

Loading...