转换方法:
- Convert Android VectorDrawable to SVG:
使用附件中的java程序。命令如下:
cp Vector2Svg.java path/to/xml_dir
javac Vector2Svg.java
java Vector2Svg ./*.xml
mkdir svg_dir
1020 | |
01:20:57,253 --> 01:20:58,619 | |
I hear that a lot. | |
1021 | |
01:20:58,621 --> 01:21:00,287 | |
Jackson: Then you probably | |
hear this, too. | |
1022 |
转换方法:
使用附件中的java程序。命令如下:
cp Vector2Svg.java path/to/xml_dir
javac Vector2Svg.java
java Vector2Svg ./*.xml
mkdir svg_dir
// in adb shell I sent this commands for simulating dialog's appears: (Airplane dialog (https://i.stack.imgur.com/Qatww.jpg) is showing on LG G2 phone, on other phones, this dialog may not appear. ) | |
//"settings put global airplane_mode_on 1;am broadcast -a android.intent.action.AIRPLANE_MODE --ez state true" | |
//"settings put global airplane_mode_on 0;am broadcast -a android.intent.action.AIRPLANE_MODE --ez state false" | |
//or start another my dialog-style application, like: | |
// am start -n "org.kinocat.goodsearcher/org.kinocat.goodsearcher.MainActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER | |
//but always topActivity = my main activity . | |
package org.kinocat.myapplication; | |
import android.app.Activity; |
import android.app.Activity; | |
import android.app.Dialog; | |
import android.support.v4.app.DialogFragment; | |
/** | |
* Base dialog fragment. | |
* @param <Listener> listener type. | |
*/ | |
public abstract class BaseDialogFragment<Listener> extends DialogFragment { |
/* | |
* Copyright (C) 2014 [email protected] | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software |
package daichan4649.test; | |
import android.content.Context; | |
import android.util.AttributeSet; | |
import android.view.View; | |
import android.widget.Checkable; | |
import android.widget.LinearLayout; | |
public class CheckableLayout extends LinearLayout implements Checkable { |
package org.kinocat.testlib; | |
import android.annotation.SuppressLint; | |
import android.content.res.Resources; | |
import android.os.Build; | |
import android.text.TextUtils; | |
import android.view.Gravity; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import android.widget.LinearLayout; |
cmake_minimum_required(VERSION 3.1) | |
project(Test1) | |
set(RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/build/") | |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -std=gnu99 -include config.h") | |
set(BUILD_SHARED_LIBS OFF) | |
set(libcommon_SOURCE_FILES | |
# lib/loopdev.c | |
# lib/linux_version.c |
/* | |
* getgrnam_r() implementation for Android NDK | |
* | |
* Copyright (c) 2015 may safely be consumed by a BSD or GPL license. | |
* Written by: Vladimir Oleynik <[email protected]> | |
* | |
*/ | |
#include <sys/types.h> | |
#include <grp.h> |