-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
97a28fc
commit 7ce9f38
Showing
13 changed files
with
88 additions
and
25 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 +1,3 @@ | ||
/build | ||
*.swp | ||
*~ |
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
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,14 +1,33 @@ | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" android:layout_height="match_parent" | ||
android:padding="@dimen/widget_margin" android:background="#09C"> | ||
|
||
<TextView android:id="@+id/appwidget_text" android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" android:layout_centerHorizontal="true" | ||
android:layout_centerVertical="true" android:text="ADB" | ||
android:textColor="#ffffff" android:textSize="24sp" | ||
android:layout_margin="8dp" android:contentDescription="@string/appwidget_text" | ||
android:background="#09C" | ||
android:textStyle="bold" | ||
android:gravity="center" /> | ||
android:padding="@dimen/widget_margin"> | ||
|
||
<LinearLayout | ||
android:orientation="vertical" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:gravity="center" | ||
android:id="@+id/appwidget_layout" | ||
android:background="@color/on" | ||
> | ||
|
||
<TextView android:id="@+id/appwidget_text" android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" android:layout_centerHorizontal="true" | ||
android:layout_centerVertical="true" android:text="ADB" | ||
android:textColor="#ffffff" android:textSize="24sp" | ||
android:layout_margin="0dp" android:contentDescription="@string/appwidget_text" | ||
android:background="#09C" | ||
android:textStyle="bold" | ||
android:gravity="center" /> | ||
|
||
<TextView android:id="@+id/appwidget_state" android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" android:layout_centerHorizontal="true" | ||
android:layout_centerVertical="true" android:text="ON" | ||
android:textColor="#ffffff" android:textSize="24sp" | ||
android:layout_margin="0dp" android:contentDescription="@string/appwidget_text" | ||
android:background="#09C" | ||
android:textStyle="bold" | ||
android:gravity="center" /> | ||
</LinearLayout> | ||
|
||
</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,31 @@ | ||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="match_parent" android:layout_height="match_parent" | ||
android:padding="@dimen/widget_margin"> | ||
|
||
<LinearLayout | ||
android:orientation="vertical" | ||
android:layout_width="match_parent" | ||
android:layout_height="match_parent" | ||
android:gravity="center" | ||
android:id="@+id/appwidget_layout" | ||
android:background="@color/off" | ||
> | ||
|
||
<TextView android:id="@+id/appwidget_text" android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" android:layout_centerHorizontal="true" | ||
android:layout_centerVertical="true" android:text="ADB" | ||
android:textColor="#ffffff" android:textSize="24sp" | ||
android:layout_margin="0dp" android:contentDescription="@string/appwidget_text" | ||
android:textStyle="bold" | ||
android:gravity="center" /> | ||
|
||
<TextView android:id="@+id/appwidget_state" android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" android:layout_centerHorizontal="true" | ||
android:layout_centerVertical="true" android:text="ON" | ||
android:textColor="#ffffff" android:textSize="24sp" | ||
android:layout_margin="0dp" android:contentDescription="@string/appwidget_text" | ||
android:textStyle="bold" | ||
android:gravity="center" /> | ||
</LinearLayout> | ||
|
||
</RelativeLayout> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<appwidget-provider xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:minWidth="40dp" android:minHeight="40dp" android:updatePeriodMillis="86400000" | ||
android:previewImage="@drawable/example_appwidget_preview" | ||
android:previewImage="@drawable/preview" | ||
android:initialLayout="@layout/adb_toggle" android:widgetCategory="home_screen" | ||
android:initialKeyguardLayout="@layout/adb_toggle"></appwidget-provider> |