Commit e3cb80be by Kim Jinsung

#54379 XWalkWebView除外作業

parent 35da62a9
......@@ -38,6 +38,5 @@ app/build/
ABVJE_Launcher_Android/assets/githash.txt
ABVJE_Launcher_Android/assets/apk/
.idea/dictionaries/
/xwalk_core_library/*.iml
.idea/codeStyles/Project.xml
.idea/caches/build_file_checksums.ser
......@@ -167,11 +167,6 @@
android:theme="@android:style/Theme.NoTitleBar" >
</activity>
<activity
android:name="jp.agentec.abook.abv.ui.viewer.activity.HTMLXWalkWebViewActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="@android:style/Theme.NoTitleBar" >
</activity>
<activity
android:name="jp.agentec.abook.abv.ui.viewer.activity.EnqueteWebViewActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="@android:style/Theme.NoTitleBar" >
......
......@@ -5,8 +5,6 @@
android:versionCode="1"
android:versionName="1.0">
<uses-sdk tools:overrideLibrary="org.xwalk.core" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.BLUETOOTH" />
......
......@@ -19,7 +19,6 @@ dependencies {
implementation 'com.google.guava:guava:18.0'
implementation 'com.google.zxing:core:3.2.1'
implementation 'org.jsoup:jsoup:1.9.2'
implementation project(':xwalk_core_library')
implementation project(':FoxitRDK')
implementation project(':SwiftDecoderMobile')
implementation files('libs/sdaiflib.jar')
......@@ -43,7 +42,7 @@ android {
res.srcDirs = ['res']
jniLibs.srcDirs = ['libs', 'xwalk_core_library/src/main/jniLibs']
jniLibs.srcDirs = ['libs']
}
}
lintOptions {
......
package jp.agentec.abook.abv.cl.util;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.BluetoothDevice;
import android.bluetooth.BluetoothGatt;
......@@ -32,7 +33,6 @@ import jp.agentec.abook.abv.ui.common.appinfo.AppDefType;
import jp.agentec.adf.util.StringUtil;
import static android.bluetooth.BluetoothDevice.TRANSPORT_LE;
import static org.chromium.base.ThreadUtils.runOnUiThread;
public class BleManagerUtil {
private final String TAG = "BleManagerUtil";
......@@ -74,7 +74,7 @@ public class BleManagerUtil {
// デバイスと離れて応答がなく、タイムアウトになる場合:8
// デバイスと接続が切れた場合のメッセージコード:19
if (status == 133 || status == 62 || status == 8 || status == 19) { // 接続失敗
runOnUiThread( new Runnable() {
((Activity)mContext).runOnUiThread(new Runnable() {
@Override
public void run() {
mListener.onConnectionError(status);
......@@ -90,7 +90,7 @@ public class BleManagerUtil {
// 接続完了
if (mBluetoothGatt == null || !mBluetoothGatt.discoverServices()) { // サービス検索
runOnUiThread( new Runnable() { // 接続失敗
((Activity)mContext).runOnUiThread( new Runnable() { // 接続失敗
@Override
public void run() {
mListener.onGetDeviceInfoFailed(status);
......@@ -144,7 +144,7 @@ public class BleManagerUtil {
// 最初の読み取り
readCharacteristic(UUID_SERVICE_PRIVATE, UUID_CHARACTERISTIC_PRIVATE);
runOnUiThread( new Runnable() {
((Activity)mContext).runOnUiThread( new Runnable() {
@Override
public void run() {
// 操作可能
......@@ -186,7 +186,7 @@ public class BleManagerUtil {
if( UUID_CHARACTERISTIC_PRIVATE.equals( characteristic.getUuid() ) ) {
final String strTemperature = byteToString(characteristic.getValue());
runOnUiThread( new Runnable() {
((Activity)mContext).runOnUiThread( new Runnable() {
@Override
public void run() {
// 複数呼ばれるため、mBluetoothGattがnullの場合、以下の処理を行わない
......@@ -214,7 +214,7 @@ public class BleManagerUtil {
@Override
public void onScanResult(int callbackType, final ScanResult result) {
super.onScanResult(callbackType, result);
runOnUiThread(new Runnable() {
((Activity)mContext).runOnUiThread(new Runnable() {
@Override
public void run() {
BluetoothDevice device = result.getDevice();
......@@ -232,7 +232,7 @@ public class BleManagerUtil {
public void onScanFailed(final int errorCode) {
super.onScanFailed(errorCode);
Logger.e(TAG, "scan failed errorCode : " + errorCode);
runOnUiThread( new Runnable() {
((Activity)mContext).runOnUiThread( new Runnable() {
@Override
public void run() {
mListener.onConnectionError(errorCode);
......@@ -340,7 +340,7 @@ public class BleManagerUtil {
// mBluetoothGatt.close();
mBluetoothGatt = null;
if (listenerFlg) {
runOnUiThread( new Runnable() {
((Activity)mContext).runOnUiThread( new Runnable() {
@Override
public void run() {
// 切断トーストメッセージを表示する。
......
......@@ -41,8 +41,6 @@ import com.google.android.gms.tasks.Task;
import com.google.firebase.messaging.FirebaseMessaging;
import com.google.zxing.WriterException;
import org.xwalk.core.XWalkView;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.List;
......
......@@ -81,7 +81,6 @@ import jp.agentec.abook.abv.ui.common.view.ABVPopupListWindow;
import jp.agentec.abook.abv.ui.home.helper.ABookCheckWebViewHelper;
import jp.agentec.abook.abv.ui.home.helper.ABookPermissionHelper;
import jp.agentec.abook.abv.ui.home.helper.ActivityHandlingHelper;
import jp.agentec.abook.abv.ui.viewer.activity.HTMLXWalkWebViewActivity;
import jp.agentec.abook.abv.ui.viewer.activity.NoPdfViewActivity;
import jp.agentec.abook.abv.ui.viewer.foxitPdf.FoxitPdfCore;
import jp.agentec.adf.util.DateTimeFormat;
......@@ -646,9 +645,7 @@ public abstract class ABVContentViewActivity extends ABVAuthenticatedActivity {
} else {
ActivityHandlingHelper.getInstance().startContentActivity(contentInfo[0], (int) contentInfo[1]);
}
if (this instanceof HTMLXWalkWebViewActivity) {
return;
}
getReturnContentIdList().remove(listSize - 1);
}
}
......
......@@ -56,7 +56,6 @@ import jp.agentec.abook.abv.bl.logic.UnlockReportLogic;
import jp.agentec.abook.abv.launcher.android.R;
import jp.agentec.abook.abv.ui.common.constant.ErrorCode;
import jp.agentec.abook.abv.ui.home.helper.ActivityHandlingHelper;
import jp.agentec.abook.abv.ui.viewer.activity.HTMLXWalkWebViewActivity;
import jp.agentec.abook.abv.ui.viewer.view.CheckFormWebview;
import jp.agentec.adf.util.DateTimeFormat;
import jp.agentec.adf.util.DateTimeUtil;
......@@ -502,8 +501,7 @@ public class DashboardActivity extends OperationActivity {
intent.putExtra("LINKURL", "file://" + path);
ActivityHandlingHelper.getInstance().checkContentActivity(operationDto.contentId, 0, intent);
} else {
intent.setClass(this, HTMLXWalkWebViewActivity.class);
ActivityHandlingHelper.getInstance().startHTMLXWalkWebActivity(this, intent, "file://" + path, contentDto.contentId, -1, -1, -1, -1, -1);
ActivityHandlingHelper.getInstance().startHTMLWebActivity(this, intent, "file://" + path, contentDto.contentId, -1, -1, -1, -1, -1);
}
} else {
Logger.w(TAG, "content is not download");
......
......@@ -1751,11 +1751,7 @@ public class GuideViewActivity extends ABVContentViewActivity {
boolean innerBrowser = (browserType == null) || browserType.equals("0");
if (innerBrowser) {
if (linkurl.toLowerCase().contains(AppDefType.UrlPattern.smart360)) {
ActivityHandlingHelper.getInstance().startHTMLXWalkWebActivity(this, null, linkurl, getContentId(), WEBVIEW, pageNumber, objectId, objectLogId, readingLogId);
} else {
ActivityHandlingHelper.getInstance().startHTMLWebActivity(this, null, linkurl, getContentId(), WEBVIEW, pageNumber, objectId, objectLogId, readingLogId);
}
ActivityHandlingHelper.getInstance().startHTMLWebActivity(this, null, linkurl, getContentId(), WEBVIEW, pageNumber, objectId, objectLogId, readingLogId);
}
else {
Intent i = new Intent(Intent.ACTION_VIEW);
......
......@@ -118,7 +118,6 @@ import jp.agentec.abook.abv.ui.home.helper.ActivityHandlingHelper;
import jp.agentec.abook.abv.ui.home.helper.HomeOperationListHelper;
import jp.agentec.abook.abv.ui.home.helper.OperationGroupMasterListHelper;
import jp.agentec.abook.abv.ui.home.helper.OperationListHelper;
import jp.agentec.abook.abv.ui.viewer.activity.HTMLXWalkWebViewActivity;
import jp.agentec.adf.util.DateTimeFormat;
import jp.agentec.adf.util.DateTimeUtil;
import jp.agentec.adf.util.FileUtil;
......@@ -763,8 +762,7 @@ public class OperationListActivity extends OperationActivity {
intent.putExtra("LINKURL", "file://" + path);
ActivityHandlingHelper.getInstance().checkContentActivity(operationDto.contentId, 0, intent);
} else {
intent.setClass(this, HTMLXWalkWebViewActivity.class);
ActivityHandlingHelper.getInstance().startHTMLXWalkWebActivity(this, intent, "file://" + path, operationDto.contentId, -1, -1, -1, -1, -1);
ActivityHandlingHelper.getInstance().startHTMLWebActivity(this, intent, "file://" + path, operationDto.contentId, -1, -1, -1, -1, -1);
}
} else {
Logger.w(TAG, "content is not download");
......@@ -932,8 +930,7 @@ public class OperationListActivity extends OperationActivity {
intent.putExtra(ABookKeys.OPERATION_ID, operationDto.operationId);
intent.putExtra(Constant.ABookCheck.XWALK_OPEN_TYPE, Constant.XWalkOpenType.PANO_EDIT);
intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);
intent.setClass(OperationListActivity.this, HTMLXWalkWebViewActivity.class);
ActivityHandlingHelper.getInstance().startHTMLXWalkWebActivity(OperationListActivity.this, intent, url, operationDto.contentId, -1, -1, -1, -1, -1);
ActivityHandlingHelper.getInstance().startHTMLWebActivity(OperationListActivity.this, intent, url, operationDto.contentId, -1, -1, -1, -1, -1);
} catch (Exception e) {
Logger.e(TAG, e);
ErrorMessage.showErrorMessageToast(getApplicationContext(), ErrorCode.E107);
......
......@@ -21,7 +21,6 @@ import jp.agentec.abook.abv.launcher.android.R;
import jp.agentec.abook.abv.ui.common.util.PatternStringUtil;
import jp.agentec.abook.abv.ui.home.activity.OperationListActivity;
import jp.agentec.abook.abv.ui.viewer.activity.HTMLWebViewActivity;
import jp.agentec.abook.abv.ui.viewer.activity.HTMLXWalkWebViewActivity;
import static android.content.pm.PackageManager.PERMISSION_GRANTED;
import static jp.agentec.abook.abv.cl.util.PreferenceUtil.getUserPref;
......@@ -114,7 +113,7 @@ public class ABookPermissionHelper {
// ストレージ
if (ContextCompat.checkSelfPermission(mContext, android.Manifest.permission.READ_EXTERNAL_STORAGE) != PERMISSION_GRANTED ||
ContextCompat.checkSelfPermission(mContext, android.Manifest.permission.WRITE_EXTERNAL_STORAGE) != PERMISSION_GRANTED) {
if (mContext instanceof HTMLWebViewActivity || mContext instanceof HTMLXWalkWebViewActivity || mContext instanceof OperationListActivity) {
if (mContext instanceof HTMLWebViewActivity || mContext instanceof OperationListActivity) {
// リソースパターンの適用
permitionTextResourceId = PatternStringUtil.patternToInt(mContext,
R.string.msg_permission_dialog_storage_album,
......
......@@ -74,7 +74,6 @@ import jp.agentec.abook.abv.ui.viewer.activity.AudioPlayActivity;
import jp.agentec.abook.abv.ui.viewer.activity.ContentViewActivity;
import jp.agentec.abook.abv.ui.viewer.activity.EnqueteWebViewActivity;
import jp.agentec.abook.abv.ui.viewer.activity.HTMLWebViewActivity;
import jp.agentec.abook.abv.ui.viewer.activity.HTMLXWalkWebViewActivity;
import jp.agentec.abook.abv.ui.viewer.activity.ImageViewActivity;
import jp.agentec.abook.abv.ui.viewer.activity.ParentWebViewActivity;
import jp.agentec.abook.abv.ui.viewer.activity.PreviewActivity;
......@@ -307,7 +306,7 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
} else if (contentType.equals(ContentJSON.KEY_HTML_TYPE)) { // HTMLファイル
startHTMLWebActivity(context, intent, "file://" + path, contentId, -1, -1, -1, -1, -1);
} else if (StringUtil.equalsAny(contentType, ContentJSON.KEY_PANO_MOVIE_TYPE, ContentJSON.KEY_PANO_IMAGE_TYPE, ContentJSON.KEY_OBJECTVR_TYPE)) { // HTML/360動画/バーチャルツアー/オブジェクトVR
startHTMLXWalkWebActivity(context, intent, "file://" + path, contentId, -1, -1, -1, -1, -1);
startHTMLWebActivity(context, intent, "file://" + path, contentId, -1, -1, -1, -1, -1);
} else if (contentType.equals(ContentJSON.KEY_ENQUETE_TYPE)
|| contentType.equals(ContentJSON.KEY_EXAM_TYPE)) { // ENQUETE, EXAMファイル
//会議室連動はしない
......@@ -324,11 +323,7 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
// 内部ブラウザ
DownloadedContentInfoJSON json = ContentFileUtil.getDownloadedContentInfoJSON(contentId);
if (json.browserType == 0) {
if (path.toLowerCase().contains(AppDefType.UrlPattern.smart360)) {
startHTMLXWalkWebActivity(context, intent, path, contentId, -1, -1, -1, -1, -1);
} else {
startHTMLWebActivity(context, intent, path, contentId, -1, -1, -1, -1, -1);
}
startHTMLWebActivity(context, intent, path, contentId, -1, -1, -1, -1, -1);
// 外部ブラウザ
} else {
Uri uri = Uri.parse(path);
......@@ -455,46 +450,6 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
}
/**
* XWalkWebViewを開く
*
* @param context
* @param intent
* @param path
* @param contentId
* @param requestCode
* @param pageNumber 呼び出し元のページ番号
* @param objectId
*/
public void startHTMLXWalkWebActivity(Context context, Intent intent, String path, long contentId, int requestCode, int pageNumber, long objectId, int objectLogId, int readingLogId) {
if (path != null && path.startsWith("http") && !ABVEnvironment.getInstance().networkAdapter.isNetworkConnected()) {
ABVToastUtil.showMakeText(context, R.string.NETWORK, Toast.LENGTH_LONG);
return;
}
if (intent == null) {
intent = new Intent();
}
//Android7.0以上の場合、CrossWalk表示できない為、通常のWebView利用
if (Build.VERSION.SDK_INT <= Build.VERSION_CODES.M) {
intent.setClass(context, HTMLXWalkWebViewActivity.class);
} else {
intent.setClass(context, HTMLWebViewActivity.class);
}
intent.putExtra("LINKURL", path);
intent.putExtra(ABookKeys.CONTENT_ID, contentId);
intent.putExtra("pageNumber", pageNumber);
intent.putExtra("objectId", objectId);
intent.putExtra("objectLogId", objectLogId);
intent.putExtra("readingLogId", readingLogId);
if (requestCode == -1) {
context.startActivity(intent);
} else {
((Activity) context).startActivityForResult(intent, requestCode);
}
}
/**
* WebViewを開く
*
* @param context
......@@ -780,7 +735,7 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
if (!currentActivityStack.isEmpty() && currentActivityStack.size() > 1) {
// 直前のコンテンツを取り出す
ABVAuthenticatedActivity activity = currentActivityStack.get(currentActivityStack.size() - 2);
if (!(activity instanceof HTMLWebViewActivity || activity instanceof HTMLXWalkWebViewActivity)) {
if (!(activity instanceof HTMLWebViewActivity)) {
return false;
}
......@@ -789,11 +744,6 @@ public class ActivityHandlingHelper extends ABookHelper implements RemoteObserve
if (htmlWebViewActivity.getContentId() == contentId) {
return true;
}
} else {
HTMLXWalkWebViewActivity htmlXWalkWebViewActivity = (HTMLXWalkWebViewActivity) activity;
if (htmlXWalkWebViewActivity.getContentId() == contentId) {
return true;
}
}
}
return false;
......
......@@ -3658,11 +3658,7 @@ public class ContentViewActivity extends ABVContentViewActivity {
boolean innerBrowser = (browserType == null) || browserType.equals("0");
if (innerBrowser) {
if (linkurl.toLowerCase().contains(AppDefType.UrlPattern.smart360)) {
ActivityHandlingHelper.getInstance().startHTMLXWalkWebActivity(this, null, linkurl, getContentId(), WEBVIEW, pageNumber, objectId, objectLogId, readingLogId);
} else {
ActivityHandlingHelper.getInstance().startHTMLWebActivity(this, null, linkurl, getContentId(), WEBVIEW, pageNumber, objectId, objectLogId, readingLogId);
}
ActivityHandlingHelper.getInstance().startHTMLWebActivity(this, null, linkurl, getContentId(), WEBVIEW, pageNumber, objectId, objectLogId, readingLogId);
} else {
Intent i = new Intent(Intent.ACTION_VIEW);
if (StringUtil.isNullOrEmpty(linkurl)) {
......
package jp.agentec.abook.abv.ui.viewer.view;
import android.content.Context;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.view.inputmethod.InputConnectionWrapper;
import org.xwalk.core.XWalkView;
/**
* XWalkViewのキーボード検知するクラス
*/
public class CheckFormXWalkWebview extends XWalkView {
private Context mContext;
private KeyActionCallback mKeyActionCallback;
public interface KeyActionCallback {
void keyActionCallback(int editorInfoAction);
}
public CheckFormXWalkWebview(Context context, KeyActionCallback callback) {
super(context);
mContext = context;
mKeyActionCallback = callback;
}
@Override
public InputConnection onCreateInputConnection(EditorInfo ei) {
InputConnection input = super.onCreateInputConnection(ei);
if(input == null){
return null;
}
return new MyConnection(input);
}
private class MyConnection extends InputConnectionWrapper {
public MyConnection(InputConnection wrapped) {
super(wrapped, false);
}
// WebView上でIMEキーボードのアクションがあった場合のハンドリングを行う
@Override
public boolean performEditorAction(int action) {
if(mKeyActionCallback != null) {
mKeyActionCallback.keyActionCallback(action);
}
return true;
}
}
}
......@@ -34,8 +34,6 @@ import jp.agentec.abook.abv.ui.common.activity.ABVContentViewActivity;
import jp.agentec.abook.abv.ui.viewer.activity.ContentViewActivity;
import jp.agentec.adf.util.StringUtil;
import static org.chromium.base.ThreadUtils.runOnUiThread;
/**
* Created by seo-y on 2018/11/14.
*/
......@@ -296,7 +294,7 @@ public class OperationTaskLayout extends RelativeLayout {
setLayoutParams(params);
runOnUiThread(new Runnable() {
mContext.runOnUiThread(new Runnable() {
@Override
public void run() {
mWebView.loadUrl(script);
......@@ -316,7 +314,7 @@ public class OperationTaskLayout extends RelativeLayout {
script = String.format(SCRIPT_SHOW_TASK_REPORT, operationTaskDto.taskKey.equals(TEMP_TASK_KEY) ? "" : operationTaskDto.taskKey);
runOnUiThread(new Runnable() {
mContext.runOnUiThread(new Runnable() {
@Override
public void run() {
mWebView.loadUrl(script);
......
include ':ABVJE_BL', ':ABVJE_Launcher_Android', ':ABVJE_Res_Default_Android', ':ABVJE_UI_Android', ':SwiftDecoderMobile'
include ':xwalk_core_library'
include ':FoxitRDK'
\ No newline at end of file
apply plugin: 'com.android.library'
android {
compileSdkVersion 31
buildToolsVersion '30.0.2'
defaultConfig {
minSdkVersion 23
targetSdkVersion 31
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
}
dependencies {
api files('libs/xwalk_core_library.jar')
}
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.xwalk.core"
android:versionCode="1"
android:versionName="1.0" >
</manifest>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2015 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?android:attr/colorControlHighlight">
<item android:id="@android:id/mask"
android:drawable="@drawable/button_compat_shape" />
</ripple>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2015 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<ripple xmlns:android="http://schemas.android.com/apk/res/android"
android:color="?android:attr/colorControlHighlight">
<item android:drawable="@drawable/button_compat_shape" />
</ripple>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2015 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<inset xmlns:android="http://schemas.android.com/apk/res/android"
android:insetBottom="@dimen/keyboard_accessory_padding"
android:insetLeft="@dimen/keyboard_accessory_half_padding"
android:insetRight="@dimen/keyboard_accessory_half_padding"
android:insetTop="@dimen/keyboard_accessory_padding">
<shape>
<solid android:color="#ECEFF1" />
<corners android:radius="2dp" />
</shape>
</inset>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2015 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<solid android:color="#fff" />
<corners android:radius="2dp" />
</shape>
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:top="0dp"
android:right="0dp"
android:bottom="0dp"
android:left="0dp">
<shape android:shape="rectangle">
<solid android:color="@color/color_picker_border_color"/>
</shape>
</item>
<item android:top="0px"
android:right="1px"
android:bottom="0px"
android:left="1px">
<shape android:shape="rectangle">
<solid android:color="@color/color_picker_background_color"/>
</shape>
</item>
<item
android:id="@+id/color_button_swatch"
android:top="1px"
android:right="2px"
android:bottom="1px"
android:left="2px">
<shape android:shape="rectangle">
<solid android:color="#FF0000"/>
</shape>
</item>
</layer-list>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<stroke android:width="1px" android:color="@color/color_picker_border_color" />
<solid android:color="@color/color_picker_background_color"/>
</shape>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2015 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_enabled="true" android:color="#333" />
<item android:state_enabled="false" android:color="#888" />
</selector>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2014 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<selector xmlns:android="http://schemas.android.com/apk/res/android">
<item android:state_above_anchor="true"
android:drawable="@drawable/dropdown_popup_background_up" />
<item android:drawable="@drawable/dropdown_popup_background_down" />
</selector>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright (c) 2012 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<!-- ScrollView is needed since sometimes the dialog does not fit in small screen devices. -->
<HorizontalScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="horizontal"
android:gravity="center">
<DatePicker
android:id="@+id/date_picker"
android:layout_gravity="center_vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:spinnersShown="true"
android:calendarViewShown="false"
android:datePickerMode="spinner"
android:contentDescription="@string/accessibility_datetime_picker_date"
/>
<TimePicker
android:id="@+id/time_picker"
android:layout_gravity="center_vertical"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:timePickerMode="spinner"
android:contentDescription="@string/accessibility_datetime_picker_time"
/>
</LinearLayout>
</HorizontalScrollView>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2015 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_height="@dimen/keyboard_accessory_height"
android:layout_width="wrap_content"
android:background="@drawable/autofill_chip_inset"
android:paddingEnd="@dimen/keyboard_accessory_padding"
android:paddingStart="@dimen/keyboard_accessory_padding">
<TextView
android:id="@+id/autofill_keyboard_accessory_item_label"
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:drawablePadding="@dimen/keyboard_accessory_half_padding"
android:ellipsize="end"
android:fontFamily="sans-serif-medium"
android:gravity="center_vertical"
android:minWidth="@dimen/keyboard_accessory_chip_height"
android:paddingEnd="@dimen/keyboard_accessory_half_padding"
android:paddingStart="@dimen/keyboard_accessory_half_padding"
android:singleLine="true"
android:textColor="#333"
android:textSize="@dimen/keyboard_accessory_text_size" />
<TextView
android:id="@+id/autofill_keyboard_accessory_item_sublabel"
android:layout_height="match_parent"
android:layout_width="wrap_content"
android:ellipsize="end"
android:gravity="center_vertical"
android:paddingEnd="@dimen/keyboard_accessory_half_padding"
android:singleLine="true"
android:textColor="#646464"
android:textSize="@dimen/keyboard_accessory_text_size"
android:visibility="gone" />
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<TextView
android:id="@+id/text"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/color_picker_gradient_margin"
android:layout_marginEnd="@dimen/color_picker_gradient_margin"
android:textAppearance="@android:style/TextAppearance.Medium"
android:textIsSelectable="false" />
<FrameLayout
android:id="@+id/gradient_border"
android:layout_width="match_parent"
android:layout_height="50dp"
android:layout_below="@id/text"
android:layout_marginStart="@dimen/color_picker_gradient_margin"
android:layout_marginEnd="@dimen/color_picker_gradient_margin"
android:layout_marginTop="3dp"
android:background="@drawable/color_picker_border"
android:padding="1dp" >
<View
android:id="@+id/gradient"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</FrameLayout>
<SeekBar
android:id="@+id/seek_bar"
android:layout_width="match_parent"
android:layout_height="75dp"
android:layout_below="@id/text"
android:progressDrawable="@android:color/transparent"
android:thumb="@drawable/color_picker_advanced_select_handle"
android:translationY="25dp" />
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:padding="15dp">
<ScrollView
android:layout_width="match_parent"
android:layout_height="wrap_content">
<org.chromium.ui.ColorPickerAdvanced
android:id="@+id/color_picker_advanced"
android:layout_width="match_parent"
android:layout_height="wrap_content" />
</ScrollView>
<org.chromium.ui.ColorPickerSimple
android:id="@+id/color_picker_simple"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:divider="@color/color_picker_border_color"
android:dividerHeight="1px"
android:paddingStart="1px"
android:paddingEnd="1px"
android:paddingTop="1px"
android:background="@drawable/color_picker_border" />
<FrameLayout
android:id="@+id/more_colors_button_border"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@drawable/color_picker_border"
android:padding="1px">
<org.chromium.ui.ColorPickerMoreButton
android:id="@+id/more_colors_button"
style="?android:attr/buttonBarButtonStyle"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="48dp"
android:textAppearance="?android:attr/textAppearanceSmall"
android:text="@string/color_picker_button_more" />
</FrameLayout>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:paddingBottom="15dp"
android:paddingStart="20dp"
android:paddingEnd="20dp"
android:paddingTop="15dp" >
<TextView
android:id="@+id/title"
style="?android:attr/textAppearanceLarge"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_toStartOf="@+id/selected_color_view_border"
android:layout_centerVertical="true"
android:textColor="#33B5E5"
android:ellipsize="end"
android:singleLine="true" />
<FrameLayout
android:layout_width="40dp"
android:layout_height="40dp"
android:layout_alignParentEnd="true"
android:id="@+id/selected_color_view_border"
android:background="@drawable/color_picker_border"
android:padding="2dp">
<View
android:id="@+id/selected_color_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/black" />
</FrameLayout>
</RelativeLayout>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/date_time_suggestion"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:minHeight="44dp"
android:orientation="horizontal"
android:gravity="center_vertical">
<TextView
android:id="@+id/date_time_suggestion_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginStart="10dp"
android:layout_marginEnd="10dp"
android:ellipsize="end"
android:singleLine="true"
android:textSize="18sp" />
<TextView
android:id="@+id/date_time_suggestion_label"
android:layout_width="0dp"
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:layout_weight="1"
android:textSize="18sp"
android:gravity="end"
android:textColor="#8b8b8b"
android:ellipsize="end"
android:singleLine="true" />
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2014 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal" >
<!-- These layout params are overwritten in DropdownAdapter.java -->
<LinearLayout
android:id="@+id/dropdown_label_wrapper"
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="1"
android:gravity="center_vertical"
android:orientation="vertical" >
<TextView
android:id="@+id/dropdown_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:layout_marginStart="10dp"
android:ellipsize="end"
android:includeFontPadding="false"
android:singleLine="true"
android:textAlignment="viewStart"
android:textColor="@drawable/dropdown_label_color"
android:textSize="18sp" />
<TextView
android:id="@+id/dropdown_sublabel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="10dp"
android:layout_marginStart="10dp"
android:ellipsize="end"
android:includeFontPadding="false"
android:singleLine="true"
android:textAlignment="viewStart"
android:textColor="#646464"
android:textSize="14sp" />
</LinearLayout>
<ImageView
android:id="@+id/dropdown_icon"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="8dp"
android:contentDescription="@null" />
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_vertical"
android:orientation="vertical"
android:gravity="start">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="@string/time_picker_dialog_title"
android:textSize="20sp"
android:paddingStart="5dp"
android:paddingEnd="5dp"
android:paddingBottom="5dp"
android:paddingTop="5dp"
android:gravity="start"
android:textColor="#33B5E5"
/>
<View
android:layout_width="match_parent"
android:layout_height="2dp"
android:paddingBottom="5dp"
android:paddingTop="5dp"
android:background="#33B5E5"/>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:orientation="horizontal"
android:gravity="center">
<NumberPicker
android:id="@+id/hour"
android:layout_width="0dp"
android:layout_weight=".2"
android:textSize="12sp"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginEnd="4dp"
android:focusable="true"
android:focusableInTouchMode="true"
android:contentDescription="@string/accessibility_time_picker_hour"
/>
<TextView
android:layout_width="wrap_content"
android:textSize="12sp"
android:layout_height="wrap_content"
android:text="@string/time_picker_dialog_hour_minute_separator"
/>
<NumberPicker
android:id="@+id/minute"
android:layout_width="0dp"
android:layout_weight=".2"
android:textSize="12sp"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginEnd="4dp"
android:focusable="true"
android:focusableInTouchMode="true"
android:contentDescription="@string/accessibility_time_picker_minute"
/>
<TextView
android:id="@+id/second_colon"
android:layout_width="wrap_content"
android:textSize="12sp"
android:layout_height="wrap_content"
android:text="@string/time_picker_dialog_minute_second_separator" />
<NumberPicker
android:id="@+id/second"
android:layout_width="0dp"
android:layout_weight=".2"
android:textSize="12sp"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginEnd="4dp"
android:focusable="true"
android:focusableInTouchMode="true"
android:contentDescription="@string/accessibility_time_picker_second"
/>
<TextView
android:id="@+id/second_dot"
android:layout_width="wrap_content"
android:textSize="12sp"
android:layout_height="wrap_content"
android:text="@string/time_picker_dialog_second_subsecond_separator"
/>
<NumberPicker
android:id="@+id/milli"
android:layout_width="0dp"
android:layout_weight=".2"
android:textSize="12sp"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginEnd="4dp"
android:focusable="true"
android:focusableInTouchMode="true"
android:contentDescription="@string/accessibility_time_picker_milli"
/>
<NumberPicker
android:id="@+id/ampm"
android:layout_width="0dp"
android:layout_weight=".2"
android:textSize="12sp"
android:layout_height="wrap_content"
android:layout_marginStart="4dp"
android:layout_marginEnd="4dp"
android:focusable="true"
android:focusableInTouchMode="true"
android:contentDescription="@string/accessibility_time_picker_ampm"
/>
</LinearLayout>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/pickers"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="center"
android:orientation="horizontal" >
<!-- Position in year -->
<NumberPicker
android:id="@+id/position_in_year"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:layout_marginStart="16dp"
android:contentDescription="@string/accessibility_date_picker_month"
android:focusable="true"
android:focusableInTouchMode="true" />
<!-- Year -->
<NumberPicker
android:id="@+id/year"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginEnd="16dp"
android:layout_marginStart="16dp"
android:contentDescription="@string/accessibility_date_picker_year"
android:focusable="true"
android:focusableInTouchMode="true" />
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/bubble">
<LinearLayout
android:id="@+id/top_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignStart="@+id/icon_view"
android:layout_alignEnd="@+id/text_wrapper"
android:weightSum="1">
<View
android:layout_width="0dp"
android:layout_height="0dp"
android:layout_weight="0.25"
android:visibility="invisible"/>
<ImageView
android:id="@+id/arrow_image"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginBottom="7dp"
android:src="@drawable/bubble_arrow_up"
android:contentDescription="@null" />
</LinearLayout>
<ImageView
android:id="@id/icon_view"
android:layout_width="19dp"
android:layout_height="19dp"
android:layout_alignParentStart="true"
android:layout_below="@id/top_view"
android:layout_marginEnd="8dp"
android:src="@drawable/ic_warning"
android:contentDescription="@null" />
<LinearLayout
android:id="@id/text_wrapper"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_below="@id/top_view"
android:layout_toEndOf="@id/icon_view"
android:orientation="vertical">
<TextView
android:id="@+id/main_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxWidth="300dp"
android:textColor="@android:color/black"
android:textSize="16sp" />
<TextView
android:id="@+id/sub_text"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxWidth="300dp"
android:textColor="#444"
android:textSize="13sp" />
</LinearLayout>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2015 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_height="@dimen/keyboard_accessory_height"
android:layout_width="40dp"
android:background="@drawable/autofill_chip_inset"
android:padding="12dp"
tools:ignore="contentDescription" />
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2015 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<LinearLayout android:background="@drawable/autofill_chip_inset" android:layout_height="@dimen/keyboard_accessory_height" android:layout_width="wrap_content" android:paddingLeft="@dimen/keyboard_accessory_padding" android:paddingRight="@dimen/keyboard_accessory_padding" xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:drawablePadding="@dimen/keyboard_accessory_half_padding" android:ellipsize="end" android:fontFamily="sans-serif-medium" android:gravity="center_vertical" android:id="@+id/autofill_keyboard_accessory_item_label" android:layout_height="match_parent" android:layout_width="wrap_content" android:minWidth="@dimen/keyboard_accessory_chip_height" android:paddingLeft="@dimen/keyboard_accessory_half_padding" android:paddingRight="@dimen/keyboard_accessory_half_padding" android:singleLine="true" android:textColor="#333" android:textSize="@dimen/keyboard_accessory_text_size"/>
<TextView android:ellipsize="end" android:gravity="center_vertical" android:id="@+id/autofill_keyboard_accessory_item_sublabel" android:layout_height="match_parent" android:layout_width="wrap_content" android:paddingRight="@dimen/keyboard_accessory_half_padding" android:singleLine="true" android:textColor="#646464" android:textSize="@dimen/keyboard_accessory_text_size" android:visibility="gone"/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<RelativeLayout android:layout_height="wrap_content" android:layout_width="wrap_content" xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:id="@+id/text" android:layout_height="wrap_content" android:layout_marginLeft="@dimen/color_picker_gradient_margin" android:layout_marginRight="@dimen/color_picker_gradient_margin" android:layout_width="match_parent" android:textAppearance="@android:style/TextAppearance.Medium" android:textIsSelectable="false"/>
<FrameLayout android:background="@drawable/color_picker_border" android:id="@+id/gradient_border" android:layout_below="@id/text" android:layout_height="50dp" android:layout_marginLeft="@dimen/color_picker_gradient_margin" android:layout_marginRight="@dimen/color_picker_gradient_margin" android:layout_marginTop="3dp" android:layout_width="match_parent" android:padding="1dp">
<View android:id="@+id/gradient" android:layout_height="match_parent" android:layout_width="match_parent"/>
</FrameLayout>
<SeekBar android:id="@+id/seek_bar" android:layout_below="@id/text" android:layout_height="75dp" android:layout_width="match_parent" android:progressDrawable="@android:color/transparent" android:thumb="@drawable/color_picker_advanced_select_handle" android:translationY="25dp"/>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<LinearLayout android:layout_height="wrap_content" android:layout_width="match_parent" android:orientation="vertical" android:padding="15dp" xmlns:android="http://schemas.android.com/apk/res/android">
<ScrollView android:layout_height="wrap_content" android:layout_width="match_parent">
<org.chromium.ui.ColorPickerAdvanced android:id="@+id/color_picker_advanced" android:layout_height="wrap_content" android:layout_width="match_parent"/>
</ScrollView>
<org.chromium.ui.ColorPickerSimple android:background="@drawable/color_picker_border" android:divider="@color/color_picker_border_color" android:dividerHeight="1px" android:id="@+id/color_picker_simple" android:layout_height="wrap_content" android:layout_width="match_parent" android:paddingLeft="1px" android:paddingRight="1px" android:paddingTop="1px"/>
<FrameLayout android:background="@drawable/color_picker_border" android:id="@+id/more_colors_button_border" android:layout_height="wrap_content" android:layout_width="match_parent" android:padding="1px">
<org.chromium.ui.ColorPickerMoreButton android:id="@+id/more_colors_button" android:layout_height="wrap_content" android:layout_width="match_parent" android:minHeight="48dp" android:text="@string/color_picker_button_more" android:textAppearance="?android:attr/textAppearanceSmall" style="?android:attr/buttonBarButtonStyle"/>
</FrameLayout>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<RelativeLayout android:layout_height="wrap_content" android:layout_width="match_parent" android:paddingBottom="15dp" android:paddingLeft="20dp" android:paddingRight="20dp" android:paddingTop="15dp" xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:ellipsize="end" android:id="@+id/title" android:layout_centerVertical="true" android:layout_height="wrap_content" android:layout_toLeftOf="@+id/selected_color_view_border" android:layout_width="match_parent" android:singleLine="true" android:textColor="#33B5E5" style="?android:attr/textAppearanceLarge"/>
<FrameLayout android:background="@drawable/color_picker_border" android:id="@+id/selected_color_view_border" android:layout_alignParentRight="true" android:layout_height="40dp" android:layout_width="40dp" android:padding="2dp">
<View android:background="@android:color/black" android:id="@+id/selected_color_view" android:layout_height="match_parent" android:layout_width="match_parent"/>
</FrameLayout>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2012 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<!-- ScrollView is needed since sometimes the dialog does not fit in small screen devices. -->
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center_horizontal"
android:orientation="vertical"
android:gravity="center">
<DatePicker
android:id="@+id/date_picker"
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:spinnersShown="true"
android:calendarViewShown="false"
android:datePickerMode="spinner"
android:contentDescription="@string/accessibility_datetime_picker_date"
/>
<TimePicker
android:id="@+id/time_picker"
android:layout_gravity="center_horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:timePickerMode="spinner"
android:contentDescription="@string/accessibility_datetime_picker_time"
/>
</LinearLayout>
</ScrollView>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<LinearLayout android:gravity="center_vertical" android:id="@+id/date_time_suggestion" android:layout_height="wrap_content" android:layout_width="match_parent" android:minHeight="44dp" android:orientation="horizontal" xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:ellipsize="end" android:id="@+id/date_time_suggestion_value" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_width="wrap_content" android:singleLine="true" android:textSize="18sp"/>
<TextView android:ellipsize="end" android:gravity="end" android:id="@+id/date_time_suggestion_label" android:layout_height="wrap_content" android:layout_marginRight="10dp" android:layout_weight="1" android:layout_width="0dp" android:singleLine="true" android:textColor="#8b8b8b" android:textSize="18sp"/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2014 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<LinearLayout android:gravity="center_vertical" android:layout_height="wrap_content" android:layout_width="match_parent" android:orientation="horizontal" xmlns:android="http://schemas.android.com/apk/res/android">
<!-- These layout params are overwritten in DropdownAdapter.java -->
<LinearLayout android:gravity="center_vertical" android:id="@+id/dropdown_label_wrapper" android:layout_height="0dp" android:layout_weight="1" android:layout_width="0dp" android:orientation="vertical">
<TextView android:ellipsize="end" android:id="@+id/dropdown_label" android:includeFontPadding="false" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_width="wrap_content" android:singleLine="true" android:textAlignment="viewStart" android:textColor="@drawable/dropdown_label_color" android:textSize="18sp"/>
<TextView android:ellipsize="end" android:id="@+id/dropdown_sublabel" android:includeFontPadding="false" android:layout_height="wrap_content" android:layout_marginLeft="10dp" android:layout_marginRight="10dp" android:layout_width="wrap_content" android:singleLine="true" android:textAlignment="viewStart" android:textColor="#646464" android:textSize="14sp"/>
</LinearLayout>
<ImageView android:contentDescription="@null" android:id="@+id/dropdown_icon" android:layout_height="wrap_content" android:layout_margin="8dp" android:layout_width="wrap_content"/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<LinearLayout android:gravity="start" android:layout_gravity="center_vertical" android:layout_height="wrap_content" android:layout_width="wrap_content" android:orientation="vertical" xmlns:android="http://schemas.android.com/apk/res/android">
<TextView android:gravity="start" android:layout_height="wrap_content" android:layout_width="wrap_content" android:paddingBottom="5dp" android:paddingLeft="5dp" android:paddingRight="5dp" android:paddingTop="5dp" android:text="@string/time_picker_dialog_title" android:textColor="#33B5E5" android:textSize="20sp"/>
<View android:background="#33B5E5" android:layout_height="2dp" android:layout_width="match_parent" android:paddingBottom="5dp" android:paddingTop="5dp"/>
<LinearLayout android:gravity="center" android:layout_gravity="center_horizontal" android:layout_height="wrap_content" android:layout_width="wrap_content" android:orientation="horizontal">
<NumberPicker android:contentDescription="@string/accessibility_time_picker_hour" android:focusable="true" android:focusableInTouchMode="true" android:id="@+id/hour" android:layout_height="wrap_content" android:layout_marginLeft="4dp" android:layout_marginRight="4dp" android:layout_weight=".2" android:layout_width="0dp" android:textSize="12sp"/>
<TextView android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="@string/time_picker_dialog_hour_minute_separator" android:textSize="12sp"/>
<NumberPicker android:contentDescription="@string/accessibility_time_picker_minute" android:focusable="true" android:focusableInTouchMode="true" android:id="@+id/minute" android:layout_height="wrap_content" android:layout_marginLeft="4dp" android:layout_marginRight="4dp" android:layout_weight=".2" android:layout_width="0dp" android:textSize="12sp"/>
<TextView android:id="@+id/second_colon" android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="@string/time_picker_dialog_minute_second_separator" android:textSize="12sp"/>
<NumberPicker android:contentDescription="@string/accessibility_time_picker_second" android:focusable="true" android:focusableInTouchMode="true" android:id="@+id/second" android:layout_height="wrap_content" android:layout_marginLeft="4dp" android:layout_marginRight="4dp" android:layout_weight=".2" android:layout_width="0dp" android:textSize="12sp"/>
<TextView android:id="@+id/second_dot" android:layout_height="wrap_content" android:layout_width="wrap_content" android:text="@string/time_picker_dialog_second_subsecond_separator" android:textSize="12sp"/>
<NumberPicker android:contentDescription="@string/accessibility_time_picker_milli" android:focusable="true" android:focusableInTouchMode="true" android:id="@+id/milli" android:layout_height="wrap_content" android:layout_marginLeft="4dp" android:layout_marginRight="4dp" android:layout_weight=".2" android:layout_width="0dp" android:textSize="12sp"/>
<NumberPicker android:contentDescription="@string/accessibility_time_picker_ampm" android:focusable="true" android:focusableInTouchMode="true" android:id="@+id/ampm" android:layout_height="wrap_content" android:layout_marginLeft="4dp" android:layout_marginRight="4dp" android:layout_weight=".2" android:layout_width="0dp" android:textSize="12sp"/>
</LinearLayout>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<LinearLayout android:gravity="center" android:id="@+id/pickers" android:layout_height="match_parent" android:layout_width="match_parent" android:orientation="horizontal" xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Position in year -->
<NumberPicker android:contentDescription="@string/accessibility_date_picker_month" android:focusable="true" android:focusableInTouchMode="true" android:id="@+id/position_in_year" android:layout_height="wrap_content" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" android:layout_width="wrap_content"/>
<!-- Year -->
<NumberPicker android:contentDescription="@string/accessibility_date_picker_year" android:focusable="true" android:focusableInTouchMode="true" android:id="@+id/year" android:layout_height="wrap_content" android:layout_marginLeft="16dp" android:layout_marginRight="16dp" android:layout_width="wrap_content"/>
</LinearLayout>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<RelativeLayout android:background="@drawable/bubble" android:layout_height="wrap_content" android:layout_width="wrap_content" xmlns:android="http://schemas.android.com/apk/res/android">
<LinearLayout android:id="@+id/top_view" android:layout_alignLeft="@+id/icon_view" android:layout_alignRight="@+id/text_wrapper" android:layout_height="wrap_content" android:layout_width="wrap_content" android:weightSum="1">
<View android:layout_height="0dp" android:layout_weight="0.25" android:layout_width="0dp" android:visibility="invisible"/>
<ImageView android:contentDescription="@null" android:id="@+id/arrow_image" android:layout_height="wrap_content" android:layout_marginBottom="7dp" android:layout_width="wrap_content" android:src="@drawable/bubble_arrow_up"/>
</LinearLayout>
<ImageView android:contentDescription="@null" android:id="@id/icon_view" android:layout_alignParentLeft="true" android:layout_below="@id/top_view" android:layout_height="19dp" android:layout_marginRight="8dp" android:layout_width="19dp" android:src="@drawable/ic_warning"/>
<LinearLayout android:id="@id/text_wrapper" android:layout_below="@id/top_view" android:layout_height="wrap_content" android:layout_toRightOf="@id/icon_view" android:layout_width="wrap_content" android:orientation="vertical">
<TextView android:id="@+id/main_text" android:layout_height="wrap_content" android:layout_width="wrap_content" android:maxWidth="300dp" android:textColor="@android:color/black" android:textSize="16sp"/>
<TextView android:id="@+id/sub_text" android:layout_height="wrap_content" android:layout_width="wrap_content" android:maxWidth="300dp" android:textColor="#444" android:textSize="13sp"/>
</LinearLayout>
</RelativeLayout>
<?xml version="1.0" encoding="utf-8"?>
<!-- Copyright 2013 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<!--suppress AlwaysShowAction -->
<menu xmlns:android="http://schemas.android.com/apk/res/android">
<item
android:id="@+id/select_action_menu_cut"
android:icon="?android:attr/actionModeCutDrawable"
android:title="@android:string/cut"
android:showAsAction="always|withText"
android:alphabeticShortcut="x"
/>
<item
android:id="@+id/select_action_menu_copy"
android:icon="?android:attr/actionModeCopyDrawable"
android:title="@android:string/copy"
android:showAsAction="always|withText"
android:alphabeticShortcut="c"
/>
<item
android:id="@+id/select_action_menu_paste"
android:icon="?android:attr/actionModePasteDrawable"
android:title="@android:string/paste"
android:showAsAction="always|withText"
android:alphabeticShortcut="v"
/>
<item
android:id="@+id/select_action_menu_share"
android:title="@string/actionbar_share"
android:showAsAction="always|withText"
style="@style/SelectActionMenuShare"
/>
<item
android:id="@+id/select_action_menu_select_all"
android:icon="?android:attr/actionModeSelectAllDrawable"
android:title="@android:string/selectAll"
android:showAsAction="always|withText"
android:alphabeticShortcut="a"
/>
<group
android:id="@+id/select_action_menu_text_processing_menus">
</group>
<item
android:id="@+id/select_action_menu_web_search"
android:title="@string/actionbar_web_search"
android:showAsAction="always|withText"
style="@style/SelectActionMenuWebSearch"
/>
</menu>
/**
* Copyright (c) 2014 Intel Corporation. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
window.screen.show = function() {
extension.postMessage("hideLaunchScreen");
};
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment