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

  • Home
  • SEARCH
  • 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 7172661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:39:38+00:00 2026-05-28T15:39:38+00:00

From what I understand the <include> tag is basically a copy and paste so

  • 0

From what I understand the <include> tag is basically a copy and paste so I created a view with a couple textviews in it and I replicate that a few times

<LinearLayout
        android:id="@+id/linearLayout1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:orientation="horizontal" 
        android:background="#000000">

            <include android:id="@+id/frame_one" layout="@layout/frame_layout_normal"/>
            <include android:id="@+id/frame_two" layout="@layout/frame_layout_normal"/>
            <include android:id="@+id/frame_three" layout="@layout/frame_layout_normal"/>
            <include android:id="@+id/frame_four" layout="@layout/frame_layout_normal"/>
            <include android:id="@+id/frame_five" layout="@layout/frame_layout_normal"/>
            <include android:id="@+id/frame_six" layout="@layout/frame_layout_normal"/>
            <include android:id="@+id/frame_seven" layout="@layout/frame_layout_normal"/>
            <include android:id="@+id/frame_eight" layout="@layout/frame_layout_normal"/>
            <include android:id="@+id/frame_nine" layout="@layout/frame_layout_normal"/>
            <include android:id="@+id/frame_ten" layout="@layout/frame_layout_last"/>

    </LinearLayout> 

now my question is how can I change the textview text individually for each of the include tags I created?

obviously I have to get the layout’s view id but not sure what to do after that?

this is all that is in the frame_layout_normal

    <TextView android:layout_height="50dp"
    android:id="@+id/frame_name"
    android:layout_width="121dip"
    android:layout_alignParentTop="true"
    android:gravity="center"
    android:textColor="#000000"
    android:layout_marginTop="2dip"
    android:background="#ffffff"
    android:textAppearance="?android:attr/textAppearanceLarge"/>

<TextView android:id="@+id/frame_number"
    android:layout_height="50dp"
    android:layout_width="121dip"
    android:layout_below="@+id/frame_name"
    android:gravity="center"
    android:textColor="#000000"
    android:layout_marginTop="2dip"
    android:background="#ffffff"
    android:textAppearance="?android:attr/textAppearanceLarge"/>
  • 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-05-28T15:39:39+00:00Added an answer on May 28, 2026 at 3:39 pm

    This should work if you wrap the contents of frame_layout_normal in a LinearLayout:

    LinearLayout frameOne = (LinearLayout) findViewById(R.id.frame_one);
    TextView frameOneName = (TextView) frameOne.findViewById(R.id.frame_name);
    

    <include> lets you set the id for the top level element, which you are already doing, so just use those ids to get your frames.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

From what I understand, the output from the following script should include Win32_PerfRawData_PerfDisk_PhysicalDisk in
I am using DBus in a project. I understand from DBus specification that for
From what I understand, the parent attribute of a db.Model (typically defined/passed in the
From what I understand, due to the same origin policy enforcement in current browsers,
From what I understand, in TDD you have to write a failing test first,
From what I understand of the SDK, this exception is raised when the bindings
From what I understand of REST principles, URLs should represent a single resource, like
From what I understand, the best way to deal with dates in the Zend
From what I understand, the trade-off here is a matter of added complexity. Maybe?
From what I understand livequery is for maintaining your events after DOM changes. Does

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.