Tag android-imageview

[Solved] How can I get image’s name?

if your image is a file like ‘aaa.jpg/png..’ try to use the APIs of String such as subString().indexOf() and your code may be like this: int index = name.indexOf(“.”); String name = name.subString(name,0,index); solved How can I get image’s name?

[Solved] Placing EditTexts over an Imageview [closed]

Basic sample, modify it to your need: <TextView android:id=”@+id/textView1″ android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:text=”Large Text” android:textAppearance=”?android:attr/textAppearanceLarge” /> <EditText android:id=”@+id/editText1″ android:layout_width=”match_parent” android:layout_height=”wrap_content” android:ems=”10″ > <requestFocus /> </EditText> <TextView android:id=”@+id/textView2″ android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:text=”Large Text” android:textAppearance=”?android:attr/textAppearanceLarge” /> <EditText android:id=”@+id/editText2″ android:layout_width=”match_parent” android:layout_height=”wrap_content” android:ems=”10″ /> </LinearLayout> solved…

[Solved] android ImageView allways top and bottom [closed]

Try this layout. <RelativeLayout xmlns:android=”” xmlns:app=”” android:layout_width=”fill_parent” android:layout_height=”fill_parent”> <ImageView android:id=”@+id/imageView” android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:layout_alignParentEnd=”true” android:layout_alignParentStart=”true” android:layout_alignParentTop=”true” android:src=”” /> <LinearLayout android:layout_width=”match_parent” android:layout_height=”wrap_content” android:layout_centerHorizontal=”true” android:orientation=”horizontal” android:layout_above=”@+id/imageView2″ android:layout_below=”@+id/imageView”></LinearLayout> <ImageView android:id=”@+id/imageView2″ android:layout_width=”wrap_content” android:layout_height=”wrap_content” android:src=”” android:layout_alignParentEnd=”true” android:layout_alignParentStart=”true” android:layout_alignParentBottom=”true” /> </RelativeLayout> solved android ImageView allways top and…