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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:28:50+00:00 2026-05-26T12:28:50+00:00

I have a custom Title Bar so I want that when the user types

  • 0

I have a custom Title Bar so I want that when the user types the username and password in Login Activity the Title Bar shouldn’t hide. But, unfortunately it does get hide. I tried using android:windowSoftInputMode= "adjustPan but still the Title Bar gets hide.

So, how can I show both Title Bar and Softkeyboard?

Here are my screen shot,

This is my Login Activity

enter image description here

This is when I click on the EditText and the Title Bar gets Hide.

enter image description here

This is my xml for Login Activity.

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:background="@android:color/white">

    <TableLayout android:id="@+id/tbl_layout" 
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" android:layout_marginRight="5dip"
        android:layout_marginLeft="5dip" android:layout_centerInParent="true">
        <TableRow android:weightSum="10">
            <TextView android:layout_weight="3" android:layout_width="0dp"
                android:layout_height="wrap_content" android:text="Username:"
                android:textColor="@color/dark_purple" />
            <EditText android:id="@+id/et_username" 
                android:layout_weight="7" android:layout_width="0dp"
                android:layout_height="wrap_content" android:hint="Username"
                android:singleLine="true"
                android:background="@drawable/edit_text_select"
                android:padding="8dip"
                 />
        </TableRow>

        <TableRow android:weightSum="10" android:layout_marginTop="10dip">
            <TextView android:layout_weight="3" android:layout_width="0dp"
                android:layout_height="wrap_content" android:text="Password:"
                android:textColor="@color/dark_purple" />
            <EditText android:id="@+id/et_password" 
                android:layout_weight="7" android:layout_width="0dp"
                android:layout_height="wrap_content" android:hint="Password"
                android:singleLine="true" 
                android:password="true"
                android:padding="8dip"
                android:background="@drawable/edit_text_select"/>
        </TableRow>
    </TableLayout>

    <LinearLayout android:layout_below="@id/tbl_layout" 
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" android:gravity="right"
        android:layout_marginTop="10dip">
        <Button android:id="@+id/btn_login" 
            android:layout_height="wrap_content"
            android:layout_width="wrap_content" android:padding="15dp"
            android:text="Login" android:layout_marginRight="15dip"
            android:onClick="myOnClick"
            android:textColor="@android:color/white"
            android:background="@color/dark_purple"/>
    </LinearLayout>

</RelativeLayout>
  • 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-26T12:28:50+00:00Added an answer on May 26, 2026 at 12:28 pm

    I am sure you have taken all the views just in one RelativeLayout.

    And also if you taken ScrollView then put the Titlebar textview outside the ScrollView. I was facing the same issue and had resolved by making this trick.

    And if you post the XML layout here then it would be great to rectify the exact problem.

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

Sidebar

Related Questions

I have a form that I would like to draw a custom title bar
friends, i have created custom title bar using following titlebar.xml file with code <?xml
I have custom classes that I currently instantiate within App.xaml as resources. I want
I have a custom title bar requestWindowFeature(Window.FEATURE_CUSTOM_TITLE); setContentView(R.layout.activities); getWindow().setFeatureInt(Window.FEATURE_CUSTOM_TITLE, R.layout.custom_title); Which works basically fine.
I have an application which uses a custom title bar. However, when my application
I have a large activity that contains 100 or more buttons. But it's working
I have a JFrame that displays a Java icon on the title bar (left
I want to customize the title bar for an Android application. I have the
I have a custom title bar set on my TabActivity. The custom title bar
I have the same problem like this question: Custom title bar in PreferenceActivity? After

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.