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
<?xml version="1.0" encoding="utf-8"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item | |
android:bottom="1px" | |
android:left="-2px" | |
android:right="-2px" | |
android:top="-2px"> | |
<shape> | |
<stroke |
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
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:gravity="center"> | |
<shape android:shape="oval"> | |
<solid android:color="@color/colorPrimaryDark" /> | |
</shape> | |
</item> | |
<item | |
android:bottom="1dp" | |
android:gravity="center" | |
android:left="1dp" |
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
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
tools:context="com.nttd.app.test.CarMessage.fragments.NormalFragment"> | |
<ScrollView | |
android:layout_width="match_parent" |
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
module.exports = { | |
"parser": "babel-eslint", | |
"extends": [ | |
"eslint:recommended", | |
"plugin:react/recommended" | |
], | |
"plugins": [ | |
"react", | |
"react-native" | |
], |
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
public static void playSystemSound(int type) { | |
AudioManager am = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE); | |
if (am == null) return; | |
final int ringerMode = am.getRingerMode(); | |
switch (ringerMode) { | |
case AudioManager.RINGER_MODE_SILENT: // | |
{ | |
//do nothing | |
} | |
break; |
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
richText(str: string) { | |
// | |
let strAry = new Array(); | |
let startI = 0; | |
let urls = str.match(/<https?\:\/\/.+?>/g); | |
let textAry = str.split(/<https?\:\/\/.+?>/); | |
let viewAry = new Array(); | |
for (let i = 0; i < textAry.length; i++) { | |
let urlCom = null; | |
if (urls != null && i < urls.length) { |
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
import { Theme, Overlay } from 'teaset'; | |
export function BBox(msg: strings) { | |
let overlayView = ( | |
<Overlay.PullView | |
containerStyle={{ alignItems: 'stretch', justifyContent: 'flex-start', backgroundColor: '#00000000', }} | |
side='top' | |
overlayOpacity={0}> | |
<View style={{ justifyContent: 'center', backgroundColor: '#000000D1', height: 120, paddingTop: Theme.statusBarHeight }}> |
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
public class StorageUtils { | |
public static ArrayList<Volume> getVolume(Context context) { | |
ArrayList<Volume> list_storagevolume = new ArrayList<Volume>(); | |
StorageManager storageManager = (StorageManager) context.getSystemService(Context.STORAGE_SERVICE); | |
try { | |
Method method_volumeList = StorageManager.class.getMethod("getVolumeList"); |
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
import React, { Component } from 'react'; | |
import { Image, InteractionManager } from 'react-native'; | |
export default class JImage extends Component<Props> { | |
constructor(props) { | |
super(props) | |
this.state = { | |
width: 1, | |
height: 1 |
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
export async function getCurrentPosition(onSuccess, onError, error3) { | |
if (isAndroid) { | |
const granted = await PermissionsAndroid.check(PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION); | |
if (!granted) { | |
PermissionsAndroid.request(PermissionsAndroid.PERMISSIONS.ACCESS_FINE_LOCATION) | |
.then((status) => { | |
if (status == PermissionStatus.granted) { | |
// | |
getCurrentPosition(onSuccess, onError, false); | |
} |
OlderNewer