TextView

private TextView textView;...textView =(TextView)findViewById(R.id.textView);textView.setText("set text success");

控制:

<TextView         android:id="@+id/textView"        android:layout_width="match_parent"        android:layout_height="wrap_content"        android:textColor="#ff0000"        android:text="old text"        />

ImageView

 imageViewId1 =(ImageView)findViewById(R.id.imageViewId1); imageViewId1.setImageResource(R.drawable.logo_small); imageViewId1.setScaleType(ScaleType.CENTER);
<ImageView     android:id="@+id/imageViewId1"    android:layout_width="120dp"    android:layout_height="120dp"    android:src="@drawable/pic1"    android:scaleType="fitXY"    android:background="#ff0000"    />

更多相关文章

  1. Android锁屏控制
  2. android 动态控制状态栏显示和隐藏的方法实例
  3. android ui 布局性能优化
  4. cocos2dx 移植android 报错
  5. Android(安卓)中Button点击频率的控制
  6. Android-- 输入法键盘控制
  7. Android开发问题记录——“The connection to adb is down...”
  8. Google Android真实的谎言
  9. cocos2d-x-2.1.4在NDK r9下的编译问题

随机推荐

  1. Android(安卓)Studio如何更改JDK和SDK的
  2. pc android sqlcipher 加密
  3. Android(安卓)学习记录-SQLite
  4. Android(安卓)Widevine 基本概念
  5. 杂乱之android的Spinner应用
  6. android OTA差分包的生成方法
  7. Android实现三级联动下拉框 下拉列表spin
  8. Android操作联系人
  9. Android的多媒体信息获取
  10. android中checkbox的padding引发的问题