forked from ddook007/ADBKeyBoard
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
增加带启动activity 和 模拟输入法view的改进版adbkeyboard
- Loading branch information
hzliujq
committed
Jul 26, 2017
1 parent
ad54ed6
commit c273859
Showing
9 changed files
with
151 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Wed Mar 09 10:25:30 CET 2016 | ||
#Thu Jul 06 10:31:50 CST 2017 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.11-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-2.11-all.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,19 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 23 | ||
compileSdkVersion 24 | ||
buildToolsVersion "23.0.2" | ||
|
||
defaultConfig { | ||
applicationId 'com.android.adbkeyboard' | ||
minSdkVersion 15 | ||
targetSdkVersion 22 | ||
versionCode 1 | ||
versionName "1.0" | ||
versionName "1.1" | ||
} | ||
} | ||
|
||
dependencies { | ||
compile fileTree(include: ['*.jar'], dir: 'libs') | ||
compile 'com.android.support:appcompat-v7:24.0.0' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
keyboardservice/src/main/java/com/android/adbkeyboard/MainActivity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.android.adbkeyboard; | ||
|
||
import android.support.v7.app.AppCompatActivity; | ||
import android.os.Bundle; | ||
|
||
public class MainActivity extends AppCompatActivity { | ||
|
||
@Override | ||
protected void onCreate(Bundle savedInstanceState) { | ||
super.onCreate(savedInstanceState); | ||
setContentView(R.layout.activity_main); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
tools:context="com.android.adbkeyboard.MainActivity"> | ||
|
||
<Button | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:id="@+id/button2" | ||
android:text="启动语音监听" | ||
android:contentDescription="启动语音监听" | ||
android:layout_centerHorizontal="true" /> | ||
|
||
<Button | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="停止语音监听" | ||
android:id="@+id/button" | ||
android:contentDescription="停止语音监听" | ||
android:layout_below="@+id/button2" | ||
android:layout_alignLeft="@+id/button2" | ||
android:layout_alignStart="@+id/button2" | ||
android:layout_alignRight="@+id/button2" | ||
android:layout_alignEnd="@+id/button2" /> | ||
|
||
<Button | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="初始化连接" | ||
android:contentDescription="初始化连接" | ||
android:id="@+id/button3" | ||
android:layout_below="@+id/button" | ||
android:layout_alignLeft="@+id/button2" | ||
android:layout_alignStart="@+id/button2" | ||
android:layout_alignRight="@+id/button2" | ||
android:layout_alignEnd="@+id/button2" /> | ||
|
||
<EditText | ||
android:id="@+id/plain_text_input" | ||
android:layout_below="@+id/button3" | ||
android:contentDescription="输入框" | ||
android:layout_height="wrap_content" | ||
android:layout_width="match_parent" | ||
android:inputType="text" | ||
android:text="http://10.241.0.23:8090"/> | ||
|
||
</RelativeLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" | ||
android:layout_height="250dp" | ||
> | ||
|
||
<LinearLayout | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:orientation="vertical"> | ||
<Button | ||
android:id="@+id/button1" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="Android从入门到放弃" | ||
android:textSize="12sp"/> | ||
|
||
<Button | ||
android:id="@+id/button2" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="Java从入门到放弃" /> | ||
|
||
<Button | ||
android:id="@+id/button3" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="C#从入门到怀疑人生" /> | ||
|
||
<Button | ||
android:id="@+id/button4" | ||
android:layout_width="match_parent" | ||
android:layout_height="wrap_content" | ||
android:text="OC从入门到怀疑人生" /> | ||
|
||
<Button | ||
android:id="@+id/button5" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:text="隐藏输入法" /> | ||
|
||
</LinearLayout> | ||
|
||
|
||
</FrameLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="colorPrimary">#3F51B5</color> | ||
<color name="colorPrimaryDark">#303F9F</color> | ||
<color name="colorAccent">#FF4081</color> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters