Edited version of question"

On Sat, Jul 16, 2011 at 11:40 AM, Goutom <[email protected]> wrote:

> Hi
> I hav two xml file.
>
> 1. main.xml
>
> ------------------------------------------------------------------start------------------------------------------------------------------------------------------------
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
>     android:orientation="vertical" android:layout_width="fill_parent"
>     android:layout_height="fill_parent">
>
>     <RelativeLayout android:id="@+id/listheadercontainer"
>         android:layout_width="wrap_content"
> android:layout_height="wrap_content"
>         android:paddingTop="5dip" android:paddingBottom="5dip"
>         android:paddingLeft="5dip" android:background="#b4b4b4">
>
>         <LinearLayout android:id="@+id/listheadertextcontainer"
>             android:layout_width="wrap_content"
> android:layout_height="wrap_content"
>             android:layout_alignParentLeft="true"
> android:orientation="vertical">
>             <TextView android:id="@+id/listheadertextrow1"
> android:text="Heade1"
>                 android:layout_width="fill_parent"
> android:layout_height="wrap_content"
>                 android:textColor="#000000" />
>
>             <TextView android:id="@+id/listheadertextrow2"
> android:text="Header2"
>                 android:layout_width="fill_parent"
> android:layout_height="wrap_content"
>                 android:textColor="#000000" />
>
>             <TextView android:id="@+id/listheadertextrow3"
> android:text="Header3"
>                 android:layout_width="fill_parent"
> android:layout_height="wrap_content"
>                 android:textColor="#000000" />
>         </LinearLayout>
>
>         <ImageView android:id="@+id/listheadericon"
> android:src="@drawable/listheadericon"
>             android:layout_alignParentRight="true"
> android:layout_width="52dip"
>             android:layout_height="52dip" android:scaleType="fitXY" />
>
>     </RelativeLayout>
>
>     <ScrollView android:id="@+id/iteminscroll"
>         android:layout_width="wrap_content"
> android:layout_height="wrap_content"
>         android:focusable="false" android:clickable="true"
>         android:focusableInTouchMode="false">
>         <LinearLayout android:id="@+id/listcontainer"
>             android:orientation="vertical"
> android:layout_width="wrap_content"
>             android:layout_height="wrap_content" android:focusable="false"
>             android:clickable="true" android:focusableInTouchMode="false">
>         </LinearLayout>
>     </ScrollView>
>
> </LinearLayout>
>
>
> ------------------------------------------------------------------end------------------------------------------------------------------------------
>
> 2.customlistitem.xml
>
> -------------------------------------------------------------------start------------------------------------------------------------------------
> <?xml version="1.0" encoding="utf-8"?>
> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android";
>     android:layout_width="wrap_content"
> android:layout_height="wrap_content"
>     android:paddingTop="5dip" android:paddingBottom="5dip"
>     android:paddingLeft="0dip" android:focusable="false"
> android:clickable="true"
>     android:focusableInTouchMode="false" android:fitsSystemWindows="true"
>     android:orientation="vertical">
>
>     <LinearLayout android:id="@+id/listgroupheader"
>         android:layout_width="wrap_content"
> android:layout_height="wrap_content">
>         <TextView android:id="@+id/listgroupheadertext"
> android:text="Header"
>             android:layout_width="wrap_content"
> android:layout_height="wrap_content" />
>
>     </LinearLayout>
>
>     <RelativeLayout android:layout_width="wrap_content"
>         android:id="@+id/listgg" android:layout_alignParentLeft="true"
>         android:layout_height="wrap_content" android:paddingTop="0dip"
>         android:paddingBottom="0dip" android:paddingLeft="0dip"
>         android:focusable="false" android:clickable="true"
>         android:focusableInTouchMode="false"
> android:fitsSystemWindows="true">
>         <LinearLayout android:orientation="vertical"
> android:id="@+id/itemla"
>             android:layout_alignParentLeft="true"
> android:layout_centerVertical="true"
>             android:layout_width="fill_parent"
> android:layout_height="wrap_content"
>             android:paddingLeft="5dip" android:focusableInTouchMode="true"
>             android:focusable="false">
>
>             <TextView android:id="@+id/upperText"
> android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
> android:textSize="18sp"
>                 android:textStyle="bold" android:textColor="#ffffff"
> android:text="text1" />
>
>             <TextView android:id="@+id/lowerText"
> android:layout_width="wrap_content"
>                 android:layout_height="wrap_content"
> android:textColor="#ffffff"
>                 android:textSize="15sp" android:textStyle="bold"
> android:text="text2" />
>         </LinearLayout>
>
>         <ImageView android:id="@+id/contenticon"
> android:src="@drawable/nonclicked"
>             android:layout_alignParentRight="true"
> android:layout_width="wrap_content"
>             android:layout_height="wrap_content"
> android:paddingRight="4dip" />
>     </RelativeLayout>
>
>     <LinearLayout android:id="@+id/listitemdivider"
>         android:layout_width="fill_parent" android:layout_height="4dip"
>         android:layout_alignParentLeft="true" android:background="#b4b4b4">
>     </LinearLayout>
>
> </LinearLayout>
>
> --------------------------------------------------------------------------end--------------------------------------------------------------------------------------------------
>
>
> I will put "green text code" in "red text code" programatically (  I did
> this ).I want to set focusable the "green text code" xml file(an item).
>
> I tried this:
> android:focusable="false" android:clickable="true"
>         android:focusableInTouchMode="true"
> also this:
> android:focusable="false" android:clickable="false"
>         android:focusableInTouchMode="false"
>
> But these dont work.What to do?
>
> Thanks in advance.
>
> Regards
> Goutom
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to