自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 Android WebView的使用,不跳转浏览器,https

Android webview 不跳转浏览器 https

2022-06-07 17:25:55 1742

原创 日期时间选择器

package com.example.smartcity20210603.activity.Park1122;import androidx.annotation.RequiresApi;import androidx.appcompat.app.AppCompatActivity;import android.app.DatePickerDialog;import android.app.TimePickerDialog;import android.os.Build;import andr

2021-11-23 12:00:09 1829

原创 2021-06-05 ScrollView 顺滑

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

2021-06-05 08:24:56 120

转载 Android Fragment应用实战

http://blog.csdn.net/guolin_blog/article/details/13171191

2021-05-13 10:22:34 101

转载 多个按钮只能选中其一

http://blog.csdn.net/zxt0601/article/details/52703280

2021-05-11 17:31:39 278

原创 Android 列表按时间排序

public class DateUtil {public static Date stringToDate(String dateString) { ParsePosition position = new ParsePosition(0); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm"); Date dateValue = simpleDateFormat.parse(dateString,

2021-05-11 17:24:07 235

原创 外部Fragment包含内部Fragment(Tablayout)

public class HomePageFragment extends BasePageTitleFragent {private Activity mContext;private LayoutInflater mInflater;private View homeFragment;private TabLayout mTablayoutTopTab;private ViewPager mVpHomepageTabContent;@Overrideprotected View init

2021-05-11 17:20:40 68

原创 RecyclerView的点击事件跳转页面

@NonNull@Overridepublic ViewHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {View view = LayoutInflater.from(parent.getContext()).inflate(R.layout.order_item, parent, false);final ViewHolder holder = new ViewHolder(view);holder.ord

2021-05-11 17:16:49 764 1

原创 控件圆角

<!-- 背景颜色 --><solid android:color="#0000FF" /><!-- 边框的宽度和颜色颜色--><stroke android:width="4dip" android:color="#0000FF" /><!-- android:radius 弧形的半径 --><corners android:radius="4dp"/><!-- padding:Button里面的文字与But.

2021-05-11 17:14:33 125

原创 Fragment中的RecyclerView

public class weixinFragment extends Fragment {private RecyclerView recyclerView; //定义ReclerView控件private View view;//定义view来设置fragment中的layoutprivate ArrayList<GoodsEntity> goodsEntities = new ArrayList<GoodsEntity>();private myadpater myad

2021-05-11 09:38:47 398

原创 AS项目目录组成架构

首先创建一个新的项目任何一个新创建的项目都会默认使用 Android 模式的项目结构,但这并不是项目真实的目录结构,而是被 Android Studio转换过的。不过这种项目结构简洁明了,适合进行快速开发。如下图所示点击左上角的Android,将项目结构模式切换成Project模式将项目结构模式切换成 Project,这就是项目真实的目录结构了一、项目的外层结构1. .gradle 和.idea这两个目录下放置的都是 Android Studio自动生成的一些文件。2. app项目中的代

2021-02-03 13:28:35 431

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除