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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T14:54:57+00:00 2026-06-15T14:54:57+00:00

I have defined a view flipper like this : <?xml version=1.0 encoding=utf-8?> <RelativeLayout xmlns:tools=http://schemas.android.com/tools

  • 0

I have defined a view flipper like this :

    <?xml version="1.0" encoding="utf-8"?>
    <RelativeLayout xmlns:tools="http://schemas.android.com/tools"
        android:orientation="horizontal" android:layout_width="match_parent"
        android:layout_height="match_parent" android:layout_marginRight="5dp"
        xmlns:android="http://schemas.android.com/apk/res/android">

        <TextView android:id="@+id/Heading001" android:gravity="center"
            android:layout_width="105dp" android:layout_height="40dp"
            android:layout_marginLeft="10dp" android:layout_marginRight="20dp"
            android:layout_marginTop="5dp" android:text="XXX" android:textSize="25sp"
            android:background="@drawable/rectanglefield" android:textAppearance="?android:attr/textAppearanceMedium" />


        <TextView android:id="@+id/tvLongName" android:layout_width="wrap_content"
            android:layout_height="wrap_content" android:layout_alignParentBottom="false"
            android:layout_alignParentTop="true" android:layout_marginTop="0dp"
            android:gravity="center" android:layout_toRightOf="@+id/Heading001"
            android:text="XXX" android:textAppearance="?android:attr/textAppearanceMedium"
            android:typeface="normal" />

        <TextView android:id="@+id/tvUsage" android:layout_below="@+id/tvLongName"
            android:layout_toRightOf="@id/Heading001" android:layout_height="wrap_content"
            android:layout_width="wrap_content" android:layout_marginRight="5dp"
            android:textColor="#ff0000" android:text="R"
            android:textAppearance="?android:attr/textAppearanceMedium" />

        <TextView android:id="@+id/tvCardinality"
            android:layout_height="wrap_content" android:layout_width="50dp"
            android:layout_alignParentRight="false" android:layout_below="@+id/tvLongName"
            android:layout_toRightOf="@+id/tvUsage" android:layout_marginRight="5dp"
            android:text="(0..1)" android:textAppearance="?android:attr/textAppearanceMedium" />

        <TextView android:id="@+id/tvDatatype" android:gravity="center_vertical"
            android:layout_width="wrap_content" android:layout_height="40dp"
            android:layout_marginLeft="10dp" android:layout_marginRight="15dp"
            android:layout_marginTop="5dp" android:layout_alignParentRight="true"
            android:text="XX" android:textColor="#000000" android:background="@drawable/rectanglewhite"
            android:textSize="25dp" android:textAppearance="?android:attr/textAppearanceMedium" />

        <ViewFlipper android:id="@+id/viewFlipper1"
            android:layout_width="fill_parent" android:layout_height="fill_parent"
            android:layout_alignRight="@+id/Heading001" android:layout_weight="1"
            android:layout_marginRight="50dp">
            <include android:id="@+id/flipperView02" android:layout_width="wrap_content"
                layout="@layout/detail_item_view02" />
            <include android:id="@+id/flipperView01" android:layout_width="wrap_content"
                layout="@layout/detail_item_view01" />
        </ViewFlipper>
    </RelativeLayout>

The flipperView01 view is then defined like this :

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout  xmlns:tools="http://schemas.android.com/tools" 
    android:orientation="horizontal"
    android:layout_width="fill_parent" 
    android:layout_height="wrap_content" 
    xmlns:android="http://schemas.android.com/apk/res/android">

    <TextView android:id="@+id/tvNotes"
        android:layout_width="wrap_content" 
        android:layout_height="wrap_content" 
        android:layout_marginTop="55dp" 
        android:text="abcdef ef abcdef abcdef " 
        android:textAppearance="?android:attr/textAppearanceMedium"/>

</LinearLayout>

The problem I have is that I would like the TextView in the “flipperView01” to be the full width of the dialog, currently it is not is is only very narrow

enter image description here

How do I fix this?

  • 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-15T14:54:58+00:00Added an answer on June 15, 2026 at 2:54 pm

    To solve the problem remove the android:layout_alignRight="@+id/Heading001" property from the ViewFlipper as that will align the right margin of the ViewFlipper with the Heading001 TextView‘s right margin(and that TextView has a limited dimension).

    Also regarding your layout:

    • the layout_weight is useless in a RelativeLayout
    • you should use the @+id/theId notation only for the first occurrence of that id in the layout, in the next places where you would use the id you would simply use @id/theId
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ViewFlipper defined that contains 3 views... <?xml version=1.0 encoding=utf-8?> <ViewFlipper xmlns:android=http://schemas.android.com/apk/res/android
I have defined a class XX like this: public class XX extends RelativeLayout {
Is there any defined View to have a slider like this?? Can i keep
I have a view defined for a url 'site/main/'. I would like to be
I have grid something like this: Ext.define('Exp.view.dashboard.Tv', { extend: 'Ext.grid.Panel', initComponent: function() { this.columns
I have defined a List View in xml as below <ListView android:id=@+id/mylist android:layout_width=fill_parent android:layout_height=wrap_content
I have a ViewFlipper defined in a separate class. It looks like this: public
I would like implement a button to show another view. I have defined the
I have defined some models like this (Entity Framework Code-First): public class A {
I have defined my binding thus: <TreeView ItemsSource={Binding UsersView.View} ItemTemplate={StaticResource MyDataTemplate} /> The CollectionViewSource

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.