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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T12:55:32+00:00 2026-06-15T12:55:32+00:00

I am trying to figure out how the UI was designed for the Android

  • 0

enter image description here

I am trying to figure out how the UI was designed for the Android Alarm Clock app.
This appears to be using the Holo Dark Theme.

The screenshot included is the Create/Edit Alarm Activity screen. It looks similar to Android Settings. Is this case? Because the “Turn the alarm on” & “Vibrate” rows look like ChexboxPreferences. The “Ringtone” row looks like a RingtonePreference. What about the “Time” row?

As @eric mentioned in the comments to one of the answers below, I am trying to recreate a similar interface to the alarm clock app. I do not want to send an intent to start the Alarm Manager from my app.

What about the “Label” row? That functions a lot like an EditText view. Can you have a combination of Views and Preferences inside a PreferenceScreen xml tag?

Also the ActionBar has a vertical pipe, I am not sure how this was created but is the “Done” view an ImageButton?

I am not completely convinced that it is a combination of Preferences, since the Alarm app can have multiple alarms and not just one alarm. If there are multiple alarms and you don’t use multiple SharedPreferences files, it would naturally make sense to create a content provider to store the information related to multiple alarms.

  • 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-15T12:55:34+00:00Added an answer on June 15, 2026 at 12:55 pm

    The stock alarm clock app is open source, so check it out by yourself.

    Preference Layout see here:

    <?xml version="1.0" encoding="utf-8"?>
    <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
        android:title="@string/set_alarm">
        <CheckBoxPreference android:key="on" 
            android:title="@string/enable"/>
        <Preference android:key="time" 
            android:title="@string/time"/>
        <com.android.alarmclock.AlarmPreference
            android:key="alarm" 
            android:title="@string/alert"
            android:ringtoneType="alarm"
            android:showDefault="false"
            android:showSilent="false" />
        <CheckBoxPreference android:key="vibrate" 
            android:title="@string/alarm_vibrate"/>
        <com.android.alarmclock.RepeatPreference
            android:key="setRepeat" 
            android:title="@string/alarm_repeat" />
        <EditTextPreference android:key="label"
            android:title="@string/label"
            android:dialogTitle="@string/label" />
    </PreferenceScreen>
    

    Preference activity see here, note that, the links I referenced are not from the head revision.

    Some highlights:

    • Time is a plain android.preference.Preference, backed by TimePickerDialog.
    • Ringtone is a customized implementation of android.preference.RingtonePreference.
    • Repeat is a customized implementation of android.preference.ListPreference.
    • Alarms are managed by a static class com.android.alarmclock.Alarms which use Content Providers store the actual information.
    • Holo theme is used by default since Android 4.0, on other Android version, you may see different theme. Note that the app implementation may also changed by different android version or device vendor.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to figure out how I can do this properly. The print_r looks like
trying to figure out why this is happening - I have an input text
Trying to figure out why my silverlight app suddenly just displays nothing (right click
I have a Windows Form app in C# and am trying to figure out
I've been trying to figure this out and make it work, but as I'm
I'm trying to figure out how to make a horizontal line in Qt. This
I'm having one hell of a headache trying to figure this out for myself,
Trying to figure out how to type (via events not set the value) on
Trying to figure out a regex for validating a network path ie: \\comp\xyz or
Trying to figure out why my recipient multiselect isn't validating on form submission. Should

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.