Re: [問題] 更新,關於Edit text,客製化問題!求救

作者: givemepass (λ)   2014-09-13 22:49:45
※ 引述《boo0930 (Ambition)》之銘言:
: 大大午安
: 昨天小魯回來以後發現自己腦包沒有貼上完整的網址
: 所以把該篇刪除以後重新發了這篇
: http://ppt.cc/-upW
: 請問我想做到圖中可以在輸入表格內顯示字體以及圖案
: 要怎麼做到呢?
: 求領導或提示
: 非常歡迎站內信,謝謝大大
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#8d8d8d"
android:orientation="vertical" >
<RelativeLayout
android:id="@+id/row1"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="#6d6d6d"
android:layout_margin="5dp"
>
<ImageView
android:src="@drawable/mail2"
android:layout_alignParentLeft="true"
android:layout_width="50dp"
android:layout_height="50dp"
android:id="@+id/row1_img"
>
</ImageView>
<EditText
android:layout_marginLeft="10dp"
android:id="@+id/row1_edit"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_toRightOf="@id/row1_img"
android:background="@null"
android:hint="E-mail address"
>
</EditText>
</RelativeLayout>
<RelativeLayout
android:id="@+id/row2"
android:layout_width="match_parent"
android:layout_height="50dp"
android:background="#6d6d6d"
android:layout_margin="5dp"
>
<ImageView
android:layout_alignParentLeft="true"
android:src="@drawable/lock"
android:layout_width="50dp"
android:layout_height="50dp"
android:id="@+id/row2_img"
>
</ImageView>
<EditText
android:layout_marginLeft="10dp"
android:id="@+id/row2_edit"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_toRightOf="@id/row2_img"
android:background="@null"
android:hint="●●●●●●"
>
</EditText>
</RelativeLayout>
</LinearLayout>
效果
http://ppt.cc/DXzE

Links booklink

Contact Us: admin [ a t ] ucptt.com