欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

Android實現(xiàn)簡易計算器(可以實現(xiàn)連續(xù)計算)

 更新時間:2020年03月30日 16:12:08   作者:Linkai12138  
這篇文章主要為大家詳細(xì)介紹了Android實現(xiàn)簡易計算器,可以實現(xiàn)連續(xù)計算,文中示例代碼介紹的非常詳細(xì),具有一定的參考價值,感興趣的小伙伴們可以參考一下

發(fā)一個庫存程序,好像是幾個禮拜之前寫的吧,是一個用安卓實現(xiàn)的簡易的計算器,寫這個小程序之前,看了很多人寫的計算器,覺得使用一個 EditText,并將它設(shè)置為不可編寫,是比較好的解決方案。

設(shè)計思路主要是: 根據(jù)用戶的點擊,在一個 EditText 中顯示用戶輸入的運(yùn)算步驟,例如 1 * 5 + 8 - 5 , 這個運(yùn)算步驟首先是字符串類型的,然后在經(jīng)過系列步驟將字符串解析成為相應(yīng)的實數(shù)計算,最終得出結(jié)果

我是用了兩個 EditText ,第一個顯示運(yùn)算步驟(字符串類型),第二個專門用了保存要參與運(yùn)算的數(shù)字,并實時對這個數(shù)字進(jìn)行更新;

對于: “操作數(shù) 操作運(yùn)算符 操作數(shù)”,可以定義一個數(shù)組來保存這兩操作數(shù),進(jìn)行運(yùn)算之后,將結(jié)果存儲到數(shù)組的第一個元素,方便進(jìn)行連續(xù)運(yùn)算,然后下一個操作數(shù)存儲到數(shù)組的第二個元素,‘'‘' 這樣就實現(xiàn)了連續(xù)運(yùn)算

在實現(xiàn)的過程當(dāng)中,多處用到了類型轉(zhuǎn)換,從字符串轉(zhuǎn)換成浮點數(shù),從浮點數(shù)轉(zhuǎn)換成字符串等,進(jìn)行類型轉(zhuǎn)換是要特別小心,我就是因為類型轉(zhuǎn)換是寫錯了,查bug查了老半天

效果圖就是這樣滴:

有幾個小bug帶修復(fù):

1.運(yùn)算沒有優(yōu)先級,完全是按用戶輸入的步驟來進(jìn)行運(yùn)算
2.連續(xù)按兩次運(yùn)算操作符會閃退,剛開始是按操作符也會閃退
3.其中的正負(fù)數(shù)轉(zhuǎn)換按鈕還沒實行

由于最近要期中考試了,所以這幾個小bug過一段時間再來修復(fù),到時再更新

下面是代碼:

MainActivity.java 文件

package com.example.calculator;

import android.content.Intent;
import android.support.v7.app.ActionBar;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.ImageButton;
import android.widget.TextView;

public class MainActivity extends AppCompatActivity implements View.OnClickListener{

 getResult2 result2 = new getResult2();


 Button button0;
 Button button1;
 Button button2;
 Button button3;
 Button button4;
 Button button5;
 Button button6;
 Button button7;
 Button button8;
 Button button9;
 Button button_point; //小數(shù)點
 Button button_clear; //清空


 //2個imageButton
 Button button_plus;
 Button button_minus;
 Button button_mutiply;
 Button button_divide;
 ImageButton button_equal; //等于
 ImageButton button_delete; //刪除(退格)

 EditText edit_input; //輸入框
 EditText editText2;

