Skip to content

Commit 6a86172

Browse files
README.md for EnableDisableButton
1 parent b24be47 commit 6a86172

File tree

3 files changed

+59
-20
lines changed

3 files changed

+59
-20
lines changed

EnableDisableButton/README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
## Enable Disable Button
2+
3+
| ![Gambar 1](./documentation/SS_EnableDisableButton.gif) |
4+
|:-------------------------------------------------:|
5+
| Gambar 1: Enable Disable Button |
6+
7+
## Implementation
8+
- MVVM
9+
- View Binding
10+
11+
## Environment
12+
<table>
13+
<tr>
14+
<td>Android Gradle Plugins Version</td>
15+
<td>Gradle Version</td>
16+
<td>Java JDK</td>
17+
</tr>
18+
<tr>
19+
<td>4.2.0</td>
20+
<td>6.7.1</td>
21+
<td>1.8</td>
22+
</tr>
23+
</table>
24+
25+
## Contributors
26+
Thanks all contributors for build this repository
27+
28+
```
29+
Copyright [2021] [The Dictionary of Android Projects]
30+
31+
Licensed under the Apache License, Version 2.0 (the "License");
32+
you may not use this file except in compliance with the License.
33+
You may obtain a copy of the License at
34+
35+
http://www.apache.org/licenses/LICENSE-2.0
36+
37+
Unless required by applicable law or agreed to in writing, software
38+
distributed under the License is distributed on an "AS IS" BASIS,
39+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
40+
See the License for the specific language governing permissions and
41+
limitations under the License.
42+
43+
```

EnableDisableButton/app/src/main/res/layout/activity_main.xml

Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
xmlns:app="http://schemas.android.com/apk/res-auto"
44
xmlns:tools="http://schemas.android.com/tools"
55
android:layout_width="match_parent"
6-
android:layout_height="match_parent"
6+
android:layout_height="wrap_content"
77
tools:context=".EdtTextActivity">
88

99
<EditText
@@ -23,36 +23,32 @@
2323
android:layout_width="wrap_content"
2424
android:layout_height="wrap_content"
2525
android:background="@drawable/selector_action"
26-
android:textColor="@color/selector_btn_action"
27-
android:text="Enter"
28-
android:textAllCaps="false"
29-
android:textSize="18sp"
30-
android:layout_marginBottom="10dp"
31-
android:layout_marginEnd="10dp"
26+
android:focusable="false"
3227
android:paddingStart="20dp"
28+
android:paddingTop="7dp"
3329
android:paddingEnd="20dp"
3430
android:paddingBottom="7dp"
35-
android:paddingTop="7dp"
36-
android:focusable="false"
37-
app:layout_constraintBottom_toBottomOf="parent"
38-
app:layout_constraintEnd_toEndOf="parent" />
31+
android:text="Enter"
32+
android:textAllCaps="false"
33+
android:textColor="@color/selector_btn_action"
34+
android:textSize="18sp"
35+
app:layout_constraintEnd_toEndOf="@+id/edt_txt"
36+
app:layout_constraintTop_toBottomOf="@+id/edt_txt" />
3937

4038
<TextView
4139
android:id="@+id/btn_back"
4240
android:layout_width="wrap_content"
4341
android:layout_height="wrap_content"
4442
android:background="@drawable/selector_back"
45-
android:textColor="@color/selector_btn_back"
46-
android:text="Back"
47-
android:textAllCaps="false"
48-
android:textSize="20sp"
49-
android:layout_marginBottom="10dp"
50-
android:layout_marginStart="10dp"
5143
android:paddingStart="20dp"
44+
android:paddingTop="7dp"
5245
android:paddingEnd="20dp"
5346
android:paddingBottom="7dp"
54-
android:paddingTop="7dp"
55-
app:layout_constraintBottom_toBottomOf="parent"
56-
app:layout_constraintStart_toStartOf="parent" />
47+
android:text="Back"
48+
android:textAllCaps="false"
49+
android:textColor="@color/selector_btn_back"
50+
android:textSize="20sp"
51+
app:layout_constraintStart_toStartOf="@+id/edt_txt"
52+
app:layout_constraintTop_toBottomOf="@+id/edt_txt" />
5753

5854
</androidx.constraintlayout.widget.ConstraintLayout>
368 KB
Loading

0 commit comments

Comments
 (0)