Skip to content

Commit

Permalink
Merge pull request #21 from amirisback/develop/toggle-feature
Browse files Browse the repository at this point in the history
SETUP :: TOGGLE FEATURE
  • Loading branch information
amirisback authored Apr 8, 2023
2 parents ceb2cf9 + 5a50ee3 commit ab40835
Show file tree
Hide file tree
Showing 33 changed files with 400 additions and 148 deletions.
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,41 @@ What's New??

</table>


### Toggle Feature
<table>

<tr>
<th>All Toggle Off (Light)</th>
<th>Keyboard No Feature (Light)</th>
<th>Some Toggle On (Light)</th>
<th>Keyboard With Feature (Light)</th>
</tr>

<tr>
<td><img width="200px" height="420px" src="https://amirisback.github.io/keyboard/docs/image/ss/toggle/ss_light_1.jpeg"></td>
<td><img width="200px" height="420px" src="https://amirisback.github.io/keyboard/docs/image/ss/toggle/ss_light_2.jpeg"></td>
<td><img width="200px" height="420px" src="https://amirisback.github.io/keyboard/docs/image/ss/toggle/ss_light_3.jpeg"></td>
<td><img width="200px" height="420px" src="https://amirisback.github.io/keyboard/docs/image/ss/toggle/ss_light_4.jpeg"></td>
</tr>

<tr>
<th>All Toggle Off (Dark)</th>
<th>Keyboard No Feature (Dark)</th>
<th>Some Toggle On (Dark)</th>
<th>Keyboard With Feature (Dark)</th>
</tr>

<tr>
<td><img width="200px" height="420px" src="https://amirisback.github.io/keyboard/docs/image/ss/toggle/ss_dark_1.jpeg"></td>
<td><img width="200px" height="420px" src="https://amirisback.github.io/keyboard/docs/image/ss/toggle/ss_dark_2.jpeg"></td>
<td><img width="200px" height="420px" src="https://amirisback.github.io/keyboard/docs/image/ss/toggle/ss_dark_3.jpeg"></td>
<td><img width="200px" height="420px" src="https://amirisback.github.io/keyboard/docs/image/ss/toggle/ss_dark_4.jpeg"></td>
</tr>

</table>


## Documentation
- https://github.com/SimpleMobileTools/Simple-Keyboard
- Clone From This
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@
android:name=".ui.autotext.AutoTextDetailActivity"
android:exported="false" />

<activity
android:name=".ui.toggle.ToggleActivity"
android:exported="false" />

<activity
android:name=".ui.main.MainActivity"
android:exported="true">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import androidx.annotation.Keep
*/

@Keep
data class KeyboardHeaderData(
val type: KeyboardHeaderType,
val icon: Int
data class KeyboardFeature(
var id: String,
var type: KeyboardFeatureType,
var icon: Int,
var state: Boolean = false
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package com.frogobox.keyboard.model

/**
* Created by Faisal Amir on 10/03/23
* https://github.com/amirisback
*/


enum class KeyboardFeatureType(val id: String, val title: String) {
NEWS("menu_news","News API"),
MOVIE("menu_movie","Movie API"),
WEB("menu_web","Search Website"),
FORM("menu_form","Form"),
AUTO_TEXT("menu_auto_text","Auto Text"),
PLAY_STORE_APP("menu_play_store_app","App Play Store"),
PLAY_STORE_GAME("menu_play_store_game","Game Play Store"),
}

This file was deleted.

Loading

0 comments on commit ab40835

Please sign in to comment.