|
| 1 | +<?xml version="1.0" encoding="utf-8"?> |
| 2 | +<RelativeLayout |
| 3 | + xmlns:android="http://schemas.android.com/apk/res/android" |
| 4 | + xmlns:app="http://schemas.android.com/apk/res-auto" |
| 5 | + xmlns:tools="http://schemas.android.com/tools" |
| 6 | + android:id="@+id/activity_main" |
| 7 | + android:layout_width="match_parent" |
| 8 | + android:layout_height="match_parent" |
| 9 | + android:paddingBottom="16dp" |
| 10 | + android:paddingLeft="16dp" |
| 11 | + android:paddingRight="16dp" |
| 12 | + android:paddingTop="16dp" |
| 13 | + tools:context="com.example.r_k.intentservicebatterypercentage.MainActivity"> |
| 14 | + |
| 15 | + <LinearLayout |
| 16 | + android:orientation="vertical" |
| 17 | + android:layout_width="match_parent" |
| 18 | + android:layout_height="match_parent"> |
| 19 | + |
| 20 | + <ImageView |
| 21 | + android:layout_width="match_parent" |
| 22 | + android:layout_height="194dp" |
| 23 | + app:srcCompat="@drawable/logo" |
| 24 | + android:id="@+id/imageView" |
| 25 | + android:layout_alignParentTop="true" |
| 26 | + android:layout_alignParentStart="true" |
| 27 | + /> |
| 28 | + |
| 29 | + <LinearLayout |
| 30 | + android:layout_marginTop="100dp" |
| 31 | + android:orientation="vertical" |
| 32 | + android:layout_width="match_parent" |
| 33 | + android:layout_height="match_parent"> |
| 34 | + |
| 35 | + <Switch |
| 36 | + android:text="Enable battery" |
| 37 | + android:layout_width="match_parent" |
| 38 | + android:layout_height="wrap_content" |
| 39 | + android:id="@+id/Batteryswitch"/> |
| 40 | + |
| 41 | + <TextView |
| 42 | + android:text="you will see notification on status about battery percentage" |
| 43 | + android:layout_width="match_parent" |
| 44 | + android:layout_height="wrap_content" |
| 45 | + android:id="@+id/textView"/> |
| 46 | + |
| 47 | + </LinearLayout> |
| 48 | + </LinearLayout> |
| 49 | + |
| 50 | +</RelativeLayout> |
0 commit comments