help for source for my program


Last Updated:

  1. killerkyle113

    killerkyle113 New Member This Topic's Starter

    Joined:
    Jan 23, 2009
    Messages:
    1
    Likes Received:
    0
    ok i have the xml code down no problem and the premise for my program in my head but i can not for the life of me get the source to do what i want heres the xml code

    Code (Text):
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <AbsoluteLayout
    3. android:id="@+id/widget0"
    4. android:layout_width="fill_parent"
    5. android:layout_height="fill_parent"
    6. xmlns:android="http://schemas.android.com/apk/res/android"
    7. >
    8. <DigitalClock
    9. android:id="@+id/widget28"
    10. android:layout_width="wrap_content"
    11. android:layout_height="wrap_content"
    12. android:text="8:54 PM"
    13. android:layout_x="126px"
    14. android:layout_y="23px"
    15. >
    16. </DigitalClock>
    17. <TextView
    18. android:id="@+id/widget29"
    19. android:layout_width="290px"
    20. android:layout_height="wrap_content"
    21. android:text="and i would like my phone to turn off in"
    22. android:layout_x="37px"
    23. android:layout_y="49px"
    24. >
    25. </TextView>
    26. <TextView
    27. android:id="@+id/widget30"
    28. android:layout_width="66px"
    29. android:layout_height="wrap_content"
    30. android:text="Its"
    31. android:layout_x="139px"
    32. android:layout_y="6px"
    33. >
    34. </TextView>
    35. <EditText
    36. android:id="@+id/widget31"
    37. android:layout_width="wrap_content"
    38. android:layout_height="wrap_content"
    39. android:text="hrs"
    40. android:textSize="18sp"
    41. android:layout_x="135px"
    42. android:layout_y="78px"
    43. >
    44. </EditText>
    45. <TextView
    46. android:id="@+id/widget32"
    47. android:layout_width="wrap_content"
    48. android:layout_height="wrap_content"
    49. android:text="hours and"
    50. android:layout_x="126px"
    51. android:layout_y="139px"
    52. >
    53. </TextView>
    54. <EditText
    55. android:id="@+id/widget33"
    56. android:layout_width="wrap_content"
    57. android:layout_height="wrap_content"
    58. android:text="mins"
    59. android:textSize="18sp"
    60. android:layout_x="131px"
    61. android:layout_y="174px"
    62. >
    63. </EditText>
    64. <Button
    65. android:id="@+id/widget34"
    66. android:layout_width="wrap_content"
    67. android:layout_height="wrap_content"
    68. android:text="Set "
    69. android:layout_x="125px"
    70. android:layout_y="270px"
    71. >
    72. </Button>
    73. <EditText
    74. android:layout_width="wrap_content"
    75. android:layout_height="wrap_content"
    76. android:text="EditText"
    77. android:textSize="18sp"
    78. android:layout_x="272px"
    79. android:layout_y="-78px"
    80. >
    81. </EditText>
    82. <TextView
    83. android:id="@+id/widget36"
    84. android:layout_width="wrap_content"
    85. android:layout_height="wrap_content"
    86. android:text="mins"
    87. android:layout_x="136px"
    88. android:layout_y="233px"
    89. >
    90. </TextView>
    91. </AbsoluteLayout>
    i want the user to be able to enter an amount of time to wait till the phone turns off then after that time has passed the phone shuts off .... thats all i want it to do and any help would be appreicieated thanks
    and heres a pic [​IMG]
     

    Advertisement
  2. puk

    puk New Member

    Joined:
    Feb 27, 2009
    Messages:
    3
    Likes Received:
    0
    Hi, the xml file is just for the Layout.
    if you want some functions you have to add some activities.

    Does anyone read googles Tutorials? It could be worth of a try. ;-)
     

Share This Page

Loading...