當前位置:首頁 » 安卓系統 » 安卓手機畫線怎麼用

安卓手機畫線怎麼用

發布時間: 2025-09-18 05:16:43

㈠ 炒股時在安卓手機版如何在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、點擊截圖右下角「完成按鈕」帶有紅色畫線的截圖即完成,可在適當位置粘貼。

熱點內容
emc存儲800電話 發布:2025-09-18 06:32:49 瀏覽:957
c語言編程與設計 發布:2025-09-18 06:09:15 瀏覽:720
2016年預演算法 發布:2025-09-18 06:07:05 瀏覽:621
什麼是廣告腳本設計 發布:2025-09-18 05:52:09 瀏覽:656
移動版我的世界伺服器 發布:2025-09-18 05:38:49 瀏覽:963
使用jsp腳本輸出九九乘法表 發布:2025-09-18 05:22:11 瀏覽:668
出行解壓 發布:2025-09-18 05:20:54 瀏覽:579
安卓手機畫線怎麼用 發布:2025-09-18 05:16:43 瀏覽:703
解壓吃蔬菜 發布:2025-09-18 05:10:04 瀏覽:824
php判斷數組個數 發布:2025-09-18 04:54:02 瀏覽:671