安卓手机画线怎么用
㈠ 炒股时在安卓手机版如何在K线图中设置(画)选股的黄金分割指标线呀(0.191、0.
没有手机软件支持,想在手机上画黄金分割线只能通过编写软件来实现
例如下图效果
㈡ 安卓手机炒股软件可以添加指标吗
可以的
安卓手机炒股软件能自定义添加指标。
从菜单中找到公式管理器,打开后,有两种方法添加,
一种是自编,就是将自己写的或是从别的地方拷贝的都可以(当然必须是公式源码
另一种就是直接导入现成的公式,这些公式会因为软件的不同而赋予不同的文件后缀,通过后缀就知道这个公式能否用到你的炒股软件中。
补充:软件中公式管理器的快捷键一般都是Ctrl+F,然后点“新建”,把公式源码COPY进去,然后起个名就可以了。如果含有参数的话,需要在参数设置框中先输入参数名,再输入参数值,一般都是最小值、最大值、默认值。最后就是指定指标画线方法:在主图叠加或是在副图显示。如果是选股公式就没有最后一步了。
㈢ 安卓开发:全屏触摸画线已经实现,如何清屏
Android开发之触摸事件的使用--触摸画线
.xml文件
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity" >
<com.example.touchproject2.MyPaintView
android:id="@+id/paintView"
android:layout_width="fill_parent"
android:layout_height="fill_parent"/>
</LinearLayout>
MainActivity.java文件
package com.example.touchproject2;
import android.os.Bundle;
import android.app.Activity;
import android.view.Menu;
public class MainActivity extends Activity {
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
}
@Override
public boolean onCreateOptionsMenu(Menu menu) {
// Inflate the menu; this adds items to the action bar if it is present.
getMenuInflater().inflate(R.menu.activity_main, menu);
return true;
}
}
MyPaintView.java文件
package com.example.touchproject2;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.graphics.Point;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.view.View;
public class MyPaintView extends View {
private List<Point> allPoints=new ArrayList<Point>();
//接受context以及属性集合(宽度,高度等)
public MyPaintView(Context context, AttributeSet attrs) {
super(context, attrs);
super.setOnTouchListener(new OnTouchListenerImp());
}
private class OnTouchListenerImp implements OnTouchListener{
public boolean onTouch(View v, MotionEvent event) {
Point p=new Point((int)event.getX(),(int)event.getY());
if(event.getAction()==MotionEvent.ACTION_DOWN){
//用户按下,表示重新开始保存点
MyPaintView.this.allPoints=new ArrayList<Point>();
MyPaintView.this.allPoints.add(p);
}
else if(event.getAction()==MotionEvent.ACTION_UP){
//用户松开
MyPaintView.this.allPoints.add(p);
MyPaintView.this.postInvalidate();//重绘图像
}
else if(event.getAction()==MotionEvent.ACTION_MOVE){
MyPaintView.this.allPoints.add(p);
MyPaintView.this.postInvalidate();//重绘图像
}
return true;
}
}
@Override
public void draw(Canvas canvas) {
Paint p=new Paint();//依靠此类开始画线
p.setColor(Color.RED);
if(MyPaintView.this.allPoints.size()>1){
//如果有坐标点,开始绘图
Iterator<Point> iter=MyPaintView.this.allPoints.iterator();
Point first=null;
Point last=null;
while(iter.hasNext()){
if(first==null){
first=(Point)iter.next();
}else{
if(last!=null){
first=last;
}
last=(Point)iter.next();//结束
canvas.drawLine(first.x, first.y, last.x, last.y, p);
}
}
http://blog.sina.com.cn/s/blog_7256fe8f01016u15.html
㈣ 安卓手机怎么在截图画红边框和剪头
电脑上使用QQ截图和360安全浏览器截图功能可以画红色的线。
QQ截图画红色框线步骤如下:
1、在电脑上登录QQ;
2、打开要截图的界面,将该界面置前;
3、按“Ctrl+Alt+A”组合键开启截图功能;
4、选定要截图的区域;
5、选定截图区域后在截图界面下方将出现一组工具,在其中找到“画刷”工具,左键单击;
7、在下方选择红色图块使用红色的线;
8、在截图上单击鼠标右键,在弹出菜单中选择“矩形工具”;
9、矩形框中需要画框线的区域即可;
10、点击截图右下角“完成按钮”带有红色画线的截图即完成,可在适当位置粘贴。