fragment

    1熱度

    1回答

    我想動畫片段過渡,它在我在setCustomAnimations的xml中使用objectAnimator時有效,但我需要在運行時設置開始和結束位置,因此在搜索後我發現我可以覆蓋onCreateAnimator並返回一個自定義動畫師。 我可能錯過了一些東西,但設置爲動畫製作者的目標是什麼? @Override public Animator onCreateAnimator(int transi

    0熱度

    2回答

    當我在Fragment中使用findViewById時出現錯誤。 我該如何解決? public class Discover extends Fragment { private static final String TAG = "Discover"; @Override public View onCreateView(LayoutInflater inflater, ViewGro

    0熱度

    2回答

    我正在使用RecyclerViewAdapter。這是完美的工作。 我試圖從服務器填充列表時出現問題。 我DataHandaling類,我試圖讓陣列刷新從這裏ListView控件... void getEvents() { OkHttpClient client = new OkHttpClient(); Request request = new Request.Build

    -2熱度

    2回答

    我有一個與Stings一起使用的應用程序,但我不知道如何從片段發送字符串到活動。有人幫我,但我不明白的代碼well.So如果有人有疑問,他可以問我,我可以anserd它 請幫我 片段: public class Fragment_1 extends Fragment { String text; int zähler = 0; String teile[];

    -1熱度

    1回答

    我想更新來自websocket連接的onMessage回調事件存在時片段中的文本。 我的主要活動有 public class MainActivity extends AppCompatActivity{ private static WebSocketConnection mConnection = new WebSocketConnection(); @Override

    0熱度

    2回答

    我面臨的一個問題我已經鑑於尋呼機一個片段,我需要更新時,從右到左用戶幻燈片,幻燈片動畫應該與一個片段在那裏,這裏有方向性視圖尋呼機我正在嘗試的一些代碼,事情是我有查看傳呼機裏面的片段以及。 任何建議代碼的幫助將不勝感激。 這裏有一些代碼,我已經嘗試了一個方向性視圖尋呼機 public class CustomViewPager extends ViewPager { private f

    -1熱度

    2回答

    當單擊列表視圖的圖像和文本視圖時,我需要從一個活動的列表視圖切換到一個片段。 我有一個適配器: public class AdapterResultList extends BaseAdapter { Context contexto; List<DirectoryData> ListaDirectorio; Fragment fragment = null;

    0熱度

    2回答

    package com.darkweb.android.amityaaroh.HomeActivity; import android.os.Bundle; import android.support.v4.app.Fragment; import android.view.LayoutInflater; import android.view.View; import androi

    0熱度

    3回答

    我正在創建導航抽屜。 當我更換它的任何片段,它內容替換,但框架佈局在後面跑.. 所以,當我按在該片段空白屏幕,主要佈局的內容顯示。那麼如何在一些片段替換它時完全移除主佈局? android.support.v4.app.FragmentManager fm=getSupportFragmentManager(); if (id == R.id.nav_categories) { Ca

    0熱度

    2回答

    我做了一個片段,我在驗證註冊表單,但它在某個時間正常工作,但幾秒鐘後應用程序停止而不顯示任何消息,也沒有任何錯誤日誌...我不知道怎麼了。 這裏是我的代碼: public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { Vi