Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7951803
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:40:20+00:00 2026-06-04T02:40:20+00:00

I connent an addevent.java with addevent.xml is content a listview, the listview take its

  • 0

I connent an addevent.java with addevent.xml is content a listview, the listview take its element from another XML file “item.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" >

        <Button
            android:id="@+id/d"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_alignParentRight="true"
            android:layout_alignParentTop="true"
            android:drawablePadding="0dip"
            android:drawableRight="@drawable/icon_name" />

        <EditText
            android:id="@+id/en"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_alignParentTop="true"
            android:layout_toLeftOf="@+id/d" >
        </EditText>

</LinearLayout>

now I need to findviewbyId not from basic xml file but form another “item.xml”

I tried LayoutInflater as this, code but it isn’t work:

public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.addevent);
        myList = (ListView) findViewById(R.id.MyList);
        myList.setItemsCanFocus(true);
        myAdapter = new MyAdapter();
        myList.setAdapter(myAdapter);


        final LayoutInflater factory = getLayoutInflater();

        final View textEntryView = factory.inflate(R.layout.item, null);

        tvDisplayDate = (EditText)textEntryView.findViewById(R.id.editd);
        btnChangeDate=(Button)textEntryView.findViewById(R.id.d);

any help please

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T02:40:21+00:00Added an answer on June 4, 2026 at 2:40 am

    From insinde your MyAdapter class you can override the getView method (that’s the one that produces the item renderers on demand).

    After recycling / inflating the proper layout for the current item (say convertView), you can access all of its children using the findViewById method called on the convertView:

        @Override
        public View getView(int position, View convertView, ViewGroup parent)
        {
            // initialize, inflate convertView from your layout if needed; 
            tvDisplayDate = (EditText)convertView.findViewById(R.id.editd);
            // populate convertView with the item's details
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Content of profile.xml: <files> <file folder=CaptureServer filename=CSConfig object=CSConfig> <Profile name=BBH1200Kofax> <OutputCache>\</OutputCache> <EncryptedConnectionString>564rgr=</EncryptedConnectionString> <ConvertDocsBeforeRelease>false</ConvertDocsBeforeRelease> </Profile>
content = ; $.each(data.response, function(i, y){ $(div#userBox_+id+ div#+tab+File).html(content); $(div#userBox_+id+ div#+tab+File tr.) content=<table class='crmTable'><tr><th colspan='3'>+y.email.email+</th></tr>;
How do I append a new Element into another? The code below is using
Content type Events has intro, body and an event date field (using Date module).
Content: 1. Text is here. 20. More text. Why does this Vim search and
The Content Assist in Eclipse 3.4 and 3.5 has stopped working for me. When
My content table looks like ( contentID , title , created ). I need
Set content of table ... ViewState[Table1] = Table1; // When remove this line, table
header(Content-type: image/gif); readfile($filename); The above can only be used to show gif images. Is
i wonder if below, generating content the jQuery 1.4 way $(<div />, { class:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.