 @Override
 protected void onCreate(Bundle savedInstanceState) {
 super.onCreate(savedInstanceState);
 setContentView(R.layout.activity_main);
 ActionBar actionBar = getSupportActionBar();
 if (actionBar != null) {
 actionBar.hide();
 }
 ImageButton imageButton1 = (ImageButton) findViewById(R.id.title_imageButton1);
 imageButton1.setOnClickListener(new View.OnClickListener() {
 @Override
 public void onClick(View v) {
 Intent intent = new Intent(MainActivity.this, SetActivity.class);
 startActivity(intent);
 }
 });


 //實例化按鈕
 button0 = (Button) findViewById(R.id.button0);
 button1 = (Button) findViewById(R.id.button1);
 button2 = (Button) findViewById(R.id.button2);
 button3 = (Button) findViewById(R.id.button3);
 button4 = (Button) findViewById(R.id.button4);
 button5 = (Button) findViewById(R.id.button5);
 button6 = (Button) findViewById(R.id.button6);
 button7 = (Button) findViewById(R.id.button7);
 button8 = (Button) findViewById(R.id.button8);
 button9 = (Button) findViewById(R.id.button9);
 button_point = (Button) findViewById(R.id.button_point);
 button_clear = (Button) findViewById(R.id.button_clear);
 button_plus = (Button) findViewById(R.id.button_plus);
 button_minus = (Button) findViewById(R.id.button_minus);
 button_mutiply = (Button) findViewById(R.id.button_mutiply);
 button_divide = (Button) findViewById(R.id.button_divide);
 button_equal = (ImageButton) findViewById(R.id.button_equal);
 button_delete = (ImageButton) findViewById(R.id.button_delete);
 edit_input = (EditText) findViewById(R.id.main_ediText);
 editText2 = (EditText) findViewById(R.id.edtiText2);

 //設(shè)置點擊事件
 button0.setOnClickListener((View.OnClickListener) this);
 button1.setOnClickListener((View.OnClickListener) this);
 button2.setOnClickListener((View.OnClickListener) this);
 button3.setOnClickListener((View.OnClickListener) this);
 button4.setOnClickListener((View.OnClickListener) this);
 button5.setOnClickListener((View.OnClickListener) this);
 button6.setOnClickListener((View.OnClickListener) this);
 button7.setOnClickListener((View.OnClickListener) this);
 button8.setOnClickListener((View.OnClickListener) this);
 button9.setOnClickListener((View.OnClickListener) this);
 button_point.setOnClickListener((View.OnClickListener) this);
 button_clear.setOnClickListener((View.OnClickListener) this);
 button_plus.setOnClickListener((View.OnClickListener) this);
 button_minus.setOnClickListener((View.OnClickListener) this);
 button_mutiply.setOnClickListener((View.OnClickListener) this);
 button_divide.setOnClickListener((View.OnClickListener) this);
 button_equal.setOnClickListener((View.OnClickListener) this);
 button_delete.setOnClickListener((View.OnClickListener) this);
 button_clear.setOnClickListener((View.OnClickListener) this);

 }

