-
Notifications
You must be signed in to change notification settings - Fork 628
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
修复BannerComponent 的adapter的count为0 的bug
优化FragmentListPageAdapter count为很大的数情况,SparseArray代替ArrayList
- Loading branch information
1 parent
62df000
commit 018405e
Showing
8 changed files
with
247 additions
and
211 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
app/src/main/java/com/shizhefei/indicator/year/YearFragment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
package com.shizhefei.indicator.year; | ||
|
||
import android.os.Bundle; | ||
import android.util.Log; | ||
import android.view.View; | ||
import android.widget.ProgressBar; | ||
import android.widget.TextView; | ||
|
||
import com.shizhefei.fragment.LazyFragment; | ||
import com.shizhefei.indicator.demo.R; | ||
|
||
/** | ||
* Created by LuckyJayce on 2016/8/11. | ||
*/ | ||
public class YearFragment extends LazyFragment { | ||
public static final String INTENT_INT_POSITION = "intent_int_position"; | ||
|
||
@Override | ||
protected void onCreateViewLazy(Bundle savedInstanceState) { | ||
super.onCreateViewLazy(savedInstanceState); | ||
|
||
Log.d("pppp", "onCreateViewLazy " + this+" "+savedInstanceState); | ||
|
||
int position = getArguments().getInt(INTENT_INT_POSITION); | ||
|
||
setContentView(R.layout.fragment_tabmain_item); | ||
final TextView textView = (TextView) findViewById(R.id.fragment_mainTab_item_textView); | ||
textView.setText(" " + position + " 界面加载完毕"); | ||
final ProgressBar progressBar = (ProgressBar) findViewById(R.id.fragment_mainTab_item_progressBar); | ||
textView.postDelayed(new Runnable() { | ||
@Override | ||
public void run() { | ||
textView.setVisibility(View.VISIBLE); | ||
progressBar.setVisibility(View.GONE); | ||
} | ||
}, 3000); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.