自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(4)
  • 资源 (1)
  • 收藏
  • 关注

原创 利用SharedPreferences实现APP首次登陆引导页的跳转

boolean isFirst = true; private Button experience; SharedPreferences sp = null; SharedPreferences.Editor editor; public class LoginActivity extends BaseActivity{ //注册 tv_register = findViewById(R.id.t...

2020-02-21 00:04:46 226

原创 网络解析

import React, { Component } from “react”; import { Platform, StyleSheet, Text, View, FlatList, Image } from “react-native”; export default class Jiexi extends Component { constructor(props) { super(pr...

2020-02-20 11:53:23 104

原创 图片标题栏

黄牌警告 console.disableYellowBox = true; 底部图片 导入三方图片库:yarn add react-native-vector-icons 引入关联:react-native link 导入依赖: import Ionicons from “react-native-vector-icons/Ionicons”; import React, { Component ...

2020-02-20 11:52:28 108

原创 MD5加密算法

使用SignUtils工具类 /** 使用DES加密参数 @param data @param key @return */ public static String encodeData(String data, String key) { try { DESKeySpec ks = new DESKeySpec(key.getBytes(“UTF-8”)); SecretKeyFactor...

2020-02-20 11:45:18 313

网络解析Httpery

constructor(props) { super(props); this.state = { arr: [] }; } componentDidMount() { //使用fetch用于网络加载数据 fetch( "http://api.shujuzhihui.cn/api/news/list?appKey=3e50f800ce7f4cdd9eda8d1c1ca71792&category;=娱乐" ) .then(response => response.json()) .then(responseJson => { this.setState({ arr: responseJson.RESULT.newsList }); }) .catch(error => { console.warn(error); }); } render() { return ( <View> <FlatList data={this.state.arr} renderItem={({ item }) => ( <View> <Text <Image width: 50, height: 50 }} source={{ uri: "http:" + item.newsImg }} /> </View> )} /> </View> ); } } const styles = StyleSheet.create({ container: { flex: 1, justifyContent: "center", alignItems: "center", backgroundColor: "#F5FCFF" }, welcome: { fontSize: 20, textAlign: "center", margin: 10 }, instructions: { textAlign: "center", color: "#333333", marginBottom: 5 } });

2018-11-09

空空如也

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

TA关注的人

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