 @Override
 public void onClick(View v) {

 //str用來保存第一個EditText中的字符串
 String str = edit_input.getText().toString();

 //str2用來保存第二個EditText中的字符串
 String str2 = editText2.getText().toString();

 switch (v.getId()) {
 case R.id.button0:
 case R.id.button1:
 case R.id.button2:
 case R.id.button3:
 case R.id.button4:
 case R.id.button5:
 case R.id.button6:
 case R.id.button7:
 case R.id.button8:
 case R.id.button9:
 case R.id.button_point:

 edit_input.setText(str + ((Button) v).getText());
 editText2.setText(str2 + ((Button) v).getText());
 break;

 // + - * / 對應(yīng)的值依次為 1 2 3 4,將值傳入setOperation中,就執(zhí)行相應(yīng)的運(yùn)算
 case R.id.button_plus:

 result2.setNumber(editText2.getText().toString()); //設(shè)置操作數(shù)
 result2.getResult();
 result2.setOperation(1);
 edit_input.setText(str + " " + ((Button) v).getText() + " "); //加上空格更美觀
 str2 = "";
 editText2.setText(str2); //清空textView
 break;
 case R.id.button_minus:

 result2.setNumber(editText2.getText().toString()); //設(shè)置操作數(shù)
 result2.getResult();
 result2.setOperation(2);

 edit_input.setText(str + " " + ((Button) v).getText() + " "); //加上空格更美觀
 str2 = "";
 editText2.setText(str2); //清空textView
 break;
 case R.id.button_mutiply:

 result2.setNumber(editText2.getText().toString()); //設(shè)置操作數(shù)
 result2.getResult();
 result2.setOperation(3); //設(shè)置操作符

 edit_input.setText(str + " " + ((Button) v).getText() + " "); //加上空格更美觀
 str2 = "";
 editText2.setText(str2); //清空textView
 break;
 case R.id.button_divide:

 result2.setNumber(editText2.getText().toString()); //設(shè)置操作數(shù)
 result2.getResult();
 result2.setOperation(4);

 edit_input.setText(str + " " + ((Button) v).getText() + " "); //加上空格更美觀
 str2 = "";
 editText2.setText(str2); //清空textView
 break;

 case R.id.button_delete:

 if (str != null && !str.equals("")) {
 //substring用來截取字符串的長度

 if (str.substring(str.length() - 1, str.length()) == " ") {
 //如果最后一個字符是空格,則刪除最后兩個字符,且eidtText2中字符串不發(fā)生變化
 edit_input.setText(str.substring(0, str.length() - 2));
 } else {
 //如果最后一個字符是數(shù)字
 edit_input.setText(str.substring(0, str.length() - 1));
 //將EditText2中的字符取出,去掉最后一個字符之后再存入
 String c2 = editText2.getText().toString();
 String c3 = c2.substring(0, c2.length() - 1);
 editText2.setText(c3);
 }
 }
 break;
 case R.id.button_clear:
 result2.setDoubleA1(0);
 result2.setDoubleA2(0);
 result2.setA1(" ");
 result2.setA2(" ");
 edit_input.setText("");
 editText2.setText("");
 break;
 case R.id.button_equal:
 result2.setNumber(editText2.getText().toString());
 double r = result2.getResult();
 String r2 = String.valueOf(r);
 editText2.setText(r2);
 result2.setA1(" ");
 result2.setA2(" ");
 str2 = "";
 break;
 }
 }

activity_main.xml 文件:

這里我用的是線性布局,同樣也可以用網(wǎng)格布局

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
 xmlns:tools="http://schemas.android.com/tools"
 android:orientation="vertical" android:layout_width="match_parent"
 android:layout_height="match_parent">

 <include layout="@layout/title"/>
 <EditText
 android:id="@+id/main_ediText"
 android:editable="false"
 android:layout_weight="1"
 android:layout_width="match_parent"
 android:layout_height="0dp" />

 <EditText
 android:id="@+id/edtiText2"
 android:editable="false"
 android:layout_weight="1"
 android:layout_width="match_parent"
 android:layout_height="0dp" />

 <LinearLayout
 android:id="@+id/main_layout"
 android:orientation="vertical"
 android:layout_width="match_parent"
 android:layout_height="0dp"
 android:layout_weight="4"
 android:background="#e4e4e4">

 <LinearLayout
 android:layout_width="match_parent"
 android:layout_height="0dp"
 android:layout_weight="1"
 android:background="#e4e4e4"
 tools:ignore="Suspicious0dp">

 <Button
 android:id="@+id/button_clear"
 android:text="C"
 android:textSize="30sp"
 android:textColor="#fff"
 android:background="#5fe1f2"
 android:layout_gravity="center"
 android:layout_marginTop="10dp"
 android:layout_marginRight="10dp"
 android:layout_marginLeft="10dp"
 android:layout_marginBottom="10dp"
 android:layout_weight="1"
 android:layout_width="0dp"
 android:layout_height="match_parent" />

