Advertisement
cyter

setImageDrawable(),setImageBackground(),setImageResource()

May 26th, 2015
637
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.71 KB | None | 0 0
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.    xmlns:tools="http://schemas.android.com/tools"
  3.    android:layout_width="match_parent"
  4.    android:layout_height="match_parent"
  5.    android:paddingBottom="@dimen/activity_vertical_margin"
  6.    android:paddingLeft="@dimen/activity_horizontal_margin"
  7.    android:paddingRight="@dimen/activity_horizontal_margin"
  8.    android:paddingTop="@dimen/activity_vertical_margin"
  9.    android:orientation="vertical"
  10.    tools:context=".MainActivity" >
  11.  
  12.     <TextView
  13.        android:layout_width="wrap_content"
  14.        android:layout_height="wrap_content"
  15.        android:textColor="#303030"
  16.        android:textStyle="bold|italic"
  17.        android:text="android-coding.blogspot.com" />
  18.     <ImageView
  19.        android:id="@+id/image1"
  20.        android:layout_width="wrap_content"
  21.        android:layout_height="wrap_content"/>
  22.     <ImageView
  23.        android:id="@+id/image2"
  24.        android:layout_width="wrap_content"
  25.        android:layout_height="wrap_content"/>
  26.     <ImageView
  27.        android:id="@+id/image3"
  28.        android:layout_width="wrap_content"
  29.        android:layout_height="wrap_content"/>
  30.     <TextView
  31.        android:id="@+id/textview4"
  32.        android:layout_width="wrap_content"
  33.        android:layout_height="wrap_content"
  34.        android:text="TextView 4"/>
  35.  <Button
  36.        android:id="@+id/button5"
  37.        android:layout_width="wrap_content"
  38.        android:layout_height="wrap_content"
  39.        android:text="Button 5"/>
  40.  <EditText
  41.        android:id="@+id/edittext6"
  42.        android:layout_width="match_parent"
  43.        android:layout_height="wrap_content"
  44.        android:hint="Hello android-coding"/>
  45.  
  46. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement