This repository has been archived by the owner on Jan 18, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use PIN code instead of callback URL for OAuth.
- target API 17
- Loading branch information
Showing
5 changed files
with
143 additions
and
15 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,46 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<WebView xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:id="@+id/webview" | ||
|
||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | ||
android:layout_width="fill_parent" | ||
android:layout_height="fill_parent" | ||
/> | ||
android:layout_height="fill_parent"> | ||
|
||
<WebView | ||
android:id="@+id/webview" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_above="@+id/buttonPIN" | ||
android:focusable="true" | ||
android:layout_alignParentTop="true" /> | ||
|
||
<TextView | ||
android:id="@+id/labelPIN" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:layout_alignParentLeft="true" | ||
android:layout_below="@+id/webview" | ||
android:layout_centerHorizontal="false" | ||
android:layout_centerVertical="false" | ||
android:gravity="center_vertical" | ||
android:text="@string/pin" /> | ||
|
||
<EditText | ||
android:id="@+id/edit_code" | ||
android:layout_width="fill_parent" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:layout_toLeftOf="@+id/buttonPIN" | ||
android:layout_toRightOf="@+id/labelPIN" | ||
android:enabled="false" | ||
android:inputType="number" /> | ||
|
||
<Button | ||
android:id="@+id/buttonPIN" | ||
android:layout_width="wrap_content" | ||
android:layout_height="wrap_content" | ||
android:layout_alignParentBottom="true" | ||
android:layout_alignParentRight="true" | ||
android:enabled="false" | ||
android:text="@string/ok" /> | ||
|
||
</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
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
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