 <ImageButton
 android:id="@+id/A_button2"
 android:scaleType="center"
 android:src="@drawable/imag1"
 android:background="#5fe1f2"
 android:layout_marginTop="10dp"
 android:layout_marginRight="10dp"
 android:layout_marginLeft="10dp"
 android:layout_marginBottom="10dp"
 android:layout_weight="1"
 android:layout_width="0dp"
 android:layout_height="match_parent" />

 <ImageButton
 android:id="@+id/button_delete"
 android:src="@drawable/imag2"
 android:textSize="24sp"
 android:layout_gravity="center"
 android:background="#5fe1f2"
 android:layout_marginTop="10dp"
 android:layout_marginRight="10dp"
 android:layout_marginLeft="10dp"
 android:layout_marginBottom="10dp"
 android:layout_weight="1"
 android:layout_width="0dp"
 android:layout_height="match_parent" />

 <Button
 android:id="@+id/button_plus"
 android:text="+"
 android:textSize="30sp"
 android:textColor="#fff"
 android:layout_gravity="center"
 android:gravity="center"
 android:background="#5fe1f2"
 android:layout_marginTop="10dp"
 android:layout_marginRight="10dp"
 android:layout_marginLeft="10dp"
 android:layout_marginBottom="10dp"
 android:layout_weight="1"
 android:layout_width="0dp"
 android:layout_height="match_parent" />


 </LinearLayout>

 <LinearLayout
 android:background="#e4e4e4"
 android:layout_weight="1"
 android:layout_width="match_parent"
 android:layout_height="0dp">

 <Button
 android:id="@+id/button7"
 android:text="7"
 android:textSize="30sp"
 android:textColor="#fff"
 android:background="#5fe1f2"
 android:layout_marginTop="10dp"
 android:layout_marginRight="10dp"
 android:layout_marginLeft="10dp"
 android:layout_marginBottom="10dp"
 android:layout_weight="1"
 android:layout_width="0dp"
 android:layout_height="match_parent" />

 <Button
 android:id="@+id/button8"
 android:textSize="30sp"
 android:textColor="#fff"
 android:text="8"
 android:background="#5fe1f2"
 android:layout_marginTop="10dp"
 android:layout_marginRight="10dp"
 android:layout_marginLeft="10dp"
 android:layout_marginBottom="10dp"
 android:layout_weight="1"
 android:layout_width="0dp"
 android:layout_height="match_parent" />

 <Button
 android:id="@+id/button9"
 android:text="9"
 android:textColor="#fff"
 android:textSize="30sp"
 android:background="#5fe1f2"
 android:layout_marginTop="10dp"
 android:layout_marginRight="10dp"
 android:layout_marginLeft="10dp"
 android:layout_marginBottom="10dp"
 android:layout_weight="1"
 android:layout_width="0dp"
 android:layout_height="match_parent" />

 <Button
 android:id="@+id/button_minus"
 android:text="-"
 android:textColor="#fff"
 android:textSize="30sp"
 android:gravity="center"
 android:background="#5fe1f2"
 android:layout_marginTop="10dp"
 android:layout_marginRight="10dp"
 android:layout_marginLeft="10dp"
 android:layout_marginBottom="10dp"
 android:layout_weight="1"
 android:layout_width="0dp"
 android:layout_height="match_parent" />

 </LinearLayout>

 <LinearLayout
 android:background="#e4e4e4"
 android:layout_weight="1"
 android:layout_width="match_parent"
 android:layout_height="0dp">

 <Button
 android:id="@+id/button4"
 android:text="4"
 android:textSize="30sp"
 android:textColor="#fff"
 android:background="#5fe1f2"
 android:layout_marginTop="10dp"
 android:layout_marginRight="10dp"
 android:layout_marginLeft="10dp"
 android:layout_marginBottom="10dp"
 android:layout_weight="1"
 android:layout_width="0dp"
 android:layout_height="match_parent" />

