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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:56:00+00:00 2026-05-28T07:56:00+00:00

In my android app i show a custom dialog. In this dialog i have

  • 0

In my android app i show a custom dialog. In this dialog i have an icon to be showed to the left, a text to be showed adjacent to the icon (horizontally) and a listview to be showed at the bottom. I can’t get this setting the dialog layout horizontal or vertical.
How can i do?
Thx

  • 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-28T07:56:01+00:00Added an answer on May 28, 2026 at 7:56 am

    Use two LinearLayouts. The first should be vertical.

    In this one, there should be two items. First another LinearLayout that is horizontal with the Icon and the Text in it. And the other item in the vertical Layout should be the ListView.

    Something like that:

    <LinearLayout android:layout_width="wrap_content" android:layout_height="wrap_content" android:orientation="vertical">
        <LinearLayout android:layout_width="fill_parent" android:layout_height="wrap_content" android:orientation="vertical">
            <ImageView android:layout_width="wrap_content" android:layout_height="wrap_content" android:src="whatever"/>
            <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="whatever"/>
        </LinearLayout>
        <ListView  android:layout_width="fill_parent" android:layout_height="wrap_content" />
    </LinearLayout>`
    

    Hope this helped

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

Sidebar

Related Questions

In my Android app I want to show a Dialog if the user selects
I have a problem in my Android application. I have a Custom ListView Adapter,
I have a listview utilizing a custom adapter, now I want it to show
I am trying to create an android app which will show multiple web urls
In my Android App i want a popup do show up with a button
I am trying to make a simple android app. It is supposed to show
My android app is keep giving me this error. The application has stopped working
I want to use a custom media controller in my Android app and therefore
I have developed an android app that mainly targets smartphones. However in tablet emulator
I have a custom Dialog that shows a few buttons. The idea is to

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.