You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

activity_main.xml 1.4KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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. tools:context=".MainActivity"
  10. android:orientation="vertical">
  11. <ScrollView
  12. android:layout_width="fill_parent"
  13. android:layout_height="0dp"
  14. android:layout_weight="1">
  15. <LinearLayout
  16. android:orientation="horizontal"
  17. android:layout_width="match_parent"
  18. android:layout_height="wrap_content"
  19. android:gravity="center">
  20. <ImageView
  21. android:id="@+id/sharedImageView"
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:src="@drawable/ic_launcher"
  25. android:contentDescription="@string/imgdesc" />
  26. </LinearLayout>
  27. </ScrollView>
  28. <EditText
  29. android:id="@+id/outputField"
  30. android:inputType="text"
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content"
  33. android:text="@string/loading"/>
  34. </LinearLayout>