 <Button
 android:id="@+id/button5"
 android:text="5"
 android:textSize="30sp"
 android:textColor="#fff"
 android:background="#5fe1f2"
 android:layout_marginTop="10dp"
 android:layout_marginRight="10dp"
 android:layout_marginLeft="10dp"
 android:layout_marginBottom="10dp"
 android:layout_weight="1"
 android:layout_width="0dp"
 android:layout_height="match_parent" />

 <Button
 android:id="@+id/button6"
 android:text="6"
 android:textSize="30sp"
 android:textColor="#fff"
 android:background="#5fe1f2"
 android:layout_marginTop="10dp"
 android:layout_marginRight="10dp"
 android:layout_marginLeft="10dp"
 android:layout_marginBottom="10dp"
 android:layout_weight="1"
 android:layout_width="0dp"
 android:layout_height="match_parent" />

 <Button
 android:id="@+id/button_mutiply"
 android:text="*"
 android:textColor="#fff"
 android:textSize="30sp"
 android:background="#5fe1f2"
 android:layout_marginTop="10dp"
 android:layout_marginRight="10dp"
 android:layout_marginLeft="10dp"
 android:layout_marginBottom="10dp"
 android:layout_weight="1"
 android:layout_width="0dp"
 android:layout_height="match_parent" />




 </LinearLayout>

 <LinearLayout
 android:background="#e4e4e4"
 android:layout_weight="1"
 android:layout_width="match_parent"
 android:layout_height="0dp">

 <Button
 android:id="@+id/button1"
 android:text="1"
 android:textSize="30sp"
 android:textColor="#fff"
 android:background="#5fe1f2"
 android:layout_marginTop="10dp"
 android:layout_marginRight="10dp"
 android:layout_marginLeft="10dp"
 android:layout_marginBottom="10dp"
 android:layout_weight="1"
 android:layout_width="0dp"
 android:layout_height="match_parent" />

 <Button
 android:id="@+id/button2"
 android:text="2"
 android:textSize="30sp"
 android:textColor="#fff"
 android:background="#5fe1f2"
 android:layout_marginTop="10dp"
 android:layout_marginRight="10dp"
 android:layout_marginLeft="10dp"
 android:layout_marginBottom="10dp"
 android:layout_weight="1"
 android:layout_width="0dp"
 android:layout_height="match_parent" />

 <Button
 android:id="@+id/button3"
 android:text="4"
 android:textSize="30sp"
 android:textColor="#fff"
 android:background="#5fe1f2"
 android:layout_marginTop="10dp"
 android:layout_marginRight="10dp"
 android:layout_marginLeft="10dp"
 android:layout_marginBottom="10dp"
 android:layout_weight="1"
 android:layout_width="0dp"
 android:layout_height="match_parent" />

 <Button
 android:id="@+id/button_divide"
 android:text="/"
 android:textColor="#fff"
 android:textSize="24sp"
 android:background="#5fe1f2"
 android:layout_marginTop="10dp"
 android:layout_marginRight="10dp"
 android:layout_marginLeft="10dp"
 android:layout_marginBottom="10dp"
 android:layout_weight="1"
 android:layout_width="0dp"
 android:layout_height="match_parent" />


 </LinearLayout>

 <LinearLayout
 android:layout_weight="1"
 android:layout_width="match_parent"
 android:layout_height="0dp">

 <Button
 android:id="@+id/button0"
 android:text="0"
 android:textSize="30sp"
 android:textColor="#fff"
 android:background="#5fe1f2"
 android:layout_marginTop="10dp"
 android:layout_marginRight="10dp"
 android:layout_marginLeft="10dp"
 android:layout_marginBottom="10dp"
 android:layout_weight="2"
 android:layout_width="0dp"
 android:layout_height="match_parent" />

 <Button
 android:id="@+id/button_point"
 android:text="."
 android:textSize="30sp"
 android:textColor="#fff"
 android:background="#5fe1f2"
 android:layout_marginTop="10dp"
 android:layout_marginRight="10dp"
 android:layout_marginLeft="10dp"
 android:layout_marginBottom="10dp"
 android:layout_weight="1"
 android:layout_width="0dp"
 android:layout_height="match_parent" />



