- 博客(19)
- 资源 (3)
- 收藏
- 关注
转载 Android-在BaseAdapter中进行activity之间的跳转
context.startActivity(intent);就是在常规的startactivity前面加个上下文
2019-02-26 16:48:33 770
原创 Android-用代码实现打开数据连接
public void setMobileDataState(Context context, boolean enabled) { TelephonyManager telephonyService = (TelephonyManager) context.getSystemService(Context.TELEPHONY_SERVICE); try { Me...
2019-02-26 14:46:49 879
转载 Android控件入门-ProgressBar进度条颜色
ProgressBar进度条颜色:indeterminateTint="#e4472a"属性即可
2019-02-26 13:34:21 954
原创 Android控件入门-按钮先隐藏然后点击按钮显示
public class MainActivity extends Activity { private TextView texView; private Button button; private boolean isButton = true; @Override protected void onCreate(Bundle savedI...
2019-02-26 13:33:17 1904
原创 Android控件入门-RadioButton
设置圆圈颜色:android:buttonTint="@color/colorWhite"取消圆圈:android:button="@null"
2019-02-26 11:40:24 172
原创 Android控件入门-为布局动画效果
xml:<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" android:id="@+id/liner1" and...
2019-02-25 21:21:04 250
原创 javascript数字插入
<!DOCTYPE html><html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> li {
2019-02-25 08:31:43 353
原创 Android控件入门-自定义动画效果
xml:<Button android:id="@+id/btn_myanim" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/btn_myanim" />java:private CustomA...
2019-02-24 23:01:40 235
原创 Android控件入门-动画效果监听
动画效果监听:xml:<Button android:id="@+id/btn_listener" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/btn_listener" />java:pr...
2019-02-24 22:32:50 215
原创 Android控件入门-动画混合效果
动画混合效果第一种:xml:<Button android:id="@+id/btn_mix" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/btn_mix" />java:private...
2019-02-24 22:21:52 199
原创 Android控件入门-动画效果(缩放动画)
缩放动画效果(scale)第一种:xml:<Button android:id="@+id/btn_scale" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/btn_scale" />j...
2019-02-24 21:29:19 2359
原创 Android控件入门-动画效果(移动动画)
移动动画(translate):第一种方式:xml:<Button android:id="@+id/btn_translate" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/btn_translate...
2019-02-24 20:18:17 1123
原创 Android控件入门-动画效果(旋转动画)
旋转动画效果(rotate)第一种:xml:<Button android:id="@+id/btn_rotate" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/btn_rotate" />j...
2019-02-24 19:56:35 553
原创 Android控件入门-动画效果(透明度动画)
透明度动画(alpha):第一种方式:xml:<Button android:id="@+id/btn_alpha" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="@string/btn_alpha" />ja...
2019-02-24 19:20:03 890
原创 Android控件入门-单选多选控件
单选:xml:<TextView android:layout_width="match_parent" android:layout_height="wrap_content" android:text="世界上最好的编程语言是什么?" android:textSize="20sp" /><RadioGroup androi...
2019-02-23 09:13:05 1469
原创 Android控件入门-时间日期控件
日期:xml:<Button android:id="@+id/addtime" android:layout_width="match_parent" android:layout_height="wrap_content" android:text="日期选择器" />java:private Button btnChooseDa...
2019-02-22 16:50:21 260
原创 Android控件入门-Spinner下拉菜单
xml:<Spinner android:id="@+id/spinner" android:layout_width="match_parent" android:layout_height="wrap_content" />java: private static final String TAG = "MainActivity";pr...
2019-02-22 15:44:04 279
原创 Namespace 'app' is not bound
主要的问题是根节点少了一个声明。xmlns:app="http://schemas.android.com/apk/res-auto"
2019-02-16 11:14:20 5027 1
转载 API28 BottomNavigationView取消动画显示全部字体
<android.support.design.widget.BottomNavigationView app:labelVisibilityMode="labeled" />
2019-02-16 10:15:17 368
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人