framelayout

    0熱度

    2回答

    我想將兩個框架佈局並排放置。我的layout.xml是: <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="fill_parent" android:lay

    3熱度

    1回答

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/linearLayout" android:layout_width="wrap_content" android:l

    0熱度

    2回答

    我有CustomView,它只是一些弧線形狀。 public class CustomDrawableView extends View { private ShapeDrawable mDrawable; private Paint paint = new Paint(); public CustomDrawableView(Context context, int startA, in

    16熱度

    5回答

    我是編程新手。 我被用於Graphical Layout,然後當我讀取xml文件時,我看到了FrameLayout。然後我搜索了,但我找不到有用的東西。 FrameLayout是什麼?它有什麼作用?

    0熱度

    2回答

    我在框架佈局中使用了片段,但由於某些問題,我想在該框架佈局中啓動一個活動。我正在尋找這個很長的時間,我得到的只是Tab規格的一切。我只是希望我的框架佈局內開始活動,所有的碎片都打開 這裏是如何我正在打開我的碎片和消息活動 private void displayView(int position) { switch (position) { case 0: frag

    1熱度

    1回答

    我現在正在創建一個Android應用程序,並且我有一個包含碎片的框架。直到現在一切正常,但我遇到了一個我不能完全理解的問題。我有一個框架,這是整個屏幕(FrameLayout - 我應該使用FrameLayout作爲主要的框架?),並在這個框架內有碎片,這取決於用戶的交互。這些片段位於.xml文件的FrameLayouts中。我現在想知道他們是否可以或應該是FrameLayouts或片段...我創

    2熱度

    1回答

    我想使用下面的代碼從FrameLayout中解釦TextView。 目前我正在獲取日誌時,方法開火,這是偉大的! 但是,我如何執行滑動來解僱? SwipeDismissTouchListener.java public class SwipeDismissTouchListener implements View.OnTouchListener { static final String lo

    0熱度

    1回答

    嗨在我的應用程序中,我通過使用GridView和框架佈局來設計它,因爲我使用text.Text顯示圖像。我在項目中添加的項目現在我的問題是如何編寫單擊按鈕爲不同的項目。 例如:如果我點擊關於我們,我想打開一些活動。如果我點擊照片庫,我想打開另一個活動。 任何人都可以請告訴我如何寫這一個。 MainActivity類別 public class MainActivity extends Activi

    0熱度

    1回答

    我的設備處於橫向模式,我已經在LinearLayout上放置了一個FrameLayout。這FrameLayout裏面有一個VideoView和屬性android:layout_width="wrap_content"。 在FrameLayout(和裏面的第一個LinearLayout)我想把其他LinearLayout與一些ImaveView和TextView裏面。 關鍵是這第二個LinearL

    0熱度

    1回答

    我製作了一個簡單的自定義相機應用程序。現在我想在相機屏幕上添加我自己的按鈕。我該怎麼做。這是我的layout.xml代碼。 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_w