 <ImageButton
 android:id="@+id/button_equal"
 android:src="@drawable/imag8"
 android:background="#5fe1f2"
 android:layout_marginTop="10dp"
 android:layout_marginRight="10dp"
 android:layout_marginLeft="10dp"
 android:layout_marginBottom="10dp"
 android:layout_weight="1"
 android:layout_width="0dp"
 android:layout_height="match_parent" />

 </LinearLayout>

 </LinearLayout>

</LinearLayout>

getResult2.java 文件

還有一個getResult2 類,用來獲得運(yùn)算之后的結(jié)果

package com.example.calculator;

public class getResult2 {

 private String a1; //第一位操作數(shù)
 private double doubleA1; //實際參與運(yùn)算

 private String a2; //第二位操作數(shù)
 private double doubleA2; //實際參與運(yùn)算

 private int operation; //運(yùn)算符

 double result; //結(jié)果

 //構(gòu)造函數(shù)
 getResult2() {
 a1 = " ";
 a2 = " ";
 operation = 0;
 }

 void setA1(String A1) {
 a1 = A1;
 }

 void setA2(String A2) {
 a2 = A2;
 }

 void setDoubleA1(double x) {
 doubleA1 = x;
 }

 void setDoubleA2(double y) {
 doubleA2 = y;
 }
 //設(shè)置操作數(shù),同時將字符串轉(zhuǎn)換成數(shù)字,如果帶小數(shù)點,轉(zhuǎn)換成浮點數(shù),否則轉(zhuǎn)換成整數(shù)
 public void setNumber(String x) {
 if (a1.equals(" ")) {
 a1 = x;
 if (a1.contains(".")) {
 doubleA1 = Double.parseDouble(a1);
 } else {
 doubleA1 = Integer.parseInt(a1);
 }
 } else {
 a2 = x;
 if (a2.contains(".")) {
 doubleA2 = Double.parseDouble(a2);
 } else {
 doubleA2 = Integer.parseInt(a2);
 }
 }
 }

 public void setOperation(int i) {
 operation = i;
 }

 //進(jìn)行運(yùn)算,得到結(jié)果,同時將結(jié)果賦值給第一位操作數(shù)
 public double getResult() {
 if (operation == 1) {
 if (!a1.equals(" ") && a2.equals(" ")) {
 return 0;
 } else {
 result = doubleA1 + doubleA2;
 a1 = String.valueOf(result);
 doubleA1 = result;
 a2 = " ";
 }

 } else if (operation == 2) {
 if (!a1.equals("") && a2.equals("")) {
 return 0;
 } else {
 result = doubleA1 - doubleA2;
 a1 = String.valueOf(result);
 doubleA1 = result;
 a2 = " ";
 }
 } else if (operation == 3) {
 if (!a1.equals(" ") && a2.equals(" ")) {
 return 0;
 } else {
 result = doubleA1 * doubleA2;
 a1 = String.valueOf(result);
 doubleA1 = result;
 a2 = " ";
 }
 } else if (operation == 4) {
 if (!a1.equals(" ") && a2.equals(" ")) {
 return 0;
 } else {
 result = doubleA1 / doubleA2;
 a1 = String.valueOf(result);
 doubleA1 = result;
 a2 = " ";
 }
 }
 return result;
 }
}

更多計算器功能實現(xiàn),請點擊專題: 計算器功能匯總 進(jìn)行學(xué)習(xí)

關(guān)于Android計算器功能的實現(xiàn),查看專題:Android計算器 進(jìn)行學(xué)習(xí)。

以上就是本文的全部內(nèi)容,希望對大家的學(xué)習(xí)有所幫助,也希望大家多多支持腳本之家。

相關(guān)文章

  • flutter仿微信底部圖標(biāo)漸變功能的實現(xiàn)代碼

    flutter仿微信底部圖標(biāo)漸變功能的實現(xiàn)代碼

