| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" |
| 18 |
xmlns:app="http://schemas.android.com/apk/res-auto" |
| 19 |
xmlns:tools="http://schemas.android.com/tools" |
| 20 |
android:id="@+id/background" |
| 21 |
android:layout_width="390dp" |
| 22 |
android:layout_height="wrap_content" |
| 23 |
android:layout_gravity="center" |
| 24 |
android:padding="15dp" |
| 25 |
android:orientation="vertical" |
| 26 |
tools:context=".materials.BackgroundBlurActivity"> |
| 27 |
|
| 28 |
<TextView |
| 29 |
android:layout_width="match_parent" |
| 30 |
android:layout_height="wrap_content" |
| 31 |
android:gravity="center_horizontal" |
| 32 |
android:padding="10dp" |
| 33 |
android:textColor="#ffffffff" |
| 34 |
android:text="Hello blurry world!"/> |
| 35 |
|
| 36 |
<LinearLayout |
| 37 |
android:layout_width="match_parent" |
| 38 |
android:layout_height="wrap_content" |
| 39 |
android:orientation="horizontal"> |
| 40 |
<TextView |
| 41 |
android:layout_width="wrap_content" |
| 42 |
android:layout_height="wrap_content" |
| 43 |
android:layout_weight="1" |
| 44 |
android:textColor="#ffffffff" |
| 45 |
android:text="Background blur"/> |
| 46 |
|
| 47 |
<SeekBar |
| 48 |
android:id="@+id/set_background_blur" |
| 49 |
android:min="0" |
| 50 |
android:max="300" |
| 51 |
android:layout_width="160dp" |
| 52 |
android:layout_height="wrap_content"/> |
| 53 |
<TextView |
| 54 |
android:id="@+id/background_blur_radius" |
| 55 |
android:layout_width="wrap_content" |
| 56 |
android:layout_height="wrap_content" |
| 57 |
android:textColor="#ffffffff" |
| 58 |
android:ems="3" |
| 59 |
android:gravity="center" |
| 60 |
android:paddingLeft="10dp" |
| 61 |
android:paddingRight="10dp" |
| 62 |
android:text="TODO"/> |
| 63 |
</LinearLayout> |
| 64 |
<LinearLayout |
| 65 |
android:layout_width="match_parent" |
| 66 |
android:layout_height="wrap_content" |
| 67 |
android:orientation="horizontal"> |
| 68 |
<TextView |
| 69 |
android:layout_width="wrap_content" |
| 70 |
android:layout_height="wrap_content" |
| 71 |
android:layout_weight="1" |
| 72 |
android:textColor="#ffffffff" |
| 73 |
android:text="Background alpha"/> |
| 74 |
|
| 75 |
<SeekBar |
| 76 |
android:id="@+id/set_background_alpha" |
| 77 |
android:min="0" |
| 78 |
android:max="100" |
| 79 |
android:layout_width="160dp" |
| 80 |
android:layout_height="wrap_content" /> |
| 81 |
<TextView |
| 82 |
android:id="@+id/background_alpha" |
| 83 |
android:layout_width="wrap_content" |
| 84 |
android:layout_height="wrap_content" |
| 85 |
android:textColor="#ffffffff" |
| 86 |
android:ems="3" |
| 87 |
android:gravity="center" |
| 88 |
android:paddingLeft="10dp" |
| 89 |
android:paddingRight="10dp" |
| 90 |
android:text="TODO"/> |
| 91 |
</LinearLayout> |
| 92 |
<LinearLayout |
| 93 |
android:layout_width="match_parent" |
| 94 |
android:layout_height="wrap_content" |
| 95 |
android:orientation="horizontal"> |
| 96 |
<TextView |
| 97 |
android:layout_width="wrap_content" |
| 98 |
android:layout_height="wrap_content" |
| 99 |
android:layout_weight="1" |
| 100 |
android:textColor="#ffffffff" |
| 101 |
android:text="Blur behind"/> |
| 102 |
|
| 103 |
<SeekBar |
| 104 |
android:id="@+id/set_blur_behind" |
| 105 |
android:min="0" |
| 106 |
android:max="300" |
| 107 |
android:layout_width="160dp" |
| 108 |
android:layout_height="wrap_content" /> |
| 109 |
<TextView |
| 110 |
android:id="@+id/blur_behind_radius" |
| 111 |
android:layout_width="wrap_content" |
| 112 |
android:layout_height="wrap_content" |
| 113 |
android:gravity="center" |
| 114 |
android:textColor="#ffffffff" |
| 115 |
android:paddingLeft="10dp" |
| 116 |
android:paddingRight="10dp" |
| 117 |
android:ems="3" |
| 118 |
android:text="TODO"/> |
| 119 |
</LinearLayout> |
| 120 |
<LinearLayout |
| 121 |
android:layout_width="match_parent" |
| 122 |
android:layout_height="wrap_content" |
| 123 |
android:orientation="horizontal"> |
| 124 |
<TextView |
| 125 |
android:layout_width="wrap_content" |
| 126 |
android:layout_height="wrap_content" |
| 127 |
android:layout_weight="1" |
| 128 |
android:textColor="#ffffffff" |
| 129 |
android:text="Dim amount"/> |
| 130 |
|
| 131 |
<SeekBar |
| 132 |
android:id="@+id/set_dim_amount" |
| 133 |
android:min="0" |
| 134 |
android:max="100" |
| 135 |
android:layout_width="160dp" |
| 136 |
android:layout_height="wrap_content" /> |
| 137 |
<TextView |
| 138 |
android:id="@+id/dim_amount" |
| 139 |
android:layout_width="wrap_content" |
| 140 |
android:layout_height="wrap_content" |
| 141 |
android:gravity="center" |
| 142 |
android:textColor="#ffffffff" |
| 143 |
android:paddingLeft="10dp" |
| 144 |
android:paddingRight="10dp" |
| 145 |
android:ems="3" |
| 146 |
android:text="TODO"/> |
| 147 |
</LinearLayout> |
| 148 |
|
| 149 |
<LinearLayout |
| 150 |
android:layout_width="match_parent" |
| 151 |
android:layout_height="wrap_content" |
| 152 |
android:layout_gravity="center" |
| 153 |
android:layout_marginTop="5dp" |
| 154 |
android:orientation="vertical" |
| 155 |
android:gravity="center"> |
| 156 |
|
| 157 |
<Button |
| 158 |
android:id="@+id/toggle_blur_enabled" |
| 159 |
android:layout_width="match_parent" |
| 160 |
android:layout_height="wrap_content" |
| 161 |
android:text="Disable blur" |
| 162 |
android:onClick="toggleForceBlurDisabled"/> |
| 163 |
|
| 164 |
<Button |
| 165 |
android:id="@+id/toggle_battery_saving_mode" |
| 166 |
android:layout_width="match_parent" |
| 167 |
android:layout_height="wrap_content" |
| 168 |
android:text="TODO" |
| 169 |
android:onClick="toggleBatterySavingMode"/> |
| 170 |
</LinearLayout> |
| 171 |
<requestFocus/> |
| 172 |
|
| 173 |
</LinearLayout> |