SEEK-for-Android 文档表示列出的设备支持智能卡 API。
我想通过我的 Android 应用程序访问基于 SIM 卡的安全元件 (SE)。我可以在不 root任何这些受支持的设备且不重建其 Android 系统映像的情况下实现此目的吗?就我而言,该设备是三星 Galaxy S3。
我是构建Android应用程序的新手。当我在MainActivity中单击按钮时,我想添加一个由按钮和imageView组成的新“自定义视图”。我已经按照下面的一些网站列表来构建自定义视图。
javatechig developer.android.com
他们工作完美。但是,如果我想动态添加自定义视图
sView sview = new sView(MainActivity.this);
Run Code Online (Sandbox Code Playgroud)
以后什么都没发生...
或者,如果我想通过以下方式创建新的自定义视图
sView sview = new sView(MainActivity.this, attrs);
Run Code Online (Sandbox Code Playgroud)
我在哪里可以找到并设置属性?
这是我的代码,在MainActivity中,
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
myDraw = (RelativeLayout) findViewById(R.id.myDraw);
btnAddRect = (Button) findViewById(R.id.btnAdd);
mfView = (sView) findViewById(R.id.draw);
btnAdd.setOnClickListener(new OnClickListener() {
@Override
public void onClick(View v) {
SingleFingerView sFingerView = new sView(MainActivity.this);
myDraw.addView(sFingerView);
}
});
}
Run Code Online (Sandbox Code Playgroud)
在自定义视图中,
public class sView extends LinearLayout{
public sView(Context context) {
this(context, null, 0);
}
public sView(Context context, AttributeSet attrs) {
this(context, attrs, 0);
} …
Run Code Online (Sandbox Code Playgroud) 我发现了这个:https://github.com/VineAPI/VineAPI/blob/master/endpoints.md
我在Vine应用程序上关注了Some Process for share video.
1.登录:https ://api.vineapp.com/users/authenticate
使用上述doc lin API成功验证.我收到了一个密钥(会话密钥).
为另一个过程.之后使用下一个Api for Upload Video缩略图On Vine. 2.thumnails https://media.vineapp.com/upload/thumbs/1.3.1.mp4.jpg
缩略图成功上传到藤蔓并收到服务器响应,获取上传的缩略图URL在X-Upload-Key中.你可以看到上面的图像.
3.上传视频:https://media.vineapp.com/upload/videos/1.3.1.mp4
视频数据已成功上传到藤蔓并收到服务器响应,获取上传的视频URL在X-Upload-Key中.你可以看到上面的图像.
4.创建帖子:https ://api.vineapp.com/posts
发布成功创建On Vine并收到服务器响应
{
code = "";
data = {
created = "2016-04-18T09:27:20.000000";
permalinkUrl = "https://vine.co/v/iFaqLt7w5Qm";
postId = 1333777877887795200;
videoUrl = "http://v.cdn.vine.co/static/private_post_old_client.mp4";
};
error = "";
success = 1;
Run Code Online (Sandbox Code Playgroud)
}
当打开permalinkUrl =" https://vine.co/v/iFaqLt7w5Qm "时; 得到错误信息.你可以在Image中看到
并在浏览器上打开链接 http://v.cdn.vine.co/static/private_post_old_client.mp4
视频自动下载,但视频没有下载实际视频.显示一些消息在视频上像这样.
请帮帮我.有什么想法.
如何以编程方式控制整个设备的屏幕方向并进行更改?这里链接到一些可以做到这一点的应用:
http://dandroidtabletpc.com/download-total-screen-control-1-9-3-full-android-apk.html/
http://ru.androidzoom.com/android_applications/tools/ultimate-rotation-control_bznhn.html
也许有人知道像这样的开源项目?
我正在尝试将新RecyclerView
项目添加到我的项目中Fragement
.我正在关注Link1的视频教程.当我尝试为其创建适配器时RecyclerView
,我开始收到此错误.我正在使用Eclipse Juno.我无法弄清楚问题所在.请帮忙
我的代码:
public class RecycleAdapter extends RecyclerView.Adapter<RecycleAdapter.MyViewHolder> {
private LayoutInflater inflator;
List <Item> data = Collections.EMPTY_LIST;
public RecycleAdapter(Context context, List<Item> data){
inflator = LayoutInflater.from(context);
}
@Override
public int getItemCount() {
// TODO Auto-generated method stub
return data.size();
}
@Override
public MyViewHolder onCreateViewHolder(ViewGroup parent, int arg1) {
View view = inflator.inflate(R.layout.row_staggered_new, parent, false);
MyViewHolder holder = MyViewHolder(view);
return holder;
}
@Override
public void onBindViewHolder(MyViewHolder holder, int position) {
Item current = data.get(position); …
Run Code Online (Sandbox Code Playgroud) 我有一个问题我是否可以做这样的事情:
使用弹性盒并且包装器内只有三个div(我想制作两列会更容易,一列包装第一个大div,另一列包装其他两个块,但我想尝试按照我的方式来做)之前已经提到过)
#row {
margin: 0 auto;
width: 610px;
}
#wrapper {
display: -ms-flexbox;
display: -webkit-flex;
display: flex;
-webkit-flex-direction: row;
-ms-flex-direction: row;
flex-direction: row;
-webkit-flex-wrap: wrap;
-ms-flex-wrap: wrap;
flex-wrap: wrap;
-webkit-justify-content: center;
-ms-flex-pack: center;
justify-content: center;
-webkit-align-content: flex-start;
-ms-flex-line-pack: start;
align-content: flex-start;
-webkit-align-items: flex-start;
-ms-flex-align: start;
align-items: flex-start;
}
#x-1,
#x-2,
#x-3 {
margin: 5px;
background-color: red;
}
#x-1 {
height: 250px;
-webkit-order: 0;
-ms-flex-order: 0;
order: 0;
-webkit-flex: 1 1 300px;
-ms-flex: 1 1 300px;
flex: 1 1 …
Run Code Online (Sandbox Code Playgroud)我在wampserver上看到无处不在的降级php我只需要左键单击wamp> php> version> get more>并下载我想要的版本.
但是,当我这样做时,我到达这个页面 ,我没有看到任何链接下载其他PHP版本.我只能下载一个文件php5.2.4.isson这个页面
很好我在php.net上下载它,然后在我的文件夹"C:\ wamp\bin\php\php5.2.4"中解压缩存档
接下来,我将文件夹"C:\ wamp\bin\php\php5.5.12"中的文件wampserver.conf,php.ini和phpForApache.ini复制到文件夹"C:\ wamp\bin\php\php5.2.4"
并完成我在文件php.ini和phpForApache.ini中更改路径:
extension_dir = "C:\wamp\bin\php\php5.2.4"
Run Code Online (Sandbox Code Playgroud)
当我重新启动wamp我有两个版本的php我使用的实际(5.5.12)和我要安装的那个(5.2.4)但是当我选择5.2.4我的wamp图标变成橙色并保持这样我不明白为什么.
我正在尝试创建一个包含输入组的表单.我使用'col'-class of bootstrap来设置它的样式,但是当它与'input-group'类结合使用时,列的填充将被删除.
我想将日期和名称输入字段对齐.
这是我的JSFiddle
HTML
<div class="form-horizontal">
<div class="form-group">
<label class="col-sm-2 col-xs-2 control-label">Date</label>
<div class="col-sm-4 col-xs-4 input-group">
<input type="text" class="form-control" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 col-xs-2 control-label">Name</label>
<div class="col-sm-4 col-xs-4">
<input type="text" class="form-control" />
</div>
</div>
</div>
<br><br>
<div class="form-horizontal">
<div class="form-group">
<label class="col-sm-2 col-xs-2 control-label">Date</label>
<div class="col-sm-4 col-xs-4">
<input type="text" class="form-control" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 col-xs-2 control-label">Name</label>
<div class="col-sm-4 col-xs-4"> …
Run Code Online (Sandbox Code Playgroud) 我正在尝试创建一个包含一些响应式 Div 的页面。
我已经创建了 div,它们有点响应式,但我无法获得正确的边距!
基本上,我需要在 div 之间留一些空间,这样它们就不会粘在一起。
这就是我所做的,这是 CSS:
.holder {
width : 45%;
height : auto;
border : 1px solid red;
display : inline-table;
float : left;
}
@media (max-width: 600px)
{
#container {
width : 100%;
}
.holder {
width : 100%;
}
}
Run Code Online (Sandbox Code Playgroud)
我可以简单地说,.holder {margin:4%; */OR ANY OTHER VALUES HERE*/}
但这意味着第一个 div 会被推离原来的位置,这不是我想要的。
有人可以就这个问题提出建议吗?
提前致谢。
我不清楚tsconfig.json,即使我不使用它也能编译angular2 typescript应用程序.但是在Angular站点中,我们需要配置我们需要将tsconfig.json文件添加到项目文件夹的typescript.有人可以帮我解释一下吗.我搜索了很多但是徒劳无功.
android ×4
css ×3
html ×3
custom-view ×1
eclipse ×1
file-upload ×1
flexbox ×1
ios ×1
nfc ×1
orientation ×1
php ×1
rotation ×1
screen ×1
security ×1
sim-card ×1
typescript ×1
video ×1
wamp ×1
wampserver ×1