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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:10:14+00:00 2026-05-27T19:10:14+00:00

The New York Times app seems to have a SlideDrawer that pulls down over

  • 0

The New York Times app seems to have a SlideDrawer that pulls down over a ListAdapter. This is the effect I am trying to accomplish. I have a custom listadapter that works fine on its own, and I have a slidedrawer that works fine, on its own. They are two separate Activities. I want to merge the two so that there is a slidedraw over the listadapter.

I have tried SetContentView on the ListActivity that implements my ArrayAdapter to the xml file that houses the slide drawer, but i get a forceclose. I think its because a listadapter is essentially a bunch of tiny inflated views of the same xml layout, and I’m trying to run two layouts at the same time. I’ve thought maybe the answer lies in how the xml file is laid out but honestly have no idea.

anyways here’s the code:

import android.view.View;
import android.net.Uri;
import android.os.Bundle;
import android.widget.AdapterView;
import android.widget.Button;
import android.widget.SlidingDrawer;
import android.widget.AdapterView.OnItemClickListener;
import android.app.Activity;
import android.app.ListActivity;
import android.content.Intent;

public class BandApp extends ListActivity {
/** Called when the activity is first created. */


@Override
public void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

//here is where I have tried setting slidedrawer layout 
    setContentView(R.layout.slidedrawer)

    Activity activity = this;
    activity.setTitle("@$@#$$@$#$");


    final String[] values = {"Litem0","Litem1","Litem2","Litem3","Litem4","Litem5"};

    MyAdapter Adapter = new MyAdapter(this, values);
    setListAdapter(Adapter);

and for the xml:

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="85dp"
>
<TextView
android:layout_height="0dp"
android:layout_width="0dp"
android:id="@+id/textlayout"
/>
</LinearLayout>

Like I said, they both work fine on there own but I’m wondering how to merge the two and gain the effect found on the New York Times app. Thank you.

Here is an image of what i’m talking about. The “dine and wine” at the top pulls down, so I’m guessing its a slidedrawer?:

enter image description here

  • 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-27T19:10:15+00:00Added an answer on May 27, 2026 at 7:10 pm

    A Sliding drawer may only come from the bottom, or the right. It cannot come from the top. You could check out this question for some possible solutions.

    However the code you have won’t even get you a normal sliding drawer. What you need is both a ListView and a SlidingDrawer (with handle, etc) in your XML, and all of that should be in a layout that allows things to overlap, like RelativeLayout. Then in your activity, you will set that as the content view.

    There is a recipe here, that will get a ListView to be above a SlidingDrawer, which can sometimes be tricky

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

Sidebar

Related Questions

I have data that is reliably in this format: 1. New York Times -
I am trying to extract the body of new york times movie reviews in
Check out this page from the New York Times: http://homedelivery.nytimes.com/HDS/learnMorePopUp.do ?mode=common.learnMorePopUp &productId=NDS &prodRate=7.40 I
I have string: new y,[[new york,0,[]],[new york times,0,[] I want these string betwent [
I have an app that stores times in GMT, but associated with airports which
Does anyone know how the look of the New York Times iPad app (specifically
I'm really close having a script that fetches JSON from the New York Times
Given a set Paris New York London New York Paris Paris I'm trying to
I have the Lat/Long value of New York City, NY; 40.7560540,-73.9869510 and a flat
I'm trying to use mechanize to grab prices for New York's metro-north railroad from

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.