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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T23:18:49+00:00 2026-06-15T23:18:49+00:00

i want to design my interface like this : and i try my code,

  • 0

i want to design my interface like this :

enter image description here

and i try my code, show interface look like this:

enter image description here

i want to make design, any button in top and listview in bottom of button, how ? with listactivity.

i have file Datalist.java like this :

public class DataList extends ListActivity{
 private ListView conListView;
 private CursorAdapter conAdapter;
 public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        conListView=getListView();
        conListView.setOnItemClickListener(viewConListener);

        // map each name to a TextView
        String[] from = new String[] { "nama" };
        int[] to = new int[] { R.id.dataTextView};
        conAdapter = new SimpleCursorAdapter(DataList.this, R.layout.data_list, null, from, to);
        setListAdapter(conAdapter); // set adapter
    }
}

and have data_list.xml like 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" >
<TextView
        xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@+id/dataTextView"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"
        android:gravity="center_vertical"
        android:minHeight="?android:attr/listPreferredItemHeight"
        android:padding="8dp"
        android:textColor="@android:color/white"
        android:textSize="20sp" />
</LinearLayout>

thanks for advance.

  • 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-15T23:18:50+00:00Added an answer on June 15, 2026 at 11:18 pm

    You should use the ListView in an Activity instead of a ListActivity. A ListActivity is an activity which only contains a List. Some example:

    <RelativeLayout>
        <Button ... />
        <ListView ... android:layout_belowTo="@id/button" />
    </RelativeLayout>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to use an interface like this : public interface ResultItem { public
I want to design a webpage login that when click on the login button
I want to design a chat view like BlackBerry messenger (unfortunately new users are
I want to design a music player with ListBox has 2 rows to show
I want to design a new category this category will be separated from the
I have this design: public interface IFactory<T> { T Create(); T CreateWithSensibleDefaults(); } public
I have a design like the own shown below, with one interface extending multiple
I am maintaining an application which has been designed like this: messy code --abuses-->
I'm building an application whose usage is going to look something like this: application
I'm trying to make a design for some sort of IExecutable interface. I will

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.