㈠ android java 文字圖片混排
首先,你的會android的 線性布局Linearlayout 方便排版,ScrollView 布局時可以滑動的!
你的知道listview 可以輸出循環,但是在ScrollView 中需要重寫。
還是參考代碼吧
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical "> //vertical 是垂直,horizontal 是水平
<ImageView
android:id="@+id/photo1"
android:layout_width="55dp"
android:layout_height="55dp"
android:layout_margin="5dp"
android:src="@drawable/plan1"/>
<TextView
android:id="@+id/title1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="訓練須知"
android:textSize="25dp"
android:textColor="@color/cbrown"
android:layout_gravity="center"
android:layout_marginLeft="10dp"/>
</LinearLayout>
㈡ 有什麼軟體可以做這種圖上帶字的,功能強大點的並且支持安卓系統的
文字的話在任何可支持後期的設備上作圖軟體都可以的,關鍵是要有齊全的設計字體包或者有你想要的字體!電腦做是最佳的選擇,我電腦自己安裝的字體包就好幾個G了。
㈢ android 中寫入幾個圖片 點擊圖片後有相應的文字介紹該圖片 該怎麼寫急急。。。。。。。
你想要什麼效果呢。。。如果是隨便,就弄個textview組件setText就行了。
如果想要彈出效果就用builder。具體代碼如下:
Builder builder=new AlertDialog.Builder(this);
builder.setMessage("這個圖片OOXXXXX");
builder.setPositiveButton("確定", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
dialog.cancel();
}
}).create().show();
把這段代碼放進放圖片的view的點擊事件內就ok了。
點擊事件不用我說了吧。。。。on什麼什麼的。。。自己看相應的需求選擇監聽事件吧。
㈣ android怎樣實現在圖片上任意位置添加文字 要代碼 急求。。
android在圖片上任意位置添加文字,可以使用canvas類進行操作,實例如下:
@Override
protectedvoidonDraw(Canvascanvas)
{
super.onDraw(canvas);
canvas.drawBitmap(m_LogInBmp,null,m_LogIndst,m_txBackPaint);
floattleft=m_LogIndst.left+(m_LogIndst.right-m_LogIndst.left-FontWidth*m_TextLogIn.length())/2;
floatttop=m_LogIndst.top+(m_LogIndst.bottom-m_LogIndst.top-FontHeight)/2+FontHeight;
canvas.drawText(m_TextLogIn,tleft,ttop,mLogInPaint);
}
㈤ 手機上有沒有軟體可以給圖片添加文字
1、ypic
《Typic》是一款幫助你把圖片和文字結合起來的App。相比其他同類App,Typic最突出的特點是上手非常容易:將圖文合成的操作分步完成,新用戶可以專注於當前的操作,不會被其他功能分心。
2、美圖秀秀
美圖秀秀是2008年10月8日由廈門美圖科技有限公司研發、推出的一款免費圖片處理的軟體,有iPhone版、Android版、PC版、Windows Phone版、iPad版及網頁版,致力於為全球用戶提供專業智能的拍照、修圖服務。
3、天天P圖
天天P圖為全能實用美圖類App,由騰訊出品。包括美化圖片、自然美妝、瘋狂變妝、魔法摳圖等七個模塊。簡單實用的圖片編輯功能,讓手機也可輕松製作單反級效果;多款新潮妝容,瞬間打造出精緻美顏。
4、玩圖
玩圖是一款APP,可以讓用戶製作GIF動畫, 還能加濾鏡和動態相框, 讓呆板的照片瞬間躍然紙上, 讓你顯得很酷, 與眾不同。並且能一鍵分享到新浪微博, 騰訊微博,人人網3大社區。
5、簡圖安卓版
簡圖是一款非常好用的圖片處理app,在發送朋友圈的時候總覺得圖片太單調無法表達內心的意思,下載簡圖安卓版app可以為你的圖片加上心情文字,操作簡單傻瓜式一鍵操作,打造你的文藝范圖片。
㈥ Android如何在Html中插入圖片和文字
android在html插入圖片和文字的方式如下:
叫前端工程師,設計好html界面,裡面已經插入了圖片和文字。
將所有的html文件和css文件放到android工程的asserts文件夾下,在代碼中就可以載入文件夾下的所有html文件。
㈦ android 圖片上加文字 並且文字的中心點和圖片一致怎麼做
他這個圖片是.9的圖片
設置圖片 android:layout_gravity="center_horizontal"
你的文字也需要居中對齊
㈧ android在一張圖片相應位置顯示字的布局
1、在一張圖片的任意位置顯示文字,使用RelativeLayout布局,俗稱相對布局,是在Android開發中使用得最多的一種布局方式,比如在圖片的下邊欄顯示一行文字,代碼如下:
<ImageView
android:id="@+id/imageview_001"
android:layout_width="match_parent"
android:layout_height="120dp"
android:layout_alignParentTop="true"
android:src="@drawable/ic_launcher"
/>
<TextView
android:layout_width="match_parent"
android:layout_height="20dp"
android:layout_marginTop="100dp"
/>
更多Android例子,網路一下就知道了,平時也做點學習,TeachCourse比較適合初學者,謝謝採納!
㈨ android 安卓 類似ONE卡片頁(包含圖片文字等)怎麼實現
Android5.0中向我們介紹了一個全新的控制項–CardView,從本質上看,可以將CardView看做是FrameLayout在自身之上添加了圓角和陰影效果。請注意:CardView被包裝為一種布局,並且經常在ListView和RecyclerView的Item布局中,作為一種容器使用。
下面例子來源於android學習手冊, android學習手冊包含9個章節,108個例子,源碼文檔隨便看,例子都是可交互,可運行,源碼採用android studio目錄結構,高亮顯示代碼,文檔都採用文檔結構圖顯示,可以快速定位。360手機助手中下載,排在第四個。
CardView應該被使用在顯示層次性的內容時;在顯示列表或網格時更應該被選擇,因為這些邊緣可以使得用戶更容易去區分這些內容。
使用CardView
首先,假設你的布局如同下面的形式:
<FrameLayout xmlns:app="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content"> <!-- Main Content View --> <RelativeLayout> ... </RelativeLayout> </FrameLayout>
為了使用上面的布局方式來創建一個卡片,首先你需要導入支持的依賴庫(android-support-v7-cardview的jar包)在你的build.gradle文件中。
dependencies { ... compile 'com.android.support:cardview-v7:21.0.2' }
現在將FrameLayout替換為CardView,
<android.support.v7.widget.CardView xmlns:card_view="http://schemas.android.com/apk/res-auto" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="wrap_content"> <!-- Main Content View --> <RelativeLayout> ... </RelativeLayout> </android.support.v7.widget.CardView>
就是這樣!使用依賴庫能夠保證你的程序穩定的兼容之前的版本;盡管在AndroidL和之前的Android版本中對其處理方式有所不同。
㈩ android studio Listview如何讓文字覆蓋在圖片上
這個應該是布局的問題吧,使用相對布局,先定義圖片(imageview),然後再定義文字(textview)
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/home2"
/>
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="這是一個測試數據"
/>
向這樣文字就在圖片上面