    這篇文章主要介紹了flutter仿微信底部圖標(biāo)漸變功能,本文通過實例代碼給大家介紹的非常詳細(xì),對大家的學(xué)習(xí)或工作具有一定的參考借鑒價值,需要的朋友可以參考下
    2020-04-04
  • Android studio 快捷鍵大全

    Android studio 快捷鍵大全

    android studio使用教程,主要為大家介紹的是android studio快捷鍵,如果我們掌握了一些常用快捷鍵,那么在使用android studio的過程中會達(dá)到事半功倍的效果哦
    2016-01-01
  • 解決Android7.0更新后無法安裝的問題

    解決Android7.0更新后無法安裝的問題

    項目中發(fā)現(xiàn)在自動更新功能的時候,下載好了apk的文件后在android7.0系統(tǒng)中不能自動跳到安裝界面,后來搜索了一番解決了問題,但感覺沒有描述清楚,所以補(bǔ)充一下。
    2017-12-12
  • Android中Notification 提示對話框

    Android中Notification 提示對話框

    Notification,俗稱通知,是一種具有全局效果的通知,它展示在屏幕的頂端,首先會表現(xiàn)為一個圖標(biāo)的形式,當(dāng)用戶向下滑動的時候,展示出通知具體的內(nèi)容
    2016-01-01
  • Android AlertDialog多種創(chuàng)建方式案例詳解

    Android AlertDialog多種創(chuàng)建方式案例詳解

    這篇文章主要介紹了Android AlertDialog多種創(chuàng)建方式案例詳解,本篇文章通過簡要的案例,講解了該項技術(shù)的了解與使用,以下就是詳細(xì)內(nèi)容,需要的朋友可以參考下
    2021-08-08
  • Android如何利用svg實現(xiàn)可縮放的地圖控件

    Android如何利用svg實現(xiàn)可縮放的地圖控件

    這篇文章主要給大家介紹了關(guān)于Android如何利用svg實現(xiàn)可縮放的地圖控件的相關(guān)資料,文中通過實例代碼介紹的非常詳細(xì),對大家的學(xué)習(xí)或者工作具有一定的參考學(xué)習(xí)價值,需要的朋友可以參考下
    2022-01-01
  • Android 文件操作詳解及簡單實例

    Android 文件操作詳解及簡單實例

    這篇文章主要介紹了 Android 文件操作詳解及簡單實例的相關(guān)資料,需要的朋友可以參考下
    2017-02-02
  • Android編程使用Fragment界面向下跳轉(zhuǎn)并一級級返回的實現(xiàn)方法

    Android編程使用Fragment界面向下跳轉(zhuǎn)并一級級返回的實現(xiàn)方法

    這篇文章主要介紹了Android編程使用Fragment界面向下跳轉(zhuǎn)并一級級返回的實現(xiàn)方法,較為詳細(xì)的分析了Fragment界面跳轉(zhuǎn)所涉及的相關(guān)知識點與實現(xiàn)技巧,并附帶了完整的實例代碼供讀者下載參考,需要的朋友可以參考下
    2015-10-10
  • Android 藍(lán)牙開發(fā)實例解析

    Android 藍(lán)牙開發(fā)實例解析

    本文主要介紹Android 藍(lán)牙開發(fā),這里提供實例代碼和詳細(xì)解析實現(xiàn)方法,對開發(fā)Android藍(lán)牙開發(fā)的朋友提供簡單示例,有需要的朋友可以參考下
    2016-08-08
  • Android中的SQLite數(shù)據(jù)庫簡介

    Android中的SQLite數(shù)據(jù)庫簡介

    SQLite是Android系統(tǒng)采用的一種開源的輕量級的關(guān)系型的數(shù)據(jù)庫。這篇文章主要介紹了Android中的SQLite數(shù)據(jù)庫簡介,需要的朋友可以參考下
    2017-03-03

最新評論