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 6991267
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:28:35+00:00 2026-05-27T19:28:35+00:00

I currently have an xml layout called quests.xml: <?xml version=1.0 encoding=utf-8?> <RelativeLayout xmlns:android=http://schemas.android.com/apk/res/android android:layout_width=fill_parent

  • 0

I currently have an xml layout called quests.xml:

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    android:layout_marginTop="10dip">
        <Button
        android:id="@+id/btn_load_quests"
        android:layout_width="100dip"
        android:layout_height="wrap_content"
        android:layout_alignParentLeft="true"
        android:layout_marginTop="15dip"
        android:layout_marginLeft="110dip"
        android:text="Load Quests" />
        <TextView
        android:id="@+id/quest_title"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textSize="8pt"
        android:textColor="#FFFFFF"
        android:layout_alignParentLeft="true"
        android:text="buy 2 cups of coffee"/>
        <TextView
        android:id="@+id/quest_price"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textSize="10pt"
        android:textColor="#00C322"
        android:layout_below="@id/quest_title"
        android:text="$25" />
        <TextView
        android:id="@+id/quest_points"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:textSize="10pt"
        android:textColor="#1D81C1"
        android:layout_below="@id/quest_price"
        android:layout_alignParentLeft="true"
        android:text="25 pts" />
        <Button
        android:id="@+id/btn_select_quest"
        android:layout_width="100dip"
        android:layout_height="wrap_content"
        android:layout_alignParentRight="true"
        android:layout_below="@id/quest_points"
        android:text="1" />
</RelativeLayout>

I wanted to know how I can use the id in multiple cases (multiple quest_titles, etc) like a list. Im loading the data from mysql and I wanted to know how to handle multiple rows. Basically something like the equivalent of classes in css.

  • 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-27T19:28:35+00:00Added an answer on May 27, 2026 at 7:28 pm

    If you load data from mysql you’ll need some adapter. You don’t need multiple ids, because you inflate multiple views, each representing a single row of your list. Example: http://sudarmuthu.com/blog/using-arrayadapter-and-listview-in-android-applications

    If you’re looking for css equivalent, then you should read about styles and themes. With them it’s easy to make many elements look the same.

    When it comes to multiple ids – you can’t use multiple ids within one layout.

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

Sidebar

Related Questions

Currently, I have this version of the autocomplete control working when returning XML from
I have a textbox in one XML layout file.Currently I'm using the R.layout.main (other
Short Question I have a 50dip by 40dip button in my Android XML layout.
I have 2 layout xml files: highlights.xml and highlights_cell.xml. Here is a simplified version
Currently I have an xml structure in an app. I needed to convert it
Hi currently I have a nested XMl , having the following Structure : <?xml
I currently have a datasource from a client in the form of XML, this
I am currently watching an XML file from log4j output. I have a custom
I have an activity using an xml layout where a WebView is embedded. I
I currently have a listview which contains a couple of strings. These are called

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.