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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:22:02+00:00 2026-05-26T03:22:02+00:00

I hid my notification bar and title bar using below code. But Now, I

  • 0

I hid my notification bar and title bar using below code. But Now, I want to create this notification bar and title bar in response to touch. If I touch my emulator screen, I want to show my notification and title bar after automatically hiding them when I touched that time only I need this notification and title bar that’s all.

 requestWindowFeature(Window.FEATURE_NO_TITLE);
 getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                 WindowManager.LayoutParams.FLAG_FULLSCREEN);

This is my xml file…..
main.xml

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout android:orientation="vertical" 
    android:layout_width="fill_parent"
    android:layout_height="wrap_content"
   xmlns:android="http://schemas.android.com/apk/res/android">
<Gallery xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/videoGrdVw" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:spacing="60px"
    android:background="@drawable/bk1"
    />
<LinearLayout 
    android:layout_height="100px" 
    android:id="@+id/Header" 
    android:background="@drawable/images1"
    android:orientation="horizontal" 
    android:layout_alignParentTop="true" 
    android:layout_width="match_parent">

</LinearLayout> 
<LinearLayout 
    android:layout_height="100px" 
    android:layout_width="fill_parent"
    android:background="@drawable/images2" 
    android:id="@+id/Footer" 
    android:orientation="horizontal" 
    android:layout_alignParentBottom="true"
    >
 </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-26T03:22:03+00:00Added an answer on May 26, 2026 at 3:22 am

    You need to create an onTouchListener on your main layout element.

    This will:

    • Allow you to capture touch events for the entire portion of the screen your application occupies
    • Detect DOWN and UP touch events

    Something like this would work:

    mainlayout.setOnTouchListener(new OnTouchListener() {
             @Override
              public boolean onTouch(View v, MotionEvent event) {
              if(event.getAction() == MotionEvent.ACTION_DOWN) {
                  //Code to ENABLE titlebar
              }
              else if(event.getAction() == MotionEvent.ACTION_UP) {
                   //Code to DISABLE titlebar
              }
              return false;
         }
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i am using the below class to hid the task bar. but the problem
How can I create a virtual HID device in code? I'm trying to avoid
I am acquiring data with an HID device. The code below is a rough
I’m interested in using libhid to access a custom HID device that we are
I have a notification bar that appears at the top of a page, then
I have designed a standalone application using swings which can read data from HID
I have a USB Joystick, and I want to write my own HID driver
var polygon = new GPolygon(polylines[0],#FFFFFF, 1, 1.0, color,opacity); polygon.hid = this.id; polygon.heat = this.heat;
I can tell how many USB HID devices I have (7), but every time
I am reading data from a HID device using hiddev , there is a

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.