AndroidDialer.zip

  • 人人为我我为
    了解作者
  • Java
    开发工具
  • 43.8MB
    文件大小
  • zip
    文件格式
  • 1
    收藏次数
  • 10 积分
    下载积分
  • 1
    下载次数
  • 2021-03-23 14:02
    上传日期
android 原生拨号应用,android studio可编译
AndroidDialer.zip
内容介绍
/* * Copyright (C) 2010 The Android Open Source Project * * 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 * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package com.android.ex.editstyledtext; import java.io.InputStream; import java.util.ArrayList; import java.util.HashMap; import com.android.ex.editstyledtext.EditStyledText.EditModeActions.EditModeActionBase; import com.android.ex.editstyledtext.EditStyledText.EditStyledTextSpans.HorizontalLineSpan; import com.android.ex.editstyledtext.EditStyledText.EditStyledTextSpans.MarqueeSpan; import com.android.ex.editstyledtext.EditStyledText.EditStyledTextSpans.RescalableImageSpan; import android.R; import android.app.AlertDialog; import android.app.AlertDialog.Builder; import android.content.Context; import android.content.DialogInterface; import android.content.DialogInterface.OnCancelListener; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Rect; import android.graphics.drawable.BitmapDrawable; import android.graphics.drawable.Drawable; import android.graphics.drawable.ShapeDrawable; import android.graphics.drawable.shapes.RectShape; import android.net.Uri; import android.os.Bundle; import android.os.Parcel; import android.os.Parcelable; import android.os.ResultReceiver; import android.text.ClipboardManager; import android.text.Editable; import android.text.Html; import android.text.Layout; import android.text.NoCopySpan; import android.text.NoCopySpan.Concrete; import android.text.Selection; import android.text.Spannable; import android.text.SpannableStringBuilder; import android.text.Spanned; import android.text.TextPaint; import android.text.Html.ImageGetter; import android.text.Html.TagHandler; import android.text.method.ArrowKeyMovementMethod; import android.text.style.AbsoluteSizeSpan; import android.text.style.AlignmentSpan; import android.text.style.BackgroundColorSpan; import android.text.style.CharacterStyle; import android.text.style.DynamicDrawableSpan; import android.text.style.ForegroundColorSpan; import android.text.style.ImageSpan; import android.text.style.ParagraphStyle; import android.text.style.QuoteSpan; import android.text.style.UnderlineSpan; import android.util.AttributeSet; import android.util.Log; import android.view.ContextMenu; import android.view.Gravity; import android.view.KeyEvent; import android.view.MenuItem; import android.view.MotionEvent; import android.view.View; import android.view.inputmethod.EditorInfo; import android.view.inputmethod.InputConnection; import android.view.inputmethod.InputConnectionWrapper; import android.view.inputmethod.InputMethodManager; import android.widget.Button; import android.widget.EditText; import android.widget.LinearLayout; import android.widget.TextView; /** * EditStyledText extends EditText for managing the flow and status to edit the styled text. This * manages the states and flows of editing, supports inserting image, import/export HTML. */ public class EditStyledText extends EditText { private static final String TAG = "EditStyledText"; /** * DBG should be false at checking in. */ private static final boolean DBG = true; /** * Modes of editing actions. */ /** The mode that no editing action is done. */ public static final int MODE_NOTHING = 0; /** The mode of copy. */ public static final int MODE_COPY = 1; /** The mode of paste. */ public static final int MODE_PASTE = 2; /** The mode of changing size. */ public static final int MODE_SIZE = 3; /** The mode of changing color. */ public static final int MODE_COLOR = 4; /** The mode of selection. */ public static final int MODE_SELECT = 5; /** The mode of changing alignment. */ public static final int MODE_ALIGN = 6; /** The mode of changing cut. */ public static final int MODE_CUT = 7; public static final int MODE_TELOP = 8; public static final int MODE_SWING = 9; public static final int MODE_MARQUEE = 10; public static final int MODE_SELECTALL = 11; public static final int MODE_HORIZONTALLINE = 12; public static final int MODE_STOP_SELECT = 13; public static final int MODE_CLEARSTYLES = 14; public static final int MODE_IMAGE = 15; public static final int MODE_BGCOLOR = 16; public static final int MODE_PREVIEW = 17; public static final int MODE_CANCEL = 18; public static final int MODE_TEXTVIEWFUNCTION = 19; public static final int MODE_START_EDIT = 20; public static final int MODE_END_EDIT = 21; public static final int MODE_RESET = 22; public static final int MODE_SHOW_MENU = 23; /** * States of selection. */ /** The state that selection isn't started. */ public static final int STATE_SELECT_OFF = 0; /** The state that selection is started. */ public static final int STATE_SELECT_ON = 1; /** The state that selection is done, but not fixed. */ public static final int STATE_SELECTED = 2; /** The state that selection is done and not fixed. */ public static final int STATE_SELECT_FIX = 3; /** * Help message strings. */ public static final int HINT_MSG_NULL = 0; public static final int HINT_MSG_COPY_BUF_BLANK = 1; public static final int HINT_MSG_SELECT_START = 2; public static final int HINT_MSG_SELECT_END = 3; public static final int HINT_MSG_PUSH_COMPETE = 4; public static final int HINT_MSG_BIG_SIZE_ERROR = 5; public static final int HINT_MSG_END_PREVIEW = 6; public static final int HINT_MSG_END_COMPOSE = 7; /** * Fixed Values. */ public static final int DEFAULT_TRANSPARENT_COLOR = 0x00FFFFFF; public static final int DEFAULT_FOREGROUND_COLOR = 0xFF000000; public static final char ZEROWIDTHCHAR = '\u2060'; public static final char IMAGECHAR = '\uFFFC'; private static final int ID_SELECT_ALL = android.R.id.selectAll; private static final int ID_START_SELECTING_TEXT = android.R.id.startSelectingText; private static final int ID_STOP_SELECTING_TEXT = android.R.id.stopSelectingText; private static final int ID_PASTE = android.R.id.paste; private static final int ID_COPY = android.R.id.copy; private static final int ID_CUT = android.R.id.cut; private static final int ID_HORIZONTALLINE = 0x00FFFF01; private static final int ID_CLEARSTYLES = 0x00FFFF02; private static final int ID_SHOWEDIT = 0x00FFFF03; private static final int ID_HIDEEDIT = 0x00FFFF04; private static final int MAXIMAGEWIDTHDIP = 300; /** * Strings for context menu. TODO: Extract the strings to strings.xml. */ private static CharSequence STR_HORIZONTALLINE; private static CharSequence STR_CLEARSTYLES; private static CharSequence STR_PASTE; private float mPaddingScale = 0; private ArrayList<EditStyledTextNotifier> mESTNotifiers; private Drawable mDefaultBackground; // EditStyledTextEditorManager manages the flow and status of each function of StyledText. private EditorManager mManager; private InputConnection mInputConnection; private StyledTextConverter mConverter; private StyledTextDialog mDialog; private static final Concrete SELECTING = new NoCopySpan.Concrete(); private static final int PRESSED = Spannable.SPAN_MARK_MARK | (1 << Spannable.SPAN_USER_SHIFT); /** * EditStyledText extends EditText for managing flow of each editing action.
评论
    相关推荐
    • Android 源码
      Android开发精典案例60个Android开发精典案例60个
    • android源码
      android源码
    • Android源码
      Android源码
    • android 源码
      android 源码 20多个有非常丰富的功能。遗憾的是没有service
    • android源码
      从TXT文件读到手机通讯录中,源码。比较简单,学习用。
    • android源码
      直接在把文件拷贝后解压后复制到android-sdk-windows子目录下,就可以了
    • android源码
      android源码开发与设计。
    • android源码
      android源码
    • Android源码
      几个Android源码,例如手机点餐下单项目和一些demo。
    • Android源码
      AndroidSDK的所有源码,深入理解Android,解压后直接在编程软件中新建工程并复制进去即可()