- 博客(5)
- 资源 (7)
- 收藏
- 关注
原创 Switch开关按钮的实现
效果图实现1switch_white_circle_selector.xml<?xml version="1.0" encoding="utf-8"?><item android:drawable="@drawable/switch_white_circle_selected" android:state_checked="true"/><item android:drawable="@drawable/switch_white_circle_normal" a
2021-07-05 10:54:37
401
原创 fragment 隐藏显示
1代码getSupportFragmentManager().beginTransaction().add(R.id.new_fragment,comprehensiveFragment).add(R.id.new_fragment,priceFragment).add(R.id.new_fragment,inficationFragment)//显示需要的Fragment.show(comprehensiveFragment)//隐藏不显示的Fragment.hide(priceFragm
2020-09-23 20:30:38
257
1
原创 竖导航的实现
1依赖 implementation ‘q.rorbin:VerticalTabLayout:1.2.5’2布局<q.rorbin.verticaltablayout.VerticalTabLayoutandroid:id="@+id/tab"android:layout_below="@id/classifc_too"android:layout_width="@dimen/dp_80"android:layout_height=“450dp”></q.rorbin.ver
2020-09-23 20:25:57
438
原创 给TextView
布局//代码Drawable drawable = mcontext.getResources().getDrawable(R.mipmap.ic_launcher);text.setCompoundDrawablesWithIntrinsicBounds(null,drawable,null,null);
2020-09-12 10:08:15
77
原创 sp工具类
package com.tp.utils;import android.content.Context;import android.content.SharedPreferences;import com.tp.app.MyApp;public class SpUtils {private static SpUtils instance;private SharedPreferences sp;public SpUtils(){sp = MyApp.app.getSharedPrefere
2020-09-03 21:54:53
2422
2
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人