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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T09:03:13+00:00 2026-06-06T09:03:13+00:00

I am currently trying to get my UI to have a Title Bar, a

  • 0

I am currently trying to get my UI to have a Title Bar, a bottom Button bar, with a ScrollView in between. I can get bits and pieces of it to work, but once I get a different piece working, the old part goes back to not showing up. Here is a picture of my UI on the left, with what I want it to look like on the right…(sorry for the sloppiness, I edited it in MS Paint 😛 )

To sum it up, I want the Version and Type fields to be moved with room for the other TextViews in the XML file, and I want both buttons to appear on the bottom bar.

enter image description here

EDIT :

The buttons on the bottom should be equal in size, I’m not too talented in making boxes in MS Paint

EDIT 2 :
Sorry….here is my XML file

<?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"
android:weightSum="1.0" >
    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" >
            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center_horizontal"
                android:text="SN : " />

            <TextView
                android:id="@+id/serialNumberView"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center_horizontal" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center_horizontal"
                android:text="Ver : " />

            <TextView
                android:id="@+id/versionView"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center_horizontal" />

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center_horizontal"
                android:text="Type : " />

            <TextView
                android:id="@+id/typeView"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center_horizontal" />

    </LinearLayout>

    <ScrollView
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_weight="1" >

            <LinearLayout
                android:layout_width="wrap_content"
                android:layout_height="wrap_content" 
                android:orientation="vertical"
                android:layout_weight="1">


                    <CheckBox
                        android:id="@+id/floatCheck"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Float" />

                    <CheckBox
                        android:id="@+id/tripCheck"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Trip" />

                    <CheckBox
                        android:id="@+id/closeCheck"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Close" />

                    <CheckBox
                        android:id="@+id/blockedCheck"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Blocked" />

                    <CheckBox
                        android:id="@+id/hardTripCheck"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Hard Trip" />

                    <CheckBox 
                        android:id="@+id/phaseAngleCheck"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Phase angle wrong for closing" />

                    <CheckBox
                        android:id="@+id/diffVoltsCheck"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Differential volts too low" />

                    <CheckBox
                        android:id="@+id/networkVoltsCheck"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Network volts too low to close" />

                    <CheckBox
                        android:id="@+id/usingDefaultsCheck"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Using Defaults( Reprogram )" />

                    <CheckBox
                        android:id="@+id/relaxedCloseActiveCheck"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Relaxed Close Active" />

                    <CheckBox
                        android:id="@+id/commBoardDetectedCheck"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Comm Board Detected" />

                    <CheckBox 
                        android:id="@+id/antiPumpBlock"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Anti-Pump Block" />

                    <CheckBox
                        android:id="@+id/motorCutoffCheck"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Motor Cutoff Inhibit" />

                    <CheckBox
                        android:id="@+id/phaseRotationCheck"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text="Phase Rotation Wrong" />

                    <CheckBox
                        android:id="@+id/usingDefaultDNPCheck"
                        android:layout_width="wrap_content"
                        android:layout_height="wrap_content"
                        android:text= "Using Default DNP Profile" />
            </LinearLayout>
    </ScrollView>

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:orientation="horizontal"
        android:layout_weight="1" >

        <Button
            android:id="@+id/button3"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:text="Back" />

        <Button
            android:id="@+id/button3"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:text="Read" />
    </LinearLayout>
</LinearLayout>
  • 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-06T09:03:16+00:00Added an answer on June 6, 2026 at 9:03 am

    try this

    <?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"
    android:weightSum="1.0" >
        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content" 
           android:weightSum="9"
           android:gravity="center"
            >
                <TextView
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:gravity="center_horizontal"
                    android:text="SN : "
    
                    android:layout_weight="1" />
    
                <TextView
                    android:id="@+id/serialNumberView"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:gravity="center_horizontal"
                     android:layout_weight="2" 
                     android:text="saasdasd ssadasd sadas asd sd sd"/>
    
                <TextView
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:gravity="center_horizontal"
                    android:text="Ver : "
                     android:layout_weight="1" />
    
                <TextView
                    android:id="@+id/versionView"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:gravity="center_horizontal"
                    android:layout_gravity="center"
                     android:layout_weight="2"
                      android:text="saasdasd ssadasd sadas asd sd sd" 
                    />
    
                <TextView
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:gravity="center_horizontal"
                    android:text="Type : "
                    android:layout_gravity="center"
                       android:layout_weight="1" 
    
                     />
    
                <TextView
                    android:id="@+id/typeView"
                    android:layout_width="0dp"
                    android:layout_height="wrap_content"
                    android:gravity="center_horizontal"
                    android:layout_gravity="center"
                      android:layout_weight="2" 
                       android:text="saasdasd ssadasd sadas asd sd sd" />
    
        </LinearLayout>
    
        <ScrollView
            android:layout_width="fill_parent"
            android:layout_height="fill_parent"
            android:layout_weight="1" >
    
                <LinearLayout
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content" 
                    android:orientation="vertical"
                    android:layout_weight="1">
    
    
                        <CheckBox
                            android:id="@+id/floatCheck"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="Float" />
    
                        <CheckBox
                            android:id="@+id/tripCheck"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="Trip" />
    
                        <CheckBox
                            android:id="@+id/closeCheck"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="Close" />
    
                        <CheckBox
                            android:id="@+id/blockedCheck"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="Blocked" />
    
                        <CheckBox
                            android:id="@+id/hardTripCheck"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="Hard Trip" />
    
                        <CheckBox 
                            android:id="@+id/phaseAngleCheck"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="Phase angle wrong for closing" />
    
                        <CheckBox
                            android:id="@+id/diffVoltsCheck"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="Differential volts too low" />
    
                        <CheckBox
                            android:id="@+id/networkVoltsCheck"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="Network volts too low to close" />
    
                        <CheckBox
                            android:id="@+id/usingDefaultsCheck"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="Using Defaults( Reprogram )" />
    
                        <CheckBox
                            android:id="@+id/relaxedCloseActiveCheck"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="Relaxed Close Active" />
    
                        <CheckBox
                            android:id="@+id/commBoardDetectedCheck"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="Comm Board Detected" />
    
                        <CheckBox 
                            android:id="@+id/antiPumpBlock"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="Anti-Pump Block" />
    
                        <CheckBox
                            android:id="@+id/motorCutoffCheck"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="Motor Cutoff Inhibit" />
    
                        <CheckBox
                            android:id="@+id/phaseRotationCheck"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text="Phase Rotation Wrong" />
    
                        <CheckBox
                            android:id="@+id/usingDefaultDNPCheck"
                            android:layout_width="wrap_content"
                            android:layout_height="wrap_content"
                            android:text= "Using Default DNP Profile" />
                </LinearLayout>
        </ScrollView>
    
        <LinearLayout
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:orientation="horizontal"
            android:weightSum="1" >
    
            <Button
                android:id="@+id/button3"
                android:layout_width="0dp"
                android:layout_height="fill_parent"
                android:text="Back"
                android:layout_weight=".5" />
    
            <Button
                android:id="@+id/button3"
                android:layout_width="0dp"
                android:layout_height="fill_parent"
                android:text="Read"
                android:layout_weight=".5" />
        </LinearLayout>
    </LinearLayout>
    

    enter image description here

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

Sidebar

Related Questions

Trying to get a list of all substrings currently I have a function but
I have a list box and i am trying to get currently checked item
I'm trying to get a certain data from mysql with fetchAll. I currently have
I am trying to get MSTest working with CruiseControl.Net. I currently have it working
I have been trying to get this to work correctly and I think I
I am trying to implement swiping between pages on my Application. I currently have
I am trying to get my navigation bar to have a current page indicator
I am trying to get the zip code of the users current location.I have
Im trying to write something to get my images to show correctly. I have
I'm currently trying to get the most popular productID from my MSSQL Database. This

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.