0
A
回答
1
你所問的是工作,你必須圖書館粘貼此代碼在您的gradle這個
dependencies {
compile 'com.android.support:cardview-v7:23.3.+'
}
,並把這樣的
<android.support.v7.widget.CardView
xmlns:card_view="http://schemas.android.com/apk/res-auto"
android:id="@+id/card_view"
android:layout_gravity="center"
android:layout_width="250dp"
android:layout_height="250dp"
card_view:cardCornerRadius="4dp">
<TextView
android:text="Hello Card"
android:layout_width="match_parent"
android:layout_height="match_parent" />
</android.support.v7.widget.CardView>
內容的卡片視圖這裏是一個tutorial 並使其看起來像圖像一樣儘量使用自定義字體 你可以設置我喜歡這個
` TextView tx = (TextView)findViewById(R.id.textview1);
Typeface custom_font = Typeface.createFromAsset(getAssets(), "fonts/abc.ttf");
tx.setTypeface(custom_font);`
更多關於custom font希望這可以幫到你。
相關問題
- 1. Facebook喜歡計數器顯示網站喜歡不是文章水平喜歡
- 2. 將用戶限制爲1喜歡/不喜歡每篇文章
- 3. 如何在我的文章表中存儲喜歡和不喜歡的數字?
- 4. 選擇文章,選擇文章喜歡只有文章喜歡的(如果沒有與用戶ID排在第喜歡)
- 5. 圖片庫 - Pinterest喜歡與CSS佈局?
- 6. 嚮導喜歡在Android的佈局
- 7. AvalonDock佈局組喜歡Visual Studio
- 8. 喜歡Android中的線性佈局或相對佈局
- 9. 如何發佈博客文章到Facebook,以便將喜歡和評論合併?
- 10. 如何在有多篇文章的頁面上喜歡特定文章?
- 11. 如何做一個「喜歡」在Parse.com
- 12. 如何做Dropbox喜歡登錄按鈕?
- 13. 如何獲取Facebook的喜歡,分享,評論從文章
- 14. 如何保存文章ID的用戶喜歡Cookie?
- 15. 如何在每篇文章摘錄下添加喜歡按鈕?
- 16. 如何在laravel 5.5中做出喜歡和不喜歡的東西?
- 17. 如何按喜歡
- 18. 如何使用「button_count」佈局顯示喜歡按鈕附近喜歡按鈕的全部數量
- 19. 網格狀文章佈局
- 20. SQL不喜歡和喜歡
- 21. 喜歡但不喜歡
- 22. mySQL喜歡,但不喜歡
- 23. Facebook畫布頁喜歡/不喜歡的內容
- 24. 如何保存喜歡Firefox的喜好?
- 25. Facebook喜歡我的asp.net網站上的每篇文章
- 26. Facebook喜歡joomla的社交插件文章內容
- 27. 喜歡在外部網頁文章和Facebook頁面上的框
- 28. Gigya:檢索文章或組件的Facebook喜歡數
- 29. 元數據無法顯示博客文章喜歡按鈕
- 30. Twitter喜歡的照片和視頻佈局css和或javascript