android-layout

    0熱度

    2回答

    這裏是我的佈局 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:layout_height

    1熱度

    1回答

    我現在試圖通過某種方式解決TextView中重疊文本的問題。 I've posted a question about that,但我也試圖自己解決它。我決定計算導致textview突破的文本數量。我想出了這個未完成的代碼,它基本上應該誇大視圖,根據顯示的大小設置它的佈局參數,然後運行onmeasure並返回lineCount。我計劃比使用可能的二進制搜索來找到適合textview的確切文本長度,

    0熱度

    3回答

    我是新的android應用程序開發。我的應用程序的佈局頁面不適合在設備屏幕上,它跨越screen.when我去橫向模式,然後home_imgbtn,msg_imgbtn,chat_imgbtn ,like_imgbtn,set_imgbtn把他們之間的差距,無法查看的肖像mode.please幫助我....這是我的代碼.. <LinearLayout xmlns:android="http://s

    1熱度

    3回答

    我試圖用戶數據連接頁腳,但應用程序崩潰。有人能幫忙嗎? 登錄類: public class Login extends Activity { EditText fullname, mobilenumber, occupation; Button save; ImageView ad1, ad2, ad3, ad4, ad5, ad6; HorizontalS

    3熱度

    1回答

    我想知道如何在圖像周圍包裝文字? 我發現了幾個解決方案,但他們都認爲我過時或我錯了? 我能找到的最好的解決方案是這些的: How to layout text to flow around an image text wrapping around image in android 不是有內置的已經不錯了,因爲我們是在API版本19,我想這可能是有用的!

    0熱度

    1回答

    我在我的TableRow中有一個ImageView需要有一個rowSpan。但是,我只找到了教程來使用XML來完成此操作。 像這樣的位置: android table layout rowspan 它甚至有可能做行跨度與TableLayout或做我必須使用GridLayout?

    0熱度

    3回答

    開發具有9個edittext字段的應用程序。 編輯文本字段有問題。它在xml佈局上看起來很好,但是當我在模擬器上運行應用程序時,這些字段都在屏幕上。當運行在真正的暴徒時,他們甚至看起來更糟糕(他們把自己放在屏幕上,而不是我設置的位置)。不知道該怎麼做。這裏是xml代碼。 <?xml version="1.0" encoding="utf-8"?> <RelativeLayout xmlns:an

    0熱度

    1回答

    我有一個由textView,imageView和button組成的gridView。每當用戶按下按鈕時,不可見的linearLayout應該與editText和另一個Button一起出現在舊佈局的頂部。我試過這樣做,但它總是說我不能修改點擊時膨脹的元素。有什麼建議麼?繼承人我的代碼示例:custom_product_list_square.xml <?xml version="1.0" encod

    0熱度

    1回答

    我當前創建一個簡單的自定義對話框片段,如下圖所示: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="wrap_content" android:layout_height="wrap_content" android:backg

    0熱度

    1回答

    我正在製作一款遊戲。我已經使用兩個進度條作爲播放器上的電池。現在我想簡單地顯示一個對話框,當進度條中的任何一個被清空。爲了減少電池,我使用了計數器的邏輯,當檢測到碰撞時這個邏輯會減少。 BattryLevelCPU.setProgress(counter--); 現在我想用對話框時顯示該counter==0 如何我將能夠實現呢?我試過了像 if counter==0{ //tried