<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ## 運用場景 主要用于在ListView或者GridView等中動態顯示數據庫中創建的數據,功能與AdapterView相似。 ## 實現步驟 ### 繼承CurosrAdapter 繼承CurosrAdapter后需要重寫兩個方法,分別是: - public View newView(Context context, Cursor cursor, ViewGroup parent) - public void bindView(View view, Context context, Cursor cursor) newView方法用于實現創建新的View,將前文創建的Item樣式在這里擴展顯示。 bindView方法用于實現在新創建的View中將數據庫中對應的數據顯示到對應的id控件上 ~~~ public class TableCursorAdapter extends CursorAdapter { XinGangViewHelper mViewHelper; public TableCursorAdapter(Context context, Cursor c, XinGangViewHelper view) { super(context, c, 0); mViewHelper = view; } public View newView(Context context, Cursor cursor, ViewGroup viewgroup) { LinearLayout parent = new LinearLayout(context); parent.addView(mViewHelper.getListView(context), new LinearLayout.LayoutParams(-1, 120)); return parent; } @Override public void bindView(View view, Context context, Cursor cursor) { for (String field : mViewHelper.getFields()) { TextView tv = view.findViewWithTag(field); tv.setText(cursor.getString(cursor.getColumnIndex(field))); tv.setTextSize(13); } } } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看