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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T00:55:13+00:00 2026-06-06T00:55:13+00:00

I am using two button s Date and Time .They are working well .

  • 0

I am using two button s Date and Time .They are working well . but i need to add more button Clear . on click of clear button my Date N Time button should be empty (No date N Time should be display).

<Button
    android:id="@+id/btn_qs_date"
    style="@style/Text.Medium"
    android:layout_width="wrap_content"
    android:layout_height="40dp"
    android:text="Thu, 15/03/2012" />

<Button
    android:id="@+id/btn_qs_time"
    style="@style/Text.Medium"
    android:layout_width="wrap_content"
    android:layout_height="40dp"
    android:layout_marginLeft="10dp"
    android:text="11:00 AM" />

<ImageButton 
    android:id="@+id/reset_date_time"
    android:layout_width="30dp"
    android:layout_height="30dp"
    android:layout_centerHorizontal="true"
    android:layout_gravity="center"
    android:layout_marginLeft="20dp"
    android:background="@drawable/selector_reset_button" />

and my java code is:-

case R.id.btn_reset_radio_test_grp:

    rgYes.setChecked(false);
    rgNo.setChecked(false);
    break;

case R.id.reset_date_time:

    //i will have to write here
break;
  • 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-06T00:55:15+00:00Added an answer on June 6, 2026 at 12:55 am
    clearButton.setOnClickListener(new OnClickListener() {
    
                    @Override
                    public void onClick(View v) {
                        btn_qs_date.setText("");
                        btn_qs_time.setText("");
                    }
                });
    

    Where clearButton is your clearButton in your UI

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

Sidebar

Related Questions

Here i am using a radio button to calculate the date difference between two
I'm trying to get selected dates using two date and time picker (like fromdate
Hello I am using two buttons which on click show date picker dialog and
I have two forms. First one is to decide button numbers by using jslider.
I need to compare two calendar dates. I wrote the javascript function too. But
I am using two viewcontrollers in my application. I have a button in my
I have two datagridview inside a winform. I need to reload with a button
I am using two view controllers. On button action of first view controller i
I have created an alert view with two buttons using the following code: UIAlertView
I'm using two functions one is from this site http://ryanfait.com/resources/custom-checkboxes-and-radio-buttons/ and